+2012-02-10 Pedro Alves <palves@redhat.com>
+
+ * gdb.base/break-interp.exp (test_attach_gdb): Assume $file is
+ always non-empty.
+ (test_attach): Always pass $exec to test_attach_gdb.
+
2012-02-08 Tom Tromey <tromey@redhat.com>
* gdb.python/py-symbol.exp: Use lookup_global_symbol for tests
# Print the "PIE (Position Independent Executable) displacement" message.
gdb_test_no_output "set verbose on"
- if {$file != ""} {
- gdb_test "file $file" "Reading symbols from .*done\\." "file"
- }
+ gdb_test "file $file" "Reading symbols from .*done\\." "file"
set test "attach"
gdb_test_multiple "attach $pid" $test {
proc test_attach {file displacement {relink_args ""}} {
global board_info
+ global exec
gdb_exit
}
if {$relink_args == ""} {
- test_attach_gdb "" $pid $displacement "attach"
+ test_attach_gdb $exec $pid $displacement "attach"
} else {
# These could be rather passed as arguments.
- global exec interp_saved interp
+ global interp_saved interp
foreach relink {YES NO} {
# Formerly this test was testing only prelinking of $EXEC. As the