Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* DEPRECATED_REGISTER_BYTES and remote targets
@ 2003-06-03 20:39 Theodore A. Roth
  2003-06-03 21:12 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Theodore A. Roth @ 2003-06-03 20:39 UTC (permalink / raw)
  To: gdb

Hi,

In trying to remove deprecated gdbarch methods from the avr port, I've
got a problem with 'g' packets.

In remote_fetch_registers(), the for loop that converts the target hex
reply to gdb native int uses rs->sizeof_g_packet as the loop stop
condition.

Digging further, I see in init_remote_state() that the sizeof_g_packet
field is set to DEPRECATED_REGISTER_BYTES, but since I've removed it,
sizeof_g_packet is set to zero.

Thus, my problem is that the target reply is never converted to an
integer and gdb reports that the PC is 0x30303030 instead of 0x0. Fun,
no?

So, should I still set the DEPRECATED_REGISTER_BYTES method or is this
a bug in init_remote_state()?

Ted Roth


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-03 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03 20:39 DEPRECATED_REGISTER_BYTES and remote targets Theodore A. Roth
2003-06-03 21:12 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox