kernel/user_debugger: Show the thread name in addition to the id

* Helps in debugging early boot issues where you won't have
  access to the list of thread id's

Change-Id: Ic06bd0b53ccceccd8c911156724a799ca6a1c28b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5322
Reviewed-by: Alex von Gluck IV <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2022-05-19 16:55:27 +00:00
committed by waddlesplash
parent 088321c119
commit 071f4aad57
+2 -1
View File
@@ -818,7 +818,8 @@ thread_hit_serious_debug_event(debug_debugger_message event,
if (error != B_OK) {
Thread *thread = thread_get_current_thread();
dprintf("thread_hit_serious_debug_event(): Failed to install debugger: "
"thread: %" B_PRId32 ": %s\n", thread->id, strerror(error));
"thread: %" B_PRId32 " (%s): %s\n", thread->id, thread->name,
strerror(error));
return error;
}