patch for gdbserver/low-linux.c

Stan Shebs shebs@cygnus.com
Wed Apr 14 12:46:00 GMT 1999


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
 



More information about the Gdb-patches mailing list