[PATCH]: Fix thread debugging on Sparc/Linux

Michael Snyder msnyder@redhat.com
Tue Apr 4 23:58:00 GMT 2006


David S. Miller wrote:
> From: "David S. Miller" <davem@davemloft.net>
> Date: Tue, 04 Apr 2006 16:12:16 -0700 (PDT)
> 
> 
>>From: Daniel Jacobowitz <drow@false.org>
>>Date: Tue, 4 Apr 2006 19:11:02 -0400
>>
>>
>>>On Tue, Apr 04, 2006 at 03:54:56PM -0700, David S. Miller wrote:
>>>
>>>>The checkpoint/restart stuff is also non-functional on Linux/Sparc,
>>>>but I think that could be due to some bug in event message handling on
>>>>that platform.
>>>
>>>Is gdb a 32-bit or 64-bit binary?  I bet there's problems with a
>>>32-bit binary.  At least one is that the event message is
>>>stored as a long.
>>
>>Yep, that's exactly where I think the bug is, in the 32-bit
>>compat layer on sparc64.
> 
> 
> I just confirmed that after fixing this in the kernel ptrace()
> implementation, checkpointing works fine for 32-bit gdb running on
> 64-bit kernel for Linux/Sparc.

Cool!



More information about the Gdb-patches mailing list