This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: duplicated code in gdb and gdbserver


On Mon, Jan 10, 2011 at 7:54 AM, Frank Ch. Eigler <fche@redhat.com> wrote:
> dje wrote:
>
>> > [...]ïA library API for the remote protocol [...].
>>
>> Yeah, like Joel, it isn't clear what is meant here.
>> Can you elaborate?
>
> Just that non-gdb tools needing to perform remote process control
> could speak to gdbserver too, mediated if necessary by a new library
> slightly abstracting the TCP/IP stuff.

So native "gdb hello" would have to fork gdbserver.  Ah.
That is one way to go.
It would give us the impetus to get multiprocess debugging across fork
working well (which Tom wants for gcc). 1/2 :-)

Still, in the end it seems more complicated than having gdb link in
the same library that gdbserver does.
And with such a library, I'd make it so that "non-gdb tools" could use it too.
For example, it would make easier the building of gdbservers that need
to speak something other than the remote protocol.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]