+2013-08-13 Tom Tromey <tromey@redhat.com>
+
+ * lib/gdb.exp (build_id_debug_filename_get): Use
+ standard_output_file.
+ * lib/prelink-support.exp (section_get)
+ (build_executable_own_libs): Use standard_output_file.
+
2013-08-12 Tom Tromey <tromey@redhat.com>
* Makefile.in (ALL_SUBDIRS): Add gdb.go.
# converted to the form: .build-id/ab/cdef1234...89.debug
# Return "" if no build-id found.
proc build_id_debug_filename_get { exec } {
- set tmp "${exec}-tmp"
+ set tmp [standard_output_file "${exec}-tmp"]
set objcopy_program [transform objcopy]
set result [catch "exec $objcopy_program -j .note.gnu.build-id -O binary $exec $tmp" output]
# for sections ".interp" or ".gnu_debuglink".
proc section_get {exec section} {
- global objdir
global subdir
- set tmp "${objdir}/${subdir}/section_get.tmp"
+ set tmp [standard_output_file section_get.tmp]
set objcopy_program [transform objcopy]
set command "exec $objcopy_program -O binary --set-section-flags $section=A --change-section-address $section=0 -j $section $exec $tmp"
# with -Wl,-soname,NAME.so are not copied.
proc build_executable_own_libs {testname executable sources options {interp ""} {dir ""}} {
- global objdir subdir
+ global subdir
if {[build_executable $testname $executable $sources $options] == -1} {
return ""
}
- set binfile ${objdir}/${subdir}/${executable}
+ set binfile [standard_output_file ${executable}]
set ldd [gdb_find_ldd]
set command "$ldd $binfile"