From eab0945f137eac177672583ae68a8965dd3785f2 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 29 Jan 2010 16:14:35 +0000 Subject: When backtracing self, start with the current frame (i.e. the frame of db_trace_self()) and not the caller's frame. The use of builtin_frame_address(1) to get the caller's frame is not reliable and can cause panics. --- sys/arm/arm/db_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/arm') diff --git a/sys/arm/arm/db_trace.c b/sys/arm/arm/db_trace.c index 9bc3cbc..a83f49d 100644 --- a/sys/arm/arm/db_trace.c +++ b/sys/arm/arm/db_trace.c @@ -206,6 +206,6 @@ db_trace_self(void) { db_addr_t addr; - addr = (db_addr_t)__builtin_frame_address(1); + addr = (db_addr_t)__builtin_frame_address(0); db_stack_trace_cmd(addr, -1); } -- cgit v1.1