From a4afec9ade92246dd0eae1476abcc0f408c10f1d Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 19 Sep 1992 10:56:01 +0000 Subject: [PATCH] * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred stores are target dependent and were moved from xm to tm. --- gdb/ChangeLog | 5 +++++ gdb/tm-sparc.h | 15 +++++++++++++++ gdb/xm-sparc.h | 14 -------------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 09838e2029..95195c9892 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com) + + * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred + stores are target dependent and were moved from xm to tm. + Sat Sep 19 03:14:37 1992 John Gilmore (gnu@cygnus.com) * Makefile.in (gdb-all.texi): Build in objdir, not $srcdir. diff --git a/gdb/tm-sparc.h b/gdb/tm-sparc.h index a8158d07a3..8e06165ca4 100644 --- a/gdb/tm-sparc.h +++ b/gdb/tm-sparc.h @@ -565,3 +565,18 @@ extern void single_step (); print_floating (doublereg, builtin_type_double, stdout); \ } \ } + +/* Optimization for storing registers to the inferior. The hook + DO_DEFERRED_STORES + actually executes any deferred stores. It is called any time + we are going to proceed the child, or read its registers. + The hook CLEAR_DEFERRED_STORES is called when we want to throw + away the inferior process, e.g. when it dies or we kill it. + FIXME, this does not handle remote debugging cleanly. */ + +extern int deferred_stores; +#define DO_DEFERRED_STORES \ + if (deferred_stores) \ + target_store_registers (-2); +#define CLEAR_DEFERRED_STORES \ + deferred_stores = 0; diff --git a/gdb/xm-sparc.h b/gdb/xm-sparc.h index dc85386f91..67ea6faba3 100644 --- a/gdb/xm-sparc.h +++ b/gdb/xm-sparc.h @@ -44,17 +44,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_WAIT_STRUCT -/* Optimization for storing registers to the inferior. The hook - DO_DEFERRED_STORES - actually executes any deferred stores. It is called any time - we are going to proceed the child, or read its registers. - The hook CLEAR_DEFERRED_STORES is called when we want to throw - away the inferior process, e.g. when it dies or we kill it. - FIXME, this does not handle remote debugging cleanly. */ - -extern int deferred_stores; -#define DO_DEFERRED_STORES \ - if (deferred_stores) \ - store_inferior_registers (-2); -#define CLEAR_DEFERRED_STORES \ - deferred_stores = 0;