1 /* 2 * Copyright 2008, Axel Dörfler, axeld@pinc-software.de 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <debug.h> 8 9 10 static void 11 enter_debugger(void) 12 { 13 evaluate_debug_command("sc"); 14 } 15 16 17 static status_t 18 std_ops(int32 op, ...) 19 { 20 if (op == B_MODULE_INIT || op == B_MODULE_UNINIT) 21 return B_OK; 22 23 return B_BAD_VALUE; 24 } 25 26 27 static struct debugger_module_info sModuleInfo = { 28 { 29 "debugger/auto_stack_trace/v1", 30 0, 31 &std_ops 32 }, 33 enter_debugger, 34 NULL, 35 NULL, 36 NULL 37 }; 38 39 module_info *modules[] = { 40 (module_info *)&sModuleInfo, 41 NULL 42 }; 43 44