From c418769792360c48db1f2d84f0c89aa0f61280f5 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 3 Nov 2009 16:44:16 +0000 Subject: [PATCH] * gdb.arch/i386-gnu-cfi.exp: Define SYMBOL_PREFIX on *-*-mingw*. * gdb.arch/i386-prologue.exp: Likewise. * gdb.arch/i386-unwind.exp: Likewise. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 2 +- gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +- gdb/testsuite/gdb.arch/i386-unwind.exp | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c3f3992c880..d251e215075 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-11-03 Pedro Alves + + * gdb.arch/i386-gnu-cfi.exp: Define SYMBOL_PREFIX on *-*-mingw*. + * gdb.arch/i386-prologue.exp: Likewise. + * gdb.arch/i386-unwind.exp: Likewise. + 2009-11-02 Daniel Jacobowitz * lib/gdb.exp (gdb_expect): Fix timeout typo. diff --git a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp index e8d41f0d1c8..910a2249313 100644 --- a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp +++ b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp @@ -42,7 +42,7 @@ set binfile ${objdir}/${subdir}/${testfile} # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" -if [istarget "i?86-*-cygwin*"] then { +if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp index 5958eb2364a..56127249c7e 100644 --- a/gdb/testsuite/gdb.arch/i386-prologue.exp +++ b/gdb/testsuite/gdb.arch/i386-prologue.exp @@ -40,7 +40,7 @@ set binfile ${objdir}/${subdir}/${testfile} # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" -if [istarget "i?86-*-cygwin*"] then { +if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } diff --git a/gdb/testsuite/gdb.arch/i386-unwind.exp b/gdb/testsuite/gdb.arch/i386-unwind.exp index 6fff5217642..1111b494896 100644 --- a/gdb/testsuite/gdb.arch/i386-unwind.exp +++ b/gdb/testsuite/gdb.arch/i386-unwind.exp @@ -39,7 +39,7 @@ set binfile ${objdir}/${subdir}/${testfile} # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" -if [istarget "i?86-*-cygwin*"] then { +if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } -- 2.30.2