This is an automated email from Gerrit.

"Ahmed Haoues <[email protected]>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/9360

-- gerrit

commit b59b4000dceb1e431db9e5721cb33176af5c985b
Author: HAOUES Ahmed <[email protected]>
Date:   Fri Jan 16 15:08:59 2026 +0100

    flash: nor: keep Windows backslashes in flash list output
    
    Wrap the name field in braces when formatting the flash list Tcl structure
    so that Tcl does not interpret backslash escape sequences.
    This ensures Windows paths are preserved verbatim in the output and
    can be reliably matched in Tcl scripts.
    
    Fixes: 80fc9fabc66a ("flash: nor: rewrite command 'flash list' as 
COMMAND_HANDLER")
    
    Change-Id: Ibd0a4b292828f084122e4a02732dc69ac0885f3c
    Signed-off-by: HAOUES Ahmed <[email protected]>
    Reviewed-on: https://gerrit.st.com/c/stm32ide/official/openocd/+/525763

diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 2e7e6a38f7..add7df4376 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -1460,7 +1460,7 @@ COMMAND_HANDLER(handle_flash_list)
        for (struct flash_bank *p = flash_bank_list(); p; p = p->next) {
                command_print(CMD,
                        "{\n"
-                       "    name       %s\n"
+                       "    name       {%s}\n"
                        "    driver     %s\n"
                        "    base       " TARGET_ADDR_FMT "\n"
                        "    size       0x%" PRIx32 "\n"

-- 

Reply via email to