This is an automated email from Gerrit. Matthias Welwarsky (matth...@welwarsky.de) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4344
-- gerrit commit cc4e2c8c3c618e3175bbd67a69e3cd9a18e9f9c4 Author: Matthias Welwarsky <matthias.welwar...@sysgo.com> Date: Tue Jan 9 10:31:41 2018 +0100 aarch64: fix setting breakpoint on unexamined targets When setting breakpoints, don't fail on targets that have not been examined yet. Change-Id: Iadfcfe27eaf2ec342aa9eb22caf266d948785623 Signed-off-by: Matthias Welwarsky <matthias.welwar...@sysgo.com> diff --git a/src/target/aarch64.c b/src/target/aarch64.c index 784274a..5da4db3 100644 --- a/src/target/aarch64.c +++ b/src/target/aarch64.c @@ -1550,6 +1550,9 @@ static int aarch64_add_breakpoint(struct target *target, { struct aarch64_common *aarch64 = target_to_aarch64(target); + if (!target_was_examined(target)) + return ERROR_OK; + if ((breakpoint->type == BKPT_HARD) && (aarch64->brp_num_available < 1)) { LOG_INFO("no hardware breakpoint available"); return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel