diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-06-04 19:42:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-06-04 19:42:23 +0000 |
commit | e1635db6bd1fc929b000ac85f8ac9fcc43f63fb7 (patch) | |
tree | 391bf1f191f7259a26ef3c9fead8eb8636ac2f04 /sys/arch/amd64 | |
parent | 7e6098ef0a5df4f88b3df762ae3a769b06336e5d (diff) |
Remove support for non-ELF; it never existed for amd64.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/db_trace.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/arch/amd64/amd64/db_trace.c b/sys/arch/amd64/amd64/db_trace.c index 22948d90102..c41b9a79142 100644 --- a/sys/arch/amd64/amd64/db_trace.c +++ b/sys/arch/amd64/amd64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.4 2007/01/15 23:19:05 jsg Exp $ */ +/* $OpenBSD: db_trace.c,v 1.5 2009/06/04 19:42:22 kettenis Exp $ */ /* $NetBSD: db_trace.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */ /* @@ -283,7 +283,6 @@ db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count, } } if (INKERNEL(frame) && name) { -#ifdef __ELF__ if (!strcmp(name, "trap")) { is_trap = TRAP; } else if (!strcmp(name, "syscall")) { @@ -302,26 +301,6 @@ db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count, } else goto normal; narg = 0; -#else - if (!strcmp(name, "_trap")) { - is_trap = TRAP; - } else if (!strcmp(name, "_syscall")) { - is_trap = SYSCALL; - } else if (name[0] == '_' && name[1] == 'X') { - if (!strncmp(name, "_Xintr", 6) || - !strncmp(name, "_Xresume", 8) || - !strncmp(name, "_Xstray", 7) || - !strncmp(name, "_Xhold", 6) || - !strncmp(name, "_Xrecurse", 9) || - !strcmp(name, "_Xdoreti") || - !strncmp(name, "_Xsoft", 6)) { - is_trap = INTERRUPT; - } else - goto normal; - } else - goto normal; - narg = 0; -#endif /* __ELF__ */ } else { normal: is_trap = NONE; |