diff options
author | Tristan Gingold <gingold@adacore.com> | 2008-12-04 15:35:43 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2008-12-04 15:35:43 +0000 |
commit | 87bdc959287d36ceef67aff9ff82dd412aed9ff6 (patch) | |
tree | f484e103fe08ab3fae1a10b1f3c5e951c2acca2a /gdb/testsuite/gdb.base/macscp.exp | |
parent | 137627db10bc0dedd3e2f58b9e4e054c816dd41c (diff) | |
download | fsf-binutils-gdb-87bdc959287d36ceef67aff9ff82dd412aed9ff6.zip fsf-binutils-gdb-87bdc959287d36ceef67aff9ff82dd412aed9ff6.tar.gz fsf-binutils-gdb-87bdc959287d36ceef67aff9ff82dd412aed9ff6.tar.bz2 |
2008-12-03 Tristan Gingold <gingold@adacore.com>
* gdb.base/macscp.exp: Generate an object file during compilation
to work around Darwin dsymutil limitations.
Diffstat (limited to 'gdb/testsuite/gdb.base/macscp.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/macscp.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp index 40546f9..9cb9ef5 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 } |