# Create an inverse mapping of the actual type to
# the synthetic type.
- set type_map("$types($type)") $type
+ set type_map($types($type)) $type
pass "detect $type"
}
}
for {set idx 0} {$idx < [llength $overloads]} {incr idx} {
set type [lindex $overloads $idx]
set_bp_overloaded $method $menu_overload1arg \
- [expr {$idx + 2}] [incr bpnum] $line($type_map("$type"))
+ [expr {$idx + 2}] [incr bpnum] $line($type_map($type))
}
# Verify the breakpoints.
append bptable "\[\t \]+breakpoint already hit 1 time"
foreach ovld $overloads {
append bptable [format "\r\n${::decimal}\[\t \]+breakpoint\[\t \]+keep y\[\t \]+$hex\[\t \]+in foo::overload1arg\\(%s\\) at.*$srcfile:%d" $ovld \
- $line($type_map("$ovld"))]
+ $line($type_map($ovld))]
}
gdb_test "info break" $bptable "breakpoint info, after setting one-by-one"
set expected_lines {}
for {set i 0} {$i < 2} {incr i} {
set type [lindex $overloads $i]
- lappend expected_lines $line($type_map("$type"))
+ lappend expected_lines $line($type_map($type))
}
set_bp_overloaded $method $menu_overload1arg \
"2-3" [incr bpnum] $expected_lines
global cp_class_table_history
if {$in_class_table == "ibid"} {
- if {![info exists cp_class_table_history("$in_key,$in_tag")]} {
+ if {![info exists cp_class_table_history($in_key,$in_tag)]} {
fail "$in_testname // bad ibid"
return false
}
- set in_class_table $cp_class_table_history("$in_key,$in_tag")
+ set in_class_table $cp_class_table_history($in_key,$in_tag)
} else {
- set cp_class_table_history("$in_key,$in_tag") $in_class_table
+ set cp_class_table_history($in_key,$in_tag) $in_class_table
}
# Split the class table into separate tables.