This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH]: Fix thread debugging on Sparc/Linux


On Tue, Apr 04, 2006 at 03:23:04PM -0700, David S. Miller wrote:
> I'm just running through the entire testsuite right now on
> sparc-*-linux* trying to fix every failure that shows up.

Great!

In that case, I can save you one bit of debugging: a lot of thread
tests are broken on SPARC, because linux_nat_thread_alive (or something
with a similar name) tries to use PTRACE_PEEKUSR to test whether a
thread is alive, but the SPARC ptrace interface doesn't implement that,
only PTRACE_GETREGS.  I keep meaning to try changing that.  Maybe to
something like reading memory, and allowing an actual memory access
error to be "yes, I'm alive" and ESRCH (is that the right error code?)
to mean "no, I'm gone".

This is in the Debian BTS, but I never fixed it.  Bad me.

-- 
Daniel Jacobowitz
CodeSourcery


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