From 32cabac0f3f2113f04569e8c6201920e30ed8e73 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 21 Feb 2011 20:57:56 +1300 Subject: Stack is now unwound on hardfault. --- src/include/target.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/target.h') diff --git a/src/include/target.h b/src/include/target.h index bd32c0f..aa20f39 100644 --- a/src/include/target.h +++ b/src/include/target.h @@ -77,6 +77,8 @@ #define target_halt_resume(target, step) \ (target)->halt_resume((target), (step)) +#define target_fault_unwind(target) \ + ((target)->fault_unwind?(target)->fault_unwind((target)):0) /* Break-/watchpoint functions */ #define target_set_hw_bp(target, addr) \ @@ -145,6 +147,7 @@ typedef struct target_s { void (*halt_request)(struct target_s *target); int (*halt_wait)(struct target_s *target); void (*halt_resume)(struct target_s *target, uint8_t step); + int (*fault_unwind)(struct target_s *target); /* Break-/watchpoint functions */ int (*set_hw_bp)(struct target_s *target, uint32_t addr); -- cgit v1.2.3