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]

Re: patch for gdbserver/low-linux.c



pb@nexus.co.uk (Philip Blundell) writes:

> This patch cleans up some of the machine dependence in low-linux.c slightly 
> and adds ARM support.

Hi, thanks for this patch!  But I'd like to solve the problem in a
slightly different way.  gdbserver is a sort of proxy for GDB, in that
uses the same process control bits (ptrace, /proc, etc) as does native
GDB, but stripped down to fit in the small dedicated program.  However,
in the long run it's a weak strategy to maintain a pseudo-clone of
native debug support; instead I think we should work up a way to allow
gdbserver and gdb to share the low-level bits and thus automatically
have gdbserver for every port.

We can take a step along this path by making a separate low-armlinux.c
for ARM Linux and so forth, and then making low-linux.c generic.  If
you do the ARM Linux bits, I'll help with making the other changes.

							Stan