Page MenuHomeFreeBSD

D33253.diff
No OneTemporary

D33253.diff

diff --git a/sys/amd64/amd64/gdb_machdep.c b/sys/amd64/amd64/gdb_machdep.c
--- a/sys/amd64/amd64/gdb_machdep.c
+++ b/sys/amd64/amd64/gdb_machdep.c
@@ -136,7 +136,7 @@
gdb_cpu_signal(int type, int code)
{
- switch (type & ~T_USER) {
+ switch (type) {
case T_BPTFLT: return (SIGTRAP);
case T_ARITHTRAP: return (SIGFPE);
case T_PROTFLT: return (SIGSEGV);
diff --git a/sys/i386/i386/gdb_machdep.c b/sys/i386/i386/gdb_machdep.c
--- a/sys/i386/i386/gdb_machdep.c
+++ b/sys/i386/i386/gdb_machdep.c
@@ -100,7 +100,7 @@
gdb_cpu_signal(int type, int code)
{
- switch (type & ~T_USER) {
+ switch (type) {
case T_BPTFLT: return (SIGTRAP);
case T_ARITHTRAP: return (SIGFPE);
case T_PROTFLT: return (SIGSEGV);
diff --git a/sys/x86/include/trap.h b/sys/x86/include/trap.h
--- a/sys/x86/include/trap.h
+++ b/sys/x86/include/trap.h
@@ -66,7 +66,4 @@
#define T_RESERVED 30 /* reserved (unknown) */
#define T_DTRACE_RET 32 /* DTrace pid return */
-/* Trap's coming from user mode */
-#define T_USER 0x100
-
#endif /* !_MACHINE_TRAP_H_ */

File Metadata

Mime Type
text/plain
Expires
Sun, Jul 19, 7:30 PM (17 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35246204
Default Alt Text
D33253.diff (1 KB)

Event Timeline