tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: re-enabling debugging of 32 bit processes with 64 bit debugger



On 30.06.2019 18:34, Jason Thorpe wrote:
> 
>> On Jun 30, 2019, at 9:12 AM, Kamil Rytarowski <n54%gmx.com@localhost> wrote:
>>
>> Rationale? It worked for me in compat32 mode...
> 
> Not if you're debugging core files, right?  Everything that works for live-debugging on native also needs to work for introspecting core files.  And, in an ideal world, also works for live cross-debugging to a completely different arch using a debug server.
> 

Right, sysctl(3) is perfectly fine for alive processes, but for core(5)
we might want something extra.

> This isn't just about "32-bit binaries on a 64-bit platform"... we really should be thinking about this as a general cross-debugging problem.
> 
>>
>> There is also r_debug.r_map to get the list of shared objects.
>>
> 
> -- thorpej
> 

I'm just spawning gdbserver-aware support for NetBSD in GDB basically
from scratch (no other BSD is there).

I want to use GDB tests to validate ptrace(2) kernel layer.. Michal
works on MD parts.

There are still few milestones for us before getting there.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index