This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>>>>> "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