Fix Tcl quoting in gdb_assert
authorTom Tromey <tromey@adacore.com>
Wed, 15 Feb 2023 21:57:10 +0000 (14:57 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 23 Feb 2023 19:50:30 +0000 (12:50 -0700)
commiteb94f4278737e6df934d7064ebbd87e4d95ad9d7
treeb1fd404ddcd3c4c59c426f575e694c22efe443ac
parentc32ea73114dfdd161098f11f2590acd71603a397
Fix Tcl quoting in gdb_assert

The gdb_assert proc under-quotes the expression that is passed in.
This leads to weird code in a couple of spots that tries to
compensate:

    gdb_assert {{$all_regs eq $completed_regs}} ...

The fix is to add a bit of quoting when evaluating the expression.
gdb/testsuite/gdb.base/completion.exp
gdb/testsuite/gdb.base/step-over-no-symbols.exp
gdb/testsuite/lib/gdb.exp