summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-08-22 20:28:13 +0000
committerjhb <jhb@FreeBSD.org>2007-08-22 20:28:13 +0000
commitf6ef728f95d937b3f698e229a80520dee5dc3525 (patch)
tree6be48e22c1c2190ff571c71466db6a8c6014bccc /gnu/usr.bin
parent5ff55e957c273cdaee8d1ca40f48aeeb06a9529f (diff)
downloadFreeBSD-src-f6ef728f95d937b3f698e229a80520dee5dc3525.zip
FreeBSD-src-f6ef728f95d937b3f698e229a80520dee5dc3525.tar.gz
NMIs now come from 'nmi_calltrap' rather than 'calltrap', so teach 'kgdb'
to treat the frame under 'nmi_calltrap' as a trapframe. MFC after: 3 days Approved by: re (bmah)
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gdb/kgdb/trgt_amd64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/trgt_amd64.c b/gnu/usr.bin/gdb/kgdb/trgt_amd64.c
index f24883d..064d482 100644
--- a/gnu/usr.bin/gdb/kgdb/trgt_amd64.c
+++ b/gnu/usr.bin/gdb/kgdb/trgt_amd64.c
@@ -178,6 +178,7 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame)
if (pname == NULL)
return (NULL);
if (strcmp(pname, "calltrap") == 0 ||
+ strcmp(pname, "nmi_calltrap") == 0 ||
(pname[0] == 'X' && pname[1] != '_'))
return (&kgdb_trgt_trapframe_unwind);
/* printf("%s: %lx =%s\n", __func__, pc, pname); */
OpenPOWER on IntegriCloud