]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix minor bug in dap-support.exp
authorTom Tromey <tromey@adacore.com>
Wed, 3 Sep 2025 17:54:57 +0000 (11:54 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 26 Sep 2025 15:29:13 +0000 (09:29 -0600)
Commit faee137249c8 refactored dap-support.exp, but accidentally left
a reference to a variable that was renamed.  I noticed this when an
earlier version of this series provoked one of the errors in this
code.

gdb/testsuite/lib/dap-support.exp

index 2d962e6dd093c51b7d0b6a6b2efb6838bbd3f988..5c078ca011d08dda06cc93f75e41451b204ac07d 100644 (file)
@@ -231,9 +231,9 @@ proc dap_read_response {cmd num} {
        set d [_dap_read_json]
        if {[dict get $d type] == "response"} {
            if {[dict get $d request_seq] != $num} {
-               error "saw wrong request_seq in $obj"
+               error "saw wrong request_seq in $d"
            } elseif {[dict get $d command] != $cmd} {
-               error "saw wrong command in $obj"
+               error "saw wrong command in $d"
            } else {
                return [list $d $result]
            }