1
0
forked from 0ad/0ad

platform-specific debug header (included from sysdep/debug) is responsible for defining debug_break, or mapping it to the implementation function (result: if can be defined as a macro (e.g. on win32 or ia32), debugger breaks directly at the target location, instead of one function lower)

This was SVN commit r1812.
This commit is contained in:
janwas 2005-01-25 17:58:15 +00:00
parent 8192c5b1c5
commit c73a3fe2c4
2 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,7 @@ void unix_debug_break()
/*
Start the debugger and tell it to attach to the current process/thread
*/
int unix_launch_debugger()
static int launch_debugger()
{
pid_t orgpid=getpid();
pid_t ret=fork();
@ -84,7 +84,7 @@ int debug_assert_failed(const char *file, int line, const char *expr)
case 'b':
return 2;
case 'd':
return unix_launch_debugger();
return launch_debugger();
case 'c':
return 0;
case 's':

View File

@ -0,0 +1,5 @@
// sysdep/unix/debug.h: included from sysdep/debug.h and sysdep/unix/debug.cpp
#define debug_break unix_debug_break
extern void unix_debug_break(void);