]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix ERROR in expect_build_id_in_core_file
authorTom de Vries <tdevries@suse.de>
Wed, 8 Oct 2025 20:08:49 +0000 (22:08 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 8 Oct 2025 20:08:49 +0000 (22:08 +0200)
commit733ccb8b3fd5422606d5c1ebeba246fa89c8f9ae
tree7ba71c41a4aeaed16d1f8ab8383fe02721781e5d
parentaa99a69e9eb42fc058a921ed8e793396ff4f506e
[gdb/testsuite] Fix ERROR in expect_build_id_in_core_file

With test-case gdb.python/py-corefile.exp I run into:
...
PASS: $exp: test mapped files data: show-build-ids
ERROR: tcl error sourcing gdb.python/py-corefile.exp.
ERROR: bad option "0x1fa178": \
  must be -nobackslashes, -nocommands, or -novariables
    while executing
"subst 0x$offset + 0"
...

Fix this using "[subst 0x$offset]" instead.

Tested on x86_64-linux.
gdb/testsuite/lib/gdb.exp