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
