Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Switching architectures from a remote target
@ 2010-02-04 19:38 Robert Barnes
  2010-02-05  6:50 ` Hui Zhu
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Barnes @ 2010-02-04 19:38 UTC (permalink / raw)
  To: gdb

I am using GDB to interface with a remote target over serial. The
target architecture changes during execution (e.g. 32-bit to 64-bit).
When the architecture changes I need gdb to change its internal
representation of the remote architecture at the same time. The
primary problem is the remote 'g' command, it's return packet size is
determined by the initial call. When the architecture changes, the
size and number of registers may change, thus the size of the 'g'
packet changes. Yet gdb is still expecting the old size.

This problem is addressed in section 7 of "Multi-arching Insights and
GDB" by Andrew Cagney
(http://www.gnu.org/software/gdb/papers/multi-arch/real-multi-arch/).
As far as I can tell the recommendations haven't been implemented.

Are there any workarounds or solutions to the general problem of
handling changing architectures on a remote target?

Thanks!

-Rob


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

end of thread, other threads:[~2010-02-09 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-04 19:38 Switching architectures from a remote target Robert Barnes
2010-02-05  6:50 ` Hui Zhu
2010-02-05 12:29   ` Jan Kiszka
2010-02-09 18:40     ` Robert Barnes

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