summaryrefslogtreecommitdiff
path: root/src/target/cortex_m3.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:55:08 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:57:44 -0800
commit81aec6be045792f3ed6a2d8fdbf1f534993b5c14 (patch)
tree71e39734fd3f68f3606331c8f3f569ce32e2162f /src/target/cortex_m3.c
parentbbb754aa395be74ceac0c01640fb33c0fae52c20 (diff)
downloadopenocd+libswd-81aec6be045792f3ed6a2d8fdbf1f534993b5c14.tar.gz
openocd+libswd-81aec6be045792f3ed6a2d8fdbf1f534993b5c14.tar.bz2
openocd+libswd-81aec6be045792f3ed6a2d8fdbf1f534993b5c14.tar.xz
openocd+libswd-81aec6be045792f3ed6a2d8fdbf1f534993b5c14.zip
ARM: list number of HW breakpoints/watchpoints
When starting up, say how many hardware breakpoints and watchpoints are available on various targets. This makes it easier to tell GDB how many of those resources exist. Its remote protocol currently has no way to ask OpenOCD for that information, so it must configured by hand (or not at all). Update the docs to mention this; remove obsolete "don't do this" info. Presentation of GDB setup information is still a mess, but at least it calls out the three components that need setup. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/cortex_m3.c')
-rw-r--r--src/target/cortex_m3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c
index 558b2117..bdd32334 100644
--- a/src/target/cortex_m3.c
+++ b/src/target/cortex_m3.c
@@ -1608,6 +1608,12 @@ static int cortex_m3_examine(struct target *target)
/* Setup DWT */
cortex_m3_dwt_setup(cortex_m3, target);
+
+ /* These hardware breakpoints only work for code in flash! */
+ LOG_INFO("%s: hardware has %d breakpoints, %d watchpoints",
+ target_name(target),
+ cortex_m3->fp_num_code,
+ cortex_m3->dwt_num_comp);
}
return ERROR_OK;