From 1c7fbde145c1d6cd9248ee64b4fd2b84e1c9f038 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 10 Mar 2005 21:56:23 +0000 Subject: [PATCH] Added message def for preparing to hand over a debugged team to another debugger. After successful reply to the message the debugger won't receive any more messages from the debugged team. The mechanism is completely transparent to the target debugger. It simply installs itself as debugger for the team. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11662 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/debugger.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/headers/os/kernel/debugger.h b/headers/os/kernel/debugger.h index 4d92258453..846666355b 100644 --- a/headers/os/kernel/debugger.h +++ b/headers/os/kernel/debugger.h @@ -131,7 +131,11 @@ typedef enum { B_DEBUG_MESSAGE_CLEAR_BREAKPOINT, // clear a breakpoint B_DEBUG_MESSAGE_SET_WATCHPOINT, // set a watchpoint B_DEBUG_MESSAGE_CLEAR_WATCHPOINT, // clear a watchpoint - + + B_DEBUG_MESSAGE_PREPARE_HANDOVER, // prepares the debugged team for being + // handed over to another debugger; + // the new debugger can just invoke + // install_team_debugger() } debug_nub_message; // maximal number of bytes to read/write via B_{READ,WRITE]_MEMORY @@ -250,6 +254,12 @@ typedef struct { void *address; // watchpoint address } debug_nub_clear_watchpoint; +// B_DEBUG_MESSAGE_PREPARE_HANDOVER + +typedef struct { + status_t error; // B_OK, if the everything went fine +} debug_nub_prepare_handover_reply; + // union of all messages structures sent to the debug nub thread typedef union { debug_nub_read_memory read_memory;