This is an automated email from Gerrit.

"Daniel Goehring <dgoeh...@os.amperecomputing.com>" just uploaded a new patch 
set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7189

-- gerrit

commit d7667789c70f0edea6e4f018a1a692530e9e74ff
Author: Daniel Goehring <dgoeh...@os.amperecomputing.com>
Date:   Fri Jan 14 11:45:15 2022 -0500

    target/target: enhanced defer_examine support
    
    Allow user to put a target back into the defer-examine state
    by executing the command "<target> arp_examine allow-defer"
    during a debug session. This can be useful if the user wants
    to detach from the target when performing a custom reset sequence.
    
    Change-Id: I41d5a31d83f180a1e5665f66bce9cf145e21eedc
    Signed-off-by: Daniel Goehring <dgoeh...@os.amperecomputing.com>

diff --git a/src/target/target.c b/src/target/target.c
index 97ea13dc23..3dc76c46d6 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -5726,6 +5726,7 @@ static int jim_target_examine(Jim_Interp *interp, int 
argc, Jim_Obj *const *argv
                return jim_target_tap_disabled(interp);
 
        if (allow_defer && target->defer_examine) {
+               target_reset_examined(target);
                LOG_INFO("Deferring arp_examine of %s", target_name(target));
                LOG_INFO("Use arp_examine command to examine it manually!");
                return JIM_OK;

-- 

Reply via email to