This is the mail archive of the gdb@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]

Re: Ada testsuite failures


On Tue, Jan 02, 2007 at 08:33:02PM +0400, Joel Brobecker wrote:
> > Looking at the test I'm not surprised.  Empty is unused; adding
> > something that references it is probably sufficient.
> 
> Yes, I agree. Could you try the following patch?
> 
> 2006-01-02  Joel Brobecker  <brobecker@adacore.com>
> 
> 	* gdb.ada/null_record/bar.ads (Do_Nothing): Add extra parameter.
> 	* gdb.ada/null_record/bar.adb (Do_Nothing): Likewise.
> 	* gdb.ada/null_record/null_record.adb: Fake use of type Empty
> 	to prevent this type from being optimized out.
> 
> That should help,

Sort of...

(gdb) ptype E
type = record null; end record
(gdb) ptype empty
type = function return int
(gdb) ptype bar.empty
No definition of "bar.empty" in current context.

The debug info does mention bar__empty now, at least.


-- 
Daniel Jacobowitz
CodeSourcery


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