This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFA: gdbserver changes


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]