From 540103da09d811dbbe64d65091c99fb6aa11bdd3 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 25 Feb 2005 14:24:00 +0000 Subject: [PATCH] * New function get_why_stopped_string() to get a human-readable translation for the debug_why_stopped codes. * Added nub_port member to debug_origin structure, so that now all synchronous messages to the debugger also include the debug nub port. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11489 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/debugger.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/headers/os/kernel/debugger.h b/headers/os/kernel/debugger.h index 5613a22db3..1a0a5c878e 100644 --- a/headers/os/kernel/debugger.h +++ b/headers/os/kernel/debugger.h @@ -92,6 +92,9 @@ typedef enum { B_FLOATING_POINT_EXCEPTION, } debug_why_stopped; +extern void get_why_stopped_string(debug_why_stopped whyStopped, char *buffer, + int32 bufferSize); + // Value indicating how a stopped thread shall continue. enum { B_THREAD_DEBUG_HANDLE_EVENT = 0, // handle the event normally @@ -211,6 +214,8 @@ typedef enum { typedef struct { thread_id thread; // the thread being the event origin team_id team; // the thread's team + port_id nub_port; // port to debug nub for this team (only set + // for synchronous messages) } debug_origin; // B_DEBUGGER_MESSAGE_THREAD_STOPPED @@ -218,7 +223,6 @@ typedef struct { typedef struct { debug_origin origin; debug_why_stopped why; // reason for contacting debugger - port_id nub_port; // port to debug nub for this team debug_cpu_state cpu_state; // cpu state void *data; // additional data } debug_thread_stopped;