Add the trapframe pointer to the syscall information.
This commit is contained in:
parent
3c6d72d744
commit
01a744c41e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_trace.c,v 1.9 2010/07/01 02:38:27 rmind Exp $ */
|
||||
/* $NetBSD: db_trace.c,v 1.10 2011/02/28 21:24:25 skrll Exp $ */
|
||||
|
||||
/* $OpenBSD: db_interface.c,v 1.16 2001/03/22 23:31:45 mickey Exp $ */
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.9 2010/07/01 02:38:27 rmind Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.10 2011/02/28 21:24:25 skrll Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -153,9 +153,9 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
|
||||
tf = (struct trapframe *)((char *)scargs - sizeof(*tf));
|
||||
|
||||
if (tf->tf_flags & TFF_SYS)
|
||||
pr("-- syscall #%d(%x, %x, %x, %x, ...)\n",
|
||||
pr("-- syscall #%d(%x, %x, %x, %x, ...) (%p)\n",
|
||||
tf->tf_t1, scargs[1], scargs[2],
|
||||
scargs[3], scargs[4]);
|
||||
scargs[3], scargs[4], tf);
|
||||
else
|
||||
pr("-- trap #%d (%p) %s\n", tf->tf_flags & 0x3f,
|
||||
tf, (tf->tf_flags & T_USER)? " from user" :
|
||||
|
Loading…
Reference in New Issue
Block a user