mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
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.
This commit is contained in:
parent
db2b9fdd4f
commit
4a2d9c0801
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user