This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[mingw32] Fix some tests


This patch of Pedro's fixes some x86-mingw tests. That target also has a leading _ on symbols.

ok?

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

2009-11-03  Pedro Alves  <pedro@codesourcery.com>

	* 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=\"_\""
  }
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]