This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: gdbserver changes
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: RFA: gdbserver changes
- From: jtc at redback dot com (J.T. Conklin)
- Date: 11 Oct 1999 12:13:07 -0700
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <991011182348.ZM1945@ocotillo.lan>
- Reply-To: jtc at redback dot com
>>>>> "Kevin" == Kevin Buettner <kevinb@cygnus.com> writes:
Kevin> These changes make gdbserver buildable and runnable for me on
Kevin> Linux/x86. Note too that I have made changes for other
Kevin> platforms. These will be necessary (but possibly not
Kevin> sufficient) for gdbserver to build cleanly again in these other
Kevin> environments.
Kevin> Also... does anyone have an opinion on PTRACE_PEEKUSER vs.
Kevin> PTRACE_GETREGS?
In general, I think a PTRACE_GET/SETREGS interface is be more robust
than groveling around the u. struct. If the register struct changes,
both methods fail. But if the u. struct is changed for an unrelated
reason, GET/SETREGS may continue to work.
If this is true for Linux, perhaps this is a case GDB can influence
those Linux ports that don't currently implement GET/SETREGS. If
possible, I think we should try to fix problems rather than working
around them.
--jtc
--
J.T. Conklin
RedBack Networks