Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156718443
D27645.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D27645.diff
View Options
Index: sys/amd64/amd64/gdb_machdep.c
===================================================================
--- sys/amd64/amd64/gdb_machdep.c
+++ sys/amd64/amd64/gdb_machdep.c
@@ -183,21 +183,18 @@
{
switch (type & ~T_USER) {
- case 0: return (SIGFPE); /* Divide by zero. */
- case 1: return (SIGTRAP); /* Debug exception. */
- case 3: return (SIGTRAP); /* Breakpoint. */
- case 4: return (SIGSEGV); /* into instr. (overflow). */
- case 5: return (SIGURG); /* bound instruction. */
- case 6: return (SIGILL); /* Invalid opcode. */
- case 7: return (SIGFPE); /* Coprocessor not present. */
- case 8: return (SIGEMT); /* Double fault. */
- case 9: return (SIGSEGV); /* Coprocessor segment overrun. */
- case 10: return (SIGTRAP); /* Invalid TSS (also single-step). */
- case 11: return (SIGSEGV); /* Segment not present. */
- case 12: return (SIGSEGV); /* Stack exception. */
- case 13: return (SIGSEGV); /* General protection. */
- case 14: return (SIGSEGV); /* Page fault. */
- case 16: return (SIGEMT); /* Coprocessor error. */
+ case T_BPTFLT: return (SIGTRAP);
+ case T_ARITHTRAP: return (SIGFPE);
+ case T_PROTFLT: return (SIGSEGV);
+ case T_TRCTRAP: return (SIGTRAP);
+ case T_PAGEFLT: return (SIGSEGV);
+ case T_DIVIDE: return (SIGFPE);
+ case T_NMI: return (SIGTRAP);
+ case T_FPOPFLT: return (SIGILL);
+ case T_TSSFLT: return (SIGSEGV);
+ case T_SEGNPFLT: return (SIGSEGV);
+ case T_STKFLT: return (SIGSEGV);
+ case T_XMMFLT: return (SIGFPE);
}
return (SIGEMT);
}
Index: sys/i386/i386/gdb_machdep.c
===================================================================
--- sys/i386/i386/gdb_machdep.c
+++ sys/i386/i386/gdb_machdep.c
@@ -99,21 +99,18 @@
{
switch (type & ~T_USER) {
- case 0: return (SIGFPE); /* Divide by zero. */
- case 1: return (SIGTRAP); /* Debug exception. */
- case 3: return (SIGTRAP); /* Breakpoint. */
- case 4: return (SIGURG); /* into instr. (overflow). */
- case 5: return (SIGURG); /* bound instruction. */
- case 6: return (SIGILL); /* Invalid opcode. */
- case 7: return (SIGFPE); /* Coprocessor not present. */
- case 8: return (SIGEMT); /* Double fault. */
- case 9: return (SIGSEGV); /* Coprocessor segment overrun. */
- case 10: return (SIGTRAP); /* Invalid TSS (also single-step). */
- case 11: return (SIGSEGV); /* Segment not present. */
- case 12: return (SIGSEGV); /* Stack exception. */
- case 13: return (SIGSEGV); /* General protection. */
- case 14: return (SIGSEGV); /* Page fault. */
- case 16: return (SIGEMT); /* Coprocessor error. */
+ case T_BPTFLT: return (SIGTRAP);
+ case T_ARITHTRAP: return (SIGFPE);
+ case T_PROTFLT: return (SIGSEGV);
+ case T_TRCTRAP: return (SIGTRAP);
+ case T_PAGEFLT: return (SIGSEGV);
+ case T_DIVIDE: return (SIGFPE);
+ case T_NMI: return (SIGTRAP);
+ case T_FPOPFLT: return (SIGILL);
+ case T_TSSFLT: return (SIGSEGV);
+ case T_SEGNPFLT: return (SIGSEGV);
+ case T_STKFLT: return (SIGSEGV);
+ case T_XMMFLT: return (SIGFPE);
}
return (SIGEMT);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 9:22 PM (7 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33153800
Default Alt Text
D27645.diff (2 KB)
Attached To
Mode
D27645: gdb(4): fix x86 signal reporting
Attached
Detach File
Event Timeline
Log In to Comment