2 * Copyright 2015 Steven Watanabe
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef DEBUGGER_SW20150314_H
9 #define DEBUGGER_SW20150314_H
17 void debug_on_instruction( FRAME
* frame
, OBJECT
* file
, int line
);
18 void debug_on_enter_function( FRAME
* frame
, OBJECT
* name
, OBJECT
* file
, int line
);
19 void debug_on_exit_function( OBJECT
* name
);
22 struct debug_child_data_t
29 extern struct debug_child_data_t debug_child_data
;
30 extern LIST
* debug_print_result
;
31 extern const char debugger_opt
[];
32 extern int debug_interface
;
34 #define DEBUG_INTERFACE_CONSOLE 1
35 #define DEBUG_INTERFACE_MI 2
36 #define DEBUG_INTERFACE_CHILD 3
38 #define debug_is_debugging() ( debug_interface != 0 )
39 #define debug_on_enter_function( frame, name, file, line ) \
40 ( debug_is_debugging()? \
41 debug_on_enter_function( frame, name, file, line ) : \
43 #define debug_on_exit_function( name ) \
44 ( debug_is_debugging()? \
45 debug_on_exit_function( name ) : \
50 void debug_init_handles( const char * in
, const char * out
);
56 #define debug_on_instruction( frame, file, line ) ( ( void )0 )
57 #define debug_on_enter_function( frame, name, file, line ) ( ( void )0 )
58 #define debug_on_exit_function( name ) ( ( void )0 )
59 #define debug_is_debugging() ( 0 )