diff options
author | John Gilmore <gnu@cygnus> | 1992-09-19 10:56:01 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-09-19 10:56:01 +0000 |
commit | a4afec9ade92246dd0eae1476abcc0f408c10f1d (patch) | |
tree | ca3a1c592389612cbf9ce5bd888f03d552d5c5b8 /gdb/tm-sparc.h | |
parent | 8c0950668f708a2f4ef25b9627e135352d45d0fd (diff) | |
download | gdb-a4afec9ade92246dd0eae1476abcc0f408c10f1d.zip gdb-a4afec9ade92246dd0eae1476abcc0f408c10f1d.tar.gz gdb-a4afec9ade92246dd0eae1476abcc0f408c10f1d.tar.bz2 |
* tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
stores are target dependent and were moved from xm to tm.
Diffstat (limited to 'gdb/tm-sparc.h')
-rw-r--r-- | gdb/tm-sparc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/tm-sparc.h b/gdb/tm-sparc.h index a8158d0..8e06165 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; |