diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-03-22 23:31:46 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-03-22 23:31:46 +0000 |
commit | a24a146a9cd2c7771322af3fee2dd6f96d49b118 (patch) | |
tree | 97349a59f79b562059fbb3a79898d2485c95924c /sys/arch | |
parent | 97436b75537bfb53f6424cd478581d44fe8cd321 (diff) |
make sure we stop stack tracing on user pc
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/db_interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/db_interface.c b/sys/arch/hppa/hppa/db_interface.c index e1248adddc5..8c71d74b467 100644 --- a/sys/arch/hppa/hppa/db_interface.c +++ b/sys/arch/hppa/hppa/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.15 2001/01/30 21:45:32 mickey Exp $ */ +/* $OpenBSD: db_interface.c,v 1.16 2001/03/22 23:31:45 mickey Exp $ */ /* * Copyright (c) 1999-2000 Michael Shalayeff @@ -247,9 +247,6 @@ db_stack_trace_cmd(addr, have_addr, count, modif) char *name; char **argnp, *argnames[HPPA_FRAME_NARGS]; - if (USERMODE(pc)) - return; - if (count < 0) count = 65536; @@ -268,6 +265,9 @@ db_stack_trace_cmd(addr, have_addr, count, modif) #endif while (fp && count--) { + if (USERMODE(pc)) + return; + sym = db_search_symbol(pc, DB_STGY_ANY, &off); db_symbol_values (sym, &name, NULL); |