aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-09-20 14:48:57 +0200
committerTom de Vries <tdevries@suse.de>2025-09-20 14:48:57 +0200
commit89f8e850a1a2ddabe5125251fa44c4bddc172869 (patch)
tree82717a59a2b137c57f0531b0cf05c79fc9083e6a /gdb/python/python-internal.h
parentf1bc2d9dc2874567797ddbe4d6686216bb0daa2b (diff)
downloadbinutils-89f8e850a1a2ddabe5125251fa44c4bddc172869.zip
binutils-89f8e850a1a2ddabe5125251fa44c4bddc172869.tar.gz
binutils-89f8e850a1a2ddabe5125251fa44c4bddc172869.tar.bz2
[gdb/testsuite] Fix hardcoded constant in gdb.python/py-pp-maint.exp
In test-case gdb.python/py-pp-maint.exp, I came across: ... gdb_test "disable pretty-printer global lookup_function_lookup_test" \ "1 printer disabled.*[expr $num_pp - 1] of $num_pp printers enabled" gdb_test "disable pretty-printer global pp-test;.*" \ "[expr 5] printers disabled.*0 of $num_pp printers enabled" ... The "[expr 5]" can simply be rewritten as "5", but instead use the construct used in the previous gdb_test: [expr {$num_pp - 1}], given that the numbers should match. Tested on x86_64-linux.
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions