| Index: gdb/testsuite/gdb.base/attach-pie-misread.exp
|
| diff --git a/gdb/testsuite/gdb.base/attach-pie-misread.exp b/gdb/testsuite/gdb.base/attach-pie-misread.exp
|
| index e7ff23146e63489ce6abd7b718703d0fadc71407..dfc39a9490c43ad8f4df4a5bae945d0a237a246b 100644
|
| --- a/gdb/testsuite/gdb.base/attach-pie-misread.exp
|
| +++ b/gdb/testsuite/gdb.base/attach-pie-misread.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2010-2012 Free Software Foundation, Inc.
|
| +# Copyright 2010-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -21,13 +21,11 @@ if { ![isnative] || [is_remote host] || [target_info exists use_gdb_stub]
|
|
|
| load_lib prelink-support.exp
|
|
|
| -set test "attach-pie-misread"
|
| -set srcfile ${test}.c
|
| -set genfile ${objdir}/${subdir}/${test}-gen.h
|
| -set executable ${test}
|
| -set binfile ${objdir}/${subdir}/${executable}
|
| +standard_testfile .c
|
| +set genfile [standard_output_file ${testfile}-gen.h]
|
| +set executable $testfile
|
|
|
| -if {[build_executable_own_libs ${test}.exp $executable $srcfile [list additional_flags=-fPIE ldflags=-pie]] == ""} {
|
| +if {[build_executable_own_libs ${testfile}.exp $executable $srcfile [list additional_flags=-fPIE ldflags=-pie]] == ""} {
|
| return -1
|
| }
|
|
|
| @@ -38,7 +36,7 @@ if {[build_executable_own_libs ${test}.exp $executable $srcfile [list additional
|
| # DYNAMIC 0x134f618 0x000000000194f618 0x000000000194f618 0x000200 0x000200 RW 0x8
|
| #
|
| proc read_phdr {binfile test} {
|
| - set readelf_program [transform readelf]
|
| + set readelf_program [gdb_find_readelf]
|
| set command "exec $readelf_program -Wl $binfile"
|
| verbose -log "command is $command"
|
| set result [catch $command output]
|
| @@ -128,7 +126,7 @@ if {$first_offset == 0} {
|
| set test "start inferior"
|
| gdb_exit
|
|
|
| -set res [remote_spawn host $binfile];
|
| +set res [remote_spawn host $binfile]
|
| if { $res < 0 || $res == "" } {
|
| perror "Spawning $binfile failed."
|
| fail $test
|
|
|