diff options
Diffstat (limited to 'gdb/testsuite/lib/jit-elf-helpers.exp')
-rw-r--r-- | gdb/testsuite/lib/jit-elf-helpers.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/jit-elf-helpers.exp b/gdb/testsuite/lib/jit-elf-helpers.exp index e5c328e..1f0a0d2 100644 --- a/gdb/testsuite/lib/jit-elf-helpers.exp +++ b/gdb/testsuite/lib/jit-elf-helpers.exp @@ -91,7 +91,7 @@ proc compile_and_download_n_jit_so {jit_solib_basename jit_solib_srcfile \ # do symbol renaming by munging on ELF symbol table, and that # wouldn't work for .debug sections. Also, output for "info # function" changes when debug info is present. - set addr [format 0x%x [expr $jit_load_address + $jit_load_increment * [expr $i-1]]] + set addr [format 0x%x [expr {$jit_load_address + $jit_load_increment * ($i - 1)}]] # Use "text_segment=..." to ask the linker to relocate everything in the # compiled shared library against a fixed base address. Combined |