Re: 64 bit gnumach KDB stack traces

Samuel Thibault <[email protected]>
Newsgroups gmane.os.hurd.bugs
Organization I am not organized
Message-ID <afpBuGXVVub51gMB@end>
Michael Kelly, le mar. 05 mai 2026 20:11:29 +0100, a ecrit:
> On 05/05/2026 20:04, Samuel Thibault wrote:
> > Michael Kelly, le mar. 05 mai 2026 19:43:40 +0100, a ecrit:
> > > Might it be possible instead to make gdb "gnumach aware" somehow through use
> > > of a gdb plugin or similar?
> > Usually one rather makes gnumach gdb-aware, by adding a gdbserver, so
> > gdb can inspect it at will.
> > 
> > Note that qemu can do that for you, see the "GDB in QEMU" section of
> > microkernel/mach/gnumach/debugging on the wiki.
> I have done that on occasion but I'm rather thinking of the case where a
> gnumach thread is stuck awaiting an event which never happens. How can you
> switch context to that thread and view its stack and so on?

Ah, yes, in that case you can implement a libthread_db library that you
give to gdb so it knows how to switch between threads in gnumach.

Samuel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.