RFA: gdbserver changes
J.T. Conklin
jtc@redback.com
Mon Oct 11 12:13:00 GMT 1999
>>>>> "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
More information about the Gdb-patches
mailing list