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:
parent
8192c5b1c5
commit
c73a3fe2c4
@ -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':
|
5
source/lib/sysdep/unix/udbg.h
Normal file
5
source/lib/sysdep/unix/udbg.h
Normal 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);
|
Loading…
Reference in New Issue
Block a user