* 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
This commit is contained in:
@@ -92,6 +92,9 @@ typedef enum {
|
|||||||
B_FLOATING_POINT_EXCEPTION,
|
B_FLOATING_POINT_EXCEPTION,
|
||||||
} debug_why_stopped;
|
} 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.
|
// Value indicating how a stopped thread shall continue.
|
||||||
enum {
|
enum {
|
||||||
B_THREAD_DEBUG_HANDLE_EVENT = 0, // handle the event normally
|
B_THREAD_DEBUG_HANDLE_EVENT = 0, // handle the event normally
|
||||||
@@ -211,6 +214,8 @@ typedef enum {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
thread_id thread; // the thread being the event origin
|
thread_id thread; // the thread being the event origin
|
||||||
team_id team; // the thread's team
|
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;
|
} debug_origin;
|
||||||
|
|
||||||
// B_DEBUGGER_MESSAGE_THREAD_STOPPED
|
// B_DEBUGGER_MESSAGE_THREAD_STOPPED
|
||||||
@@ -218,7 +223,6 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
debug_origin origin;
|
debug_origin origin;
|
||||||
debug_why_stopped why; // reason for contacting debugger
|
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
|
debug_cpu_state cpu_state; // cpu state
|
||||||
void *data; // additional data
|
void *data; // additional data
|
||||||
} debug_thread_stopped;
|
} debug_thread_stopped;
|
||||||
|
|||||||
Reference in New Issue
Block a user