summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-01-30 20:11:14 +0000
committermiod <miod@openbsd.org>2014-01-30 20:11:14 +0000
commitd82f2e67ccd2b7e9746433200b33be94e088260a (patch)
tree789a868f7e98a3be67008a27dfbc0dafcb8826ee
parentNarrow ci_flags to be able to print ci_mutex_level in the `machine ddbcpu' (diff)
downloadwireguard-openbsd-d82f2e67ccd2b7e9746433200b33be94e088260a.tar.xz
wireguard-openbsd-d82f2e67ccd2b7e9746433200b33be94e088260a.zip
Abort traceback when a new ra has not been found, instead of looping on it
and printing the same traceback line several times.
-rw-r--r--sys/arch/alpha/alpha/db_trace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/db_trace.c b/sys/arch/alpha/alpha/db_trace.c
index 767485158ab..2bf9ee0fc25 100644
--- a/sys/arch/alpha/alpha/db_trace.c
+++ b/sys/arch/alpha/alpha/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.15 2010/11/27 19:57:23 miod Exp $ */
+/* $OpenBSD: db_trace.c,v 1.16 2014/01/30 20:11:14 miod Exp $ */
/*
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -310,8 +310,10 @@ trapframe:
else
break;
- /* Advance to the next frame. */
+ /* Advance to the next frame, if any. */
frame += framesize;
+ if (ra == pc)
+ break;
pc = ra;
}
}