svn commit: r185634 - head/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Fri Dec 5 03:34:36 PST 2008
Author: kib
Date: Fri Dec 5 11:34:36 2008
New Revision: 185634
URL: http://svn.freebsd.org/changeset/base/185634
Log:
Improve db_backtrace() for compat ia32 on amd64. 32bit image enters
the kernel via Xint0x80_syscall().
Submitted by: dchagin
MFC after: 1 week
Modified:
head/sys/amd64/amd64/db_trace.c
Modified: head/sys/amd64/amd64/db_trace.c
==============================================================================
--- head/sys/amd64/amd64/db_trace.c Fri Dec 5 07:47:03 2008 (r185633)
+++ head/sys/amd64/amd64/db_trace.c Fri Dec 5 11:34:36 2008 (r185634)
@@ -27,6 +27,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_compat.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kdb.h>
@@ -318,6 +320,10 @@ db_nextframe(struct amd64_frame **fp, db
frame_type = INTERRUPT;
else if (strcmp(name, "Xfast_syscall") == 0)
frame_type = SYSCALL;
+#ifdef COMPAT_IA32
+ else if (strcmp(name, "Xint0x80_syscall") == 0)
+ frame_type = SYSCALL;
+#endif
/* XXX: These are interrupts with trap frames. */
else if (strcmp(name, "Xtimerint") == 0 ||
strcmp(name, "Xcpustop") == 0 ||
More information about the svn-src-head
mailing list