This is an automated email from Gerrit.

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

-- gerrit

commit 766c5ca7f892fb37c0291f1b6b91809b8041a531
Author: Cristian Dinca <[email protected]>
Date:   Fri Feb 13 15:50:48 2026 +0200

    target/smp: reply to unknown packets in gdb_read_smp_packet
    
    Some clients probe or use SMP-related 'j' packets. If OpenOCD
    received an unknown 'j' packet, gdb_read_smp_packet previously did
    not send any reply. This may result cause the client to hang while
    waiting for a response.
    
    Send an empty reply packet for unsupported 'j' packets.
    
    Change-Id: I84c5e8e99f946d41dd5c11163c3eeb8af2b6c90f
    Signed-off-by: Cristian Dinca <[email protected]>

diff --git a/src/target/smp.c b/src/target/smp.c
index 41ca880d43..6f9aa43535 100644
--- a/src/target/smp.c
+++ b/src/target/smp.c
@@ -63,6 +63,9 @@ int gdb_read_smp_packet(struct connection *connection,
                                sizeof(hex_buffer));
 
                        retval = gdb_put_packet(connection, hex_buffer, 
pkt_len);
+               } else {
+                       LOG_DEBUG("ignoring 0x%2.2x packet", packet[0]);
+                       retval = gdb_put_packet(connection, "", 0);
                }
        } else
                retval = gdb_put_packet(connection, "E01", 3);

-- 

Reply via email to