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.
}
# Convert OFFSET to decimal.
- set offset [expr {[subst 0x$offset + 0]}]
+ set offset [expr {[subst 0x$offset]}]
# Now figure out the page size. This should be fine for Linux
# hosts, see the istarget check above.