* remote.c (init_remote_state): Eliminate use of
deprecated_register_bytes().
This commit is contained in:
parent
8929e59d3f
commit
46845f5e98
@ -1,3 +1,8 @@
|
||||
2005-04-28 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* remote.c (init_remote_state): Eliminate use of
|
||||
deprecated_register_bytes().
|
||||
|
||||
2005-04-28 Andrew Cagney <cagney@gnu.org>
|
||||
|
||||
* valops.c (check_field): Make buffer a bfd_byte.
|
||||
|
@ -248,9 +248,6 @@ init_remote_state (struct gdbarch *gdbarch)
|
||||
int regnum;
|
||||
struct remote_state *rs = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct remote_state);
|
||||
|
||||
if (deprecated_register_bytes () != 0)
|
||||
rs->sizeof_g_packet = deprecated_register_bytes ();
|
||||
else
|
||||
rs->sizeof_g_packet = 0;
|
||||
|
||||
/* Assume a 1:1 regnum<->pnum table. */
|
||||
@ -266,7 +263,7 @@ init_remote_state (struct gdbarch *gdbarch)
|
||||
/* ...name = REGISTER_NAME (regnum); */
|
||||
|
||||
/* Compute packet size by accumulating the size of all registers. */
|
||||
if (deprecated_register_bytes () == 0)
|
||||
if (regnum < NUM_REGS)
|
||||
rs->sizeof_g_packet += register_size (current_gdbarch, regnum);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user