summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-03-19 02:58:53 +0000
committerjake <jake@FreeBSD.org>2003-03-19 02:58:53 +0000
commit106626faa2218c5892174d211811f6e6c30c0b51 (patch)
treea0203e0c1319742f2cf7d93a057642e1b752bdb5 /sys
parent50d281927b6d64d39d24109d204638921b4390f7 (diff)
downloadFreeBSD-src-106626faa2218c5892174d211811f6e6c30c0b51.zip
FreeBSD-src-106626faa2218c5892174d211811f6e6c30c0b51.tar.gz
Implement db_print_backtrace. This may need to flush out the windows
as well.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/sparc64/db_trace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/db_trace.c b/sys/sparc64/sparc64/db_trace.c
index bcafcc0..bd01490 100644
--- a/sys/sparc64/sparc64/db_trace.c
+++ b/sys/sparc64/sparc64/db_trace.c
@@ -309,4 +309,8 @@ db_utrace(struct thread *td, struct trapframe *tf)
void
db_print_backtrace(void)
{
+ u_long *sp;
+
+ sp = __builtin_frame_address(1);
+ db_stack_trace_cmd((db_expr_t)sp, TRUE, -1, "a");
}
OpenPOWER on IntegriCloud