From: Tomas Vanek Date: Thu, 7 Feb 2019 13:18:17 +0000 (+0100) Subject: target/cortex_m: simplify cortex_m_unset_breakpoint() X-Git-Tag: v0.11.0-rc1~773 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=16432e681e0d776d7f40f14ad0aed3f7e17b848b;hp=16432e681e0d776d7f40f14ad0aed3f7e17b848b target/cortex_m: simplify cortex_m_unset_breakpoint() Cortex-M uses only 2 byte breakpoint instruction. cortex_m_unset_breakpoint() does not need to check breakpoint->length, use the length as the size argument in target_write_memory() Change-Id: I20bb869f6abce2fc61f0469e34a638bc4dc6f7ce Signed-off-by: Tomas Vanek Reviewed-on: http://openocd.zylin.com/4889 Tested-by: jenkins Reviewed-by: Matthias Welwarsky Reviewed-by: Jānis Skujenieks Reviewed-by: Christopher Head ---