Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB code reuse for gdbserver?
@ 2010-10-07 18:37 Paul Koning
  2010-10-07 18:47 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Koning @ 2010-10-07 18:37 UTC (permalink / raw)
  To: gdb

Gentlepeople,

I'm wondering about a different approach to gdbserver.

Right now gdbserver is a target side remote-protocol machine (server.c) plus a separately developed version of target debugging machinery.  The latter duplicates what's in the main gdb directory, but only for a small number of platforms, possibly with reduced functionality, etc.

Rather than develop things twice, would it make sense to view gdbserver as the target machinery of gdb, connected to the rest of gdb by a remote-protocol pipe?  What that would actually mean is that gdbserver/server.c would talk to gdb target_ops methods.  So gdbserver would consist of the protocol code specific to gdbserver, plus target code from main gdb, plus bits of infrastructure sufficient to support the above.

Does this make sense?  (In other words, would such an approach be welcomed?)

	paul


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

end of thread, other threads:[~2010-10-07 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-07 18:37 GDB code reuse for gdbserver? Paul Koning
2010-10-07 18:47 ` Joel Brobecker
2010-10-07 18:50   ` Michael Snyder
2010-10-07 18:58     ` Paul Koning

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