aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-bug.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-12-26 18:10:22 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-12-26 18:10:22 +0000
commitf4f0d174871fc68497aebc705f78bbd09fe3e498 (patch)
treee9eed18f76859d5a4f0e2d4f3aa7293cc5972272 /gdb/remote-bug.c
parent192c3eeb94e19460aee7561b3db2ce01cef83666 (diff)
downloadgdb-f4f0d174871fc68497aebc705f78bbd09fe3e498.zip
gdb-f4f0d174871fc68497aebc705f78bbd09fe3e498.tar.gz
gdb-f4f0d174871fc68497aebc705f78bbd09fe3e498.tar.bz2
* valops.c (call_function_by_hand, push_word), defs.h (push_word),
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c, ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c, config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c: Use REGISTER_SIZE, unsigned LONGEST, and {store,extract}_unsigned_integer, instead of sizeof (REGISTER_TYPE) and REGISTER_TYPE. * All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE. * hppa-tdep.c (pa_print_fp_reg): Remove unused variable val. * Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c. Add lynx-nat.c.
Diffstat (limited to 'gdb/remote-bug.c')
-rw-r--r--gdb/remote-bug.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c
index e1f3603..a1806fc 100644
--- a/gdb/remote-bug.c
+++ b/gdb/remote-bug.c
@@ -425,8 +425,6 @@ static void
bug_fetch_register(regno)
int regno;
{
- REGISTER_TYPE regval;
-
sr_check_open();
if (regno == -1)
@@ -444,12 +442,15 @@ bug_fetch_register(regno)
}
else if (regno < XFP_REGNUM)
{
- sr_write("rs ", 3);
- sr_write_cr(get_reg_name(regno));
- sr_expect("=");
- regval = sr_get_hex_word();
- gr_expect_prompt();
- supply_register(regno, (char *) &regval);
+ char buffer[MAX_REGISTER_RAW_SIZE];
+
+ sr_write ("rs ", 3);
+ sr_write_cr (get_reg_name(regno));
+ sr_expect ("=");
+ store_unsigned_integer (buffer, REGISTER_RAW_SIZE (regno),
+ sr_get_hex_word());
+ gr_expect_prompt ();
+ supply_register (regno, buffer);
}
else
{