patch to gdbserver
J.T. Conklin
jtc@redback.com
Fri Apr 30 14:54:00 GMT 1999
>>>>> "Stan" == Stan Shebs <shebs@cygnus.com> writes:
Stan> Thanks! So I've had this idea in the back of my mind to drag
Stan> all of the gdbserver stuff into the main GDB dir, and sponge off
Stan> GDB's main configury. At some point, it might become possible
Stan> to have foo-nat.c be linked into both gdb and gdbserver, thus
Stan> eliminating the low-foo.c files that are almost-copies of the
Stan> real native support.
I was thinking that myself. I noticed that the store_inferior_registers()
and fetch_inferior_registers() functions I wrote for low-nbsd.c are almost
exactly the same as those in i386b-nat.c, m68knbsd-nat.c, etc.
Even so, there is still quite a bit of difference between the functions in
*-nat.c and low-*.c. There will have to be a bit of thought and cleverness
put into spliting things apart, otherwise gdbserver would inherit code that
it doesn't use. And that sort of defeats the purpose of a thin debug layer
that gdbserver provides.
--jtc
--
J.T. Conklin
RedBack Networks
More information about the Gdb-patches
mailing list