summaryrefslogtreecommitdiff
path: root/src/target/armv7m.h
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-19 21:00:55 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-20 09:07:55 +0000
commit0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d (patch)
tree5aaa6baf33bb49344f2f492a0eaf299032e08a13 /src/target/armv7m.h
parent20d1ef70e8417da7efc8a032992ee7672a19e296 (diff)
downloadopenocd+libswd-0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d.tar.gz
openocd+libswd-0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d.tar.bz2
openocd+libswd-0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d.tar.xz
openocd+libswd-0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d.zip
ARMV7M: handle bkpt instruction on resume/step
Skip over a bkpt instruction if found on resume/step. Only software breakpoints known to OpenOCD are currently handled. So this handles the special case of either a user added bkpt or library added, eg. semi-hosting support. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/armv7m.h')
-rw-r--r--src/target/armv7m.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 86caae21..9787e305 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -171,6 +171,8 @@ int armv7m_checksum_memory(struct target *target,
int armv7m_blank_check_memory(struct target *target,
uint32_t address, uint32_t count, uint32_t* blank);
+int armv7m_maybe_skip_bkpt_inst(struct target *target, bool *inst_found);
+
extern const struct command_registration armv7m_command_handlers[];
#endif /* ARMV7M_H */