From: Tonny Tzeng <tonny.tzeng@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/4] [ARM] Add KGDB support for ARM platforms
Date: Sun, 18 Apr 2010 02:15:27 +0800 [thread overview]
Message-ID: <1271528127.17655.86.camel@localhost.localdomain> (raw)
In-Reply-To: <1271527979.17655.85.camel@localhost.localdomain>
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
next prev parent reply other threads:[~2010-04-17 18:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-17 17:20 [U-Boot] [PATCH] KGDB set / remove breakpoints Tonny Tzeng
2010-04-17 17:46 ` Mike Frysinger
2010-04-19 8:54 ` Tonny Tzeng
2010-04-20 6:15 ` Mike Frysinger
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 ` Tonny Tzeng [this message]
2010-04-17 18:16 ` [U-Boot] [PATCH v2 3/4] " Tonny Tzeng
2010-04-17 18:18 ` [U-Boot] [PATCH v2 4/4] " Tonny Tzeng
2010-04-20 6:17 ` [U-Boot] [PATCH v2 0/4] " Mike Frysinger
-- strict thread matches above, loose matches on Subject: below --
2010-06-28 21:40 [U-Boot] [PATCH v2 2/4] " Ben Baron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1271528127.17655.86.camel@localhost.localdomain \
--to=tonny.tzeng@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox