Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] fix dump.exp tests for alpha
@ 2003-06-02  7:58 Richard Henderson
  2003-06-02 13:39 ` Elena Zannoni
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2003-06-02  7:58 UTC (permalink / raw)
  To: gdb-patches

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."
  }
  


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] fix dump.exp tests for alpha
  2003-06-02  7:58 [RFA] fix dump.exp tests for alpha Richard Henderson
@ 2003-06-02 13:39 ` Elena Zannoni
  0 siblings, 0 replies; 2+ messages in thread
From: Elena Zannoni @ 2003-06-02 13:39 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gdb-patches

Richard Henderson writes:
 > 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?
 > 

Sure.

elena

 > 
 > 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."
 >   }
 >   


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-02 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-02  7:58 [RFA] fix dump.exp tests for alpha Richard Henderson
2003-06-02 13:39 ` Elena Zannoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox