aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-10-03 05:28:42 +0000
committerJohn Gilmore <gnu@cygnus>1992-10-03 05:28:42 +0000
commit34517ebc854c0fc0314823defa19c4d79e317e12 (patch)
tree1e7bb2468eaf7568d3fd82d2a779859986bae0e4 /gdb/remote.c
parentb89a86ac08f28500baa404f73a4496dfd176b5c8 (diff)
downloadgdb-34517ebc854c0fc0314823defa19c4d79e317e12.zip
gdb-34517ebc854c0fc0314823defa19c4d79e317e12.tar.gz
gdb-34517ebc854c0fc0314823defa19c4d79e317e12.tar.bz2
Changes to make 29k function calls work better at Adobe.
* am29k-tdep.c (_initialize_29k): Make it possible for the user to set and query the address where function calls into the inferior write a small scratch routine. `set call_scratch_address' * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error. * remote.c (remote_prepare_to_store): Only fetch regs if they are not already cached validly.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 86df56a..e7f2499 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -417,7 +417,7 @@ remote_wait (status)
unsigned char *p;
int i;
long regno;
- unsigned char regs[MAX_REGISTER_RAW_SIZE];
+ char regs[MAX_REGISTER_RAW_SIZE];
WSETEXIT ((*status), 0);
@@ -505,7 +505,8 @@ remote_fetch_registers (regno)
static void
remote_prepare_to_store ()
{
- remote_fetch_registers (-1);
+ /* Make sure the entire registers array is valid. */
+ read_register_bytes (0, (char *)NULL, REGISTER_BYTES);
}
/* Store the remote registers from the contents of the block REGISTERS.
@@ -1068,6 +1069,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).", /* to_doc */
NULL, /* to_lookup_symbol */
NULL, /* to_create_inferior */
NULL, /* to_mourn_inferior */
+ 0, /* to_can_run */
process_stratum, /* to_stratum */
NULL, /* to_next */
1, /* to_has_all_memory */