summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-04 08:21:18 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-04 08:21:18 +0000
commitee329275d373567ca52f4116569aac24d059ea43 (patch)
tree2735907064582758caa8f6ecb42cb8f67b2625b9 /src/target
parent51be978b4329008ece5a501563ffcc4059baef8f (diff)
downloadopenocd_libswd-ee329275d373567ca52f4116569aac24d059ea43.tar.gz
openocd_libswd-ee329275d373567ca52f4116569aac24d059ea43.tar.bz2
openocd_libswd-ee329275d373567ca52f4116569aac24d059ea43.tar.xz
openocd_libswd-ee329275d373567ca52f4116569aac24d059ea43.zip
more debug output for breakpoints
git-svn-id: svn://svn.berlios.de/openocd/trunk@2667 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm7_9_common.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index 459b7d44..6f76c07c 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -228,9 +228,10 @@ int arm7_9_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
arm7_9_common_t *arm7_9 = armv4_5->arch_info;
int retval = ERROR_OK;
- LOG_DEBUG("BPID: %d, Address: 0x%08" PRIx32,
+ LOG_DEBUG("BPID: %d, Address: 0x%08" PRIx32 ", Type: %d" ,
breakpoint->unique_id,
- breakpoint->address );
+ breakpoint->address,
+ breakpoint->type);
if (target->state != TARGET_HALTED)
{
@@ -1187,6 +1188,13 @@ int arm7_9_soft_reset_halt(struct target_s *target)
int i;
int retval;
+ /* FIX!!! replace some of this code with tcl commands
+ *
+ * halt # the halt command is synchronous
+ * armv4_5 core_state arm
+ *
+ */
+
if ((retval = target_halt(target)) != ERROR_OK)
return retval;