* Added new team flag B_TEAM_DEBUG_PREVENT_EXIT that prevents teams from exiting

via exit() (the calling thread will drop into the debugger instead).
* The DebugServer now uses this flag by default.
* Added TODO comment: the default debugger should already be able to set a flag
  like this in order to close a race condition between dropping a thread into
  the debugger and setting the flag.
* Cleaned up the debug_server sources a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36265 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-04-14 18:03:48 +00:00
parent 14e1d73761
commit a608485f26
3 changed files with 64 additions and 43 deletions
+3
View File
@@ -5,6 +5,7 @@
#ifndef _DEBUGGER_H
#define _DEBUGGER_H
#include <signal.h>
#include <image.h>
@@ -17,6 +18,7 @@
#include <arch/mipsel/arch_debugger.h>
#include <arch/arm/arch_debugger.h>
#ifdef __INTEL__
typedef struct x86_debug_cpu_state debug_cpu_state;
#elif __POWERPC__
@@ -64,6 +66,7 @@ enum {
B_TEAM_DEBUG_TEAM_CREATION = 0x00080000,
B_TEAM_DEBUG_THREADS = 0x00100000,
B_TEAM_DEBUG_IMAGES = 0x00200000,
B_TEAM_DEBUG_PREVENT_EXIT = 0x00400000,
// new thread handling
B_TEAM_DEBUG_STOP_NEW_THREADS = 0x01000000,