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. Index: gdb.arch/i386-gnu-cfi.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp,v retrieving revision 1.4 diff -c -3 -p -r1.4 i386-gnu-cfi.exp *** gdb.arch/i386-gnu-cfi.exp 3 Jan 2009 05:58:03 -0000 1.4 --- gdb.arch/i386-gnu-cfi.exp 3 Nov 2009 16:25:27 -0000 *************** set binfile ${objdir}/${subdir}/${testfi *** 42,48 **** # 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=\"_\"" } --- 42,48 ---- # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } Index: gdb.arch/i386-prologue.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-prologue.exp,v retrieving revision 1.18 diff -c -3 -p -r1.18 i386-prologue.exp *** gdb.arch/i386-prologue.exp 3 Jan 2009 05:58:03 -0000 1.18 --- gdb.arch/i386-prologue.exp 3 Nov 2009 16:25:27 -0000 *************** set binfile ${objdir}/${subdir}/${testfi *** 40,46 **** # 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=\"_\"" } --- 40,46 ---- # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } Index: gdb.arch/i386-unwind.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-unwind.exp,v retrieving revision 1.9 diff -c -3 -p -r1.9 i386-unwind.exp *** gdb.arch/i386-unwind.exp 3 Jan 2009 05:58:03 -0000 1.9 --- gdb.arch/i386-unwind.exp 3 Nov 2009 16:25:27 -0000 *************** set binfile ${objdir}/${subdir}/${testfi *** 39,45 **** # 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=\"_\"" } --- 39,45 ---- # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" }