From 0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Tue, 19 Jan 2010 21:00:55 +0000 Subject: 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 --- src/target/armv7m.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/target/armv7m.h') 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 */ -- cgit v1.2.3