* [U-Boot] [PATCH v2 2/4] [ARM] Add KGDB support for ARM platforms
2010-04-17 18:12 ` [U-Boot] [PATCH v2 1/4] " Tonny Tzeng
@ 2010-04-17 18:15 ` Tonny Tzeng
0 siblings, 0 replies; 2+ messages in thread
From: Tonny Tzeng @ 2010-04-17 18:15 UTC (permalink / raw)
To: u-boot
Signed-off-by: Tonny Tzeng <tonny.tzeng@gmail.com>
---
arch/arm/lib/interrupts.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c
index 1f2b815..6ee4309 100644
--- a/arch/arm/lib/interrupts.c
+++ b/arch/arm/lib/interrupts.c
@@ -37,6 +37,9 @@
#include <common.h>
#include <asm/proc-armv/ptrace.h>
+#ifdef CONFIG_CMD_KGDB
+#include <kgdb.h>
+#endif
#ifdef CONFIG_USE_IRQ
DECLARE_GLOBAL_DATA_PTR;
@@ -137,6 +140,12 @@ void show_regs (struct pt_regs *regs)
void do_undefined_instruction (struct pt_regs *pt_regs)
{
+#ifdef CONFIG_CMD_KGDB
+ if (*(unsigned long *)(instruction_pointer(pt_regs) - 4) == KGDB_COMPILED_BREAK) {
+ (*debugger_exception_handler)(pt_regs);
+ return;
+ }
+#endif
printf ("undefined instruction\n");
show_regs (pt_regs);
bad_mode ();
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH v2 2/4] [ARM] Add KGDB support for ARM platforms
@ 2010-06-28 21:40 Ben Baron
0 siblings, 0 replies; 2+ messages in thread
From: Ben Baron @ 2010-06-28 21:40 UTC (permalink / raw)
To: u-boot
I was looking at using this code for Marvell's ARM-like platform. Was
this patch ever accepted in uboot? I don't see it in the current git tree.
Thanks!
Ben Baron
Oracle Development Engineer.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-28 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 21:40 [U-Boot] [PATCH v2 2/4] [ARM] Add KGDB support for ARM platforms Ben Baron
-- strict thread matches above, loose matches on Subject: below --
2010-04-17 17:20 [U-Boot] [PATCH] KGDB set / remove breakpoints Tonny Tzeng
2010-04-17 18:10 ` [U-Boot] [PATCH v2 0/4] [ARM] Add KGDB support for ARM platforms Tonny Tzeng
2010-04-17 18:12 ` [U-Boot] [PATCH v2 1/4] " Tonny Tzeng
2010-04-17 18:15 ` [U-Boot] [PATCH v2 2/4] " Tonny Tzeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox