diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-06-29 17:52:49 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-06-29 17:52:49 +0000 |
commit | daab125139b4e7aa0da07cd88070d4f3f147b06a (patch) | |
tree | 864ee2e0b08b95edb5770e061ceb6ba16d824200 /gdb/testsuite/gdb.arch/i386-unwind.exp | |
parent | 8f113c9aba96814115964c91ee2d68656df89c02 (diff) | |
download | gdb-daab125139b4e7aa0da07cd88070d4f3f147b06a.zip gdb-daab125139b4e7aa0da07cd88070d4f3f147b06a.tar.gz gdb-daab125139b4e7aa0da07cd88070d4f3f147b06a.tar.bz2 |
* gdb.arch/i386-prologue.c: Add copyright header. Use preprocessor
directives to conditionalize symbol prefixing.
* gdb.arch/i386-prologue.exp: Allow symbol prefixing by adding
additional_flags handling. Add underscore prefix for Cygwin.
* gdb.arch/i386-unwind.c: Use preprocessor directives to
conditionalize symbol prefixing.
* gdb.arch/i386-unwind.exp: Allow symbol prefixing by adding
additional_flags handling. Add underscore prefix for Cygwin.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-unwind.exp')
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-unwind.exp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-unwind.exp b/gdb/testsuite/gdb.arch/i386-unwind.exp index 9c3130f..85fb9da 100644 --- a/gdb/testsuite/gdb.arch/i386-unwind.exp +++ b/gdb/testsuite/gdb.arch/i386-unwind.exp @@ -1,4 +1,4 @@ -# Copyright 2003 Free Software Foundation, Inc. +# Copyright 2003, 2004 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 @@ -36,7 +36,15 @@ if ![istarget "i?86-*-*"] then { set testfile "i386-unwind" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + +# some targets have leading underscores on assembly symbols. +# TODO: detect this automatically +set additional_flags "" +if [istarget "i?86-*-cygwin*"] then { + set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" +} + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } |