This is the mail archive of the gdb-patches@sources.redhat.com 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]

[RFA] fix dump.exp tests for alpha


All of the "read it back in" tests failed because none of
the formats can handle 64-bit addresses, afaik.

Adding the linker switch to force the application into 
the low 31 bits allows all of the tests to pass.

Ok?


r~


	* gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch.

Index: gdb.base/dump.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/dump.exp,v
retrieving revision 1.2
diff -c -p -d -r1.2 dump.exp
*** gdb.base/dump.exp	6 Feb 2003 06:36:24 -0000	1.2
--- gdb.base/dump.exp	2 Jun 2003 07:52:44 -0000
*************** set testfile "dump"
*** 31,38 ****
  
  set srcfile  ${testfile}.c
  set binfile  ${objdir}/${subdir}/${testfile}
  
! if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
--- 31,45 ----
  
  set srcfile  ${testfile}.c
  set binfile  ${objdir}/${subdir}/${testfile}
+ set options  {debug}
  
! if [istarget "alpha*-*-*"] then {
!     # SREC etc cannot handle 64-bit addresses.  Force the test
!     # program into the low 31 bits of the address space.
!     lappend options "additional_flags=-Wl,-taso"
! }
! 
! if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ${options}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  


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