gdb_continue_to_breakpoint "continue to first breakpoint in main"
for { set r 1 } { $r <= 6 } { incr r } {
- set hex [format %x $r]
+ set hexr [format %x $r]
gdb_test "print/x \$$word_regs($r)" \
- ".. = 0x${hex}2${hex}1" \
+ ".. = 0x${hexr}2${hexr}1" \
"check contents of %$word_regs($r)"
}
gdb_continue_to_breakpoint "continue to second breakpoint in main"
for { set r 7 } { $r <= $nr_regs } { incr r } {
- set hex [format %x $r]
+ set hexr [format %x $r]
gdb_test "print/x \$$word_regs($r)" \
- ".. = 0x${hex}2${hex}1" \
+ ".. = 0x${hexr}2${hexr}1" \
"check contents of %$word_regs($r)"
}