#include "interrupt.h"
#include "interr.h"
#include "breakpoint.h"
+#include "monitor.h"
#define BREAKPOINT_INST 0xcc /* INT3 */
break;
case trap_Breakpoint: /* not tested */
- case trap_FunctionEndBreakpoint: /* not tested */
+ case trap_FunEndBreakpoint: /* not tested */
break;
case trap_PendingInterrupt:
handle_breakpoint(signal, info, context);
break;
- case trap_FunctionEndBreakpoint:
+ case trap_FunEndBreakpoint:
(char*)(*os_context_pc_addr(context)) -= 1;
*os_context_pc_addr(context) =
- (int)handle_function_end_breakpoint(signal, info, context);
+ (int)handle_fun_end_breakpoint(signal, info, context);
break;
default:
static void
sigill_handler(int signal, siginfo_t *siginfo, void *void_context) {
os_context_t *context = (os_context_t*)void_context;
- fprintf(stderr, "\n/entering sigill_handler()\n"); /*REMOVEME*/
fake_foreign_function_call(context);
- ldb_monitor();
+ monitor_or_something();
}
void