Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/gdb_machdep.c
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | if (kdb_thread == curthread) | ||||
kdb_frame->tf_eip = *(register_t *)val; | kdb_frame->tf_eip = *(register_t *)val; | ||||
} | } | ||||
} | } | ||||
int | int | ||||
gdb_cpu_signal(int type, int code) | gdb_cpu_signal(int type, int code) | ||||
{ | { | ||||
switch (type & ~T_USER) { | switch (type) { | ||||
case T_BPTFLT: return (SIGTRAP); | case T_BPTFLT: return (SIGTRAP); | ||||
case T_ARITHTRAP: return (SIGFPE); | case T_ARITHTRAP: return (SIGFPE); | ||||
case T_PROTFLT: return (SIGSEGV); | case T_PROTFLT: return (SIGSEGV); | ||||
case T_TRCTRAP: return (SIGTRAP); | case T_TRCTRAP: return (SIGTRAP); | ||||
case T_PAGEFLT: return (SIGSEGV); | case T_PAGEFLT: return (SIGSEGV); | ||||
case T_DIVIDE: return (SIGFPE); | case T_DIVIDE: return (SIGFPE); | ||||
case T_NMI: return (SIGTRAP); | case T_NMI: return (SIGTRAP); | ||||
case T_FPOPFLT: return (SIGILL); | case T_FPOPFLT: return (SIGILL); | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |