From 87bdc959287d36ceef67aff9ff82dd412aed9ff6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 4 Dec 2008 15:35:43 +0000 Subject: [PATCH] 2008-12-03 Tristan Gingold * gdb.base/macscp.exp: Generate an object file during compilation to work around Darwin dsymutil limitations. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/macscp.exp | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f0dfcb5336b..af1045a4fe3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-12-03 Tristan Gingold + + * gdb.base/macscp.exp: Generate an object file during compilation + to work around Darwin dsymutil limitations. + 2008-12-02 Jan Kratochvil Test resolving external references to TLS variables. diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp index 40546f97f8f..9cb9ef5d9c4 100644 --- a/gdb/testsuite/gdb.base/macscp.exp +++ b/gdb/testsuite/gdb.base/macscp.exp @@ -23,6 +23,7 @@ set bug_id 0 set srcfile macscp1.c set testfile "macscp" +set objfile "macscp.o" set binfile ${objdir}/${subdir}/${testfile} set options { debug } @@ -32,7 +33,11 @@ if [test_compiler_info gcc*] { lappend options additional_flags=-g3 } -if {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${binfile}" executable $options] != "" } { +# Generate the intermediate object file. This is required by Darwin to +# have access to the .debug_macinfo section. +if {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${objfile}" \ + object $options] != "" + || [gdb_compile "${objfile}" "${binfile}" executable $options] != "" } { untested macscp.exp return -1 } -- 2.30.2