aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-02-10 16:06:50 +0000
committerPedro Alves <palves@redhat.com>2012-02-10 16:06:50 +0000
commit4a2d9c0801c95eafe989a6104bb06cdf376779ba (patch)
tree2f53fad5d5b4a1c36d361bb05235fc962ed91a16 /gdb/testsuite
parentdb2b9fdd4f883c597bb5707b8a5d6e55d2406323 (diff)
downloadbinutils-4a2d9c0801c95eafe989a6104bb06cdf376779ba.zip
binutils-4a2d9c0801c95eafe989a6104bb06cdf376779ba.tar.gz
binutils-4a2d9c0801c95eafe989a6104bb06cdf376779ba.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/break-interp.exp9
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 556e7e0..f0eab1c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp
index 04b5eab..575e8f0 100644
--- a/gdb/testsuite/gdb.base/break-interp.exp
+++ b/gdb/testsuite/gdb.base/break-interp.exp
@@ -262,9 +262,7 @@ proc test_attach_gdb {file pid displacement prefix} {
# 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 {
@@ -308,6 +306,7 @@ proc test_attach_gdb {file pid displacement prefix} {
proc test_attach {file displacement {relink_args ""}} {
global board_info
+ global exec
gdb_exit
@@ -336,10 +335,10 @@ proc test_attach {file displacement {relink_args ""}} {
}
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