From bb5d918ebbfef16189a63de4c6dc184a23763316 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 17 Sep 2014 11:22:07 +0200 Subject: microkernel/mach/gnumach/interface/thread_get_state, thread_set_state: New. --- microkernel/mach/gnumach/debugging.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'microkernel/mach/gnumach/debugging.mdwn') diff --git a/microkernel/mach/gnumach/debugging.mdwn b/microkernel/mach/gnumach/debugging.mdwn index cf02471d..a5daf4f1 100644 --- a/microkernel/mach/gnumach/debugging.mdwn +++ b/microkernel/mach/gnumach/debugging.mdwn @@ -14,7 +14,7 @@ Here are some hints to debug with GNU Mach. [[!toc levels=2]] -# Kernel Debugger +# Kernel Debugger (KDB) Mach has a built-in kernel debugger. [Manual](http://www.gnu.org/software/hurd/gnumach-doc/Kernel-Debugger.html). -- cgit v1.2.3 From e164cc3bc34b10fb415d146dcc1db3abe12fb1d2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 24 Feb 2016 15:38:03 +0100 Subject: note trace/u to get userland backtrace --- microkernel/mach/gnumach/debugging.mdwn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'microkernel/mach/gnumach/debugging.mdwn') diff --git a/microkernel/mach/gnumach/debugging.mdwn b/microkernel/mach/gnumach/debugging.mdwn index c14f6111..6511115a 100644 --- a/microkernel/mach/gnumach/debugging.mdwn +++ b/microkernel/mach/gnumach/debugging.mdwn @@ -45,11 +45,15 @@ Run the addr2line tool on the return addresses: This will print the source code lines of the backtrace. +To get the userland backtrace of the thread, you can use + + trace/u + To examine the backtrace of some given thread, use show all thread/u -to get the whole listing of all tasks and threads. You can then use trace/t to trace a specific thread. +to get the whole listing of all tasks and threads. You can then use trace/t or trace/tu to trace a specific thread. Unfortunately, userland and kernelland use the same range of addresses, so one can not get userland traces easily. The Xen port uses different ranges, and in that case one can use trace/u to also get the userland trace. -- cgit v1.2.3