Add support for thread rename and priority change notifications to the

debugger API/message set.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39846 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2010-12-14 05:08:47 +00:00
parent 95acfc2225
commit 7040b50df5
6 changed files with 94 additions and 1 deletions
+21 -1
View File
@@ -180,6 +180,8 @@ typedef enum {
B_DEBUGGER_MESSAGE_TEAM_DELETED, // the debugged team is gone
B_DEBUGGER_MESSAGE_TEAM_EXEC, // the debugged team executes exec()
B_DEBUGGER_MESSAGE_THREAD_CREATED, // a thread has been created
B_DEBUGGER_MESSAGE_THREAD_RENAMED, // a thread has been renamed
B_DEBUGGER_MESSAGE_THREAD_PRIORITY_CHANGED, // a thread has had its priority altered
B_DEBUGGER_MESSAGE_THREAD_DELETED, // a thread has been deleted
B_DEBUGGER_MESSAGE_IMAGE_CREATED, // an image has been created
B_DEBUGGER_MESSAGE_IMAGE_DELETED, // an image has been deleted
@@ -545,9 +547,25 @@ typedef struct {
typedef struct {
debug_origin origin; // the thread that created the new thread
team_id new_thread; // the newly created thread
thread_id new_thread; // the newly created thread
} debug_thread_created;
// B_DEBUGGER_MESSAGE_THREAD_RENAMED
typedef struct {
debug_origin origin;
thread_id renamed_thread; // the thread whose name has changed
char name[B_OS_NAME_LENGTH];
} debug_thread_renamed;
// B_DEBUGGER_MESSAGE_THREAD_PRIORITY_CHANGED
typedef struct {
debug_origin origin;
thread_id changed_thread; // the thread whose priority has changed
int32 new_priority; // the new priority
} debug_thread_priority_changed;
// B_DEBUGGER_MESSAGE_THREAD_DELETED
typedef struct {
@@ -619,6 +637,8 @@ typedef union {
debug_team_deleted team_deleted;
debug_team_exec team_exec;
debug_thread_created thread_created;
debug_thread_renamed thread_renamed;
debug_thread_priority_changed thread_priority_changed;
debug_thread_deleted thread_deleted;
debug_image_created image_created;
debug_image_deleted image_deleted;
@@ -42,6 +42,11 @@ public:
const debug_team_exec& message);
virtual bool HandleThreadCreated(
const debug_thread_created& message);
virtual bool HandleThreadRenamed(
const debug_thread_renamed& message);
virtual bool HandleThreadPriorityChanged(
const debug_thread_priority_changed&
message);
virtual bool HandleThreadDeleted(
const debug_thread_deleted& message);
virtual bool HandleImageCreated(
+2
View File
@@ -234,6 +234,8 @@ void user_debug_team_deleted(team_id teamID, port_id debuggerPort);
void user_debug_team_exec();
void user_debug_update_new_thread_flags(thread_id threadID);
void user_debug_thread_created(thread_id threadID);
void user_debug_thread_renamed(thread_id threadID, const char* name);
void user_debug_thread_priority_changed(thread_id threadID, int32 priority);
void user_debug_thread_deleted(team_id teamID, thread_id threadID);
void user_debug_thread_exiting(struct thread* thread);
void user_debug_image_created(const image_info *imageInfo);