summaryrefslogtreecommitdiff
path: root/usr.bin/pmdb/arch/vax
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-03-19 21:43:06 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-03-19 21:43:06 +0000
commitbc647b0eee5d18d983aefad1dca63ed4131b4e50 (patch)
treeab3b63e106563206aaa9404c3c5061541eec62dc /usr.bin/pmdb/arch/vax
parent31e7d538ed5febc04e7da0e389865984145dabe4 (diff)
if pc is below 0x1000, stop; now trace shows up to start().
Diffstat (limited to 'usr.bin/pmdb/arch/vax')
-rw-r--r--usr.bin/pmdb/arch/vax/vax.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/pmdb/arch/vax/vax.c b/usr.bin/pmdb/arch/vax/vax.c
index 228c58536ad..1151fb5c16b 100644
--- a/usr.bin/pmdb/arch/vax/vax.c
+++ b/usr.bin/pmdb/arch/vax/vax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vax.c,v 1.2 2002/03/19 21:32:10 fgsch Exp $ */
+/* $OpenBSD: vax.c,v 1.3 2002/03/19 21:43:05 fgsch Exp $ */
/*
* Copyright (c) 2002 Federico Schwindt <fgsch@openbsd.org>
* All rights reserved.
@@ -58,6 +58,9 @@ md_getframe(struct pstate *ps, int frame, struct md_frame *fram)
for (count = 0; count < frame; count++) {
if (read_from_pid(ps->ps_pid, fr.ca_fp, &fr, sizeof(fr)) < 0)
return (-1);
+
+ if (fr.ca_pc < 0x1000)
+ return (-1);
}
fram->pc = fr.ca_pc;