This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Ada testsuite failures
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sourceware dot org
- Date: Tue, 2 Jan 2007 09:39:26 -0500
- Subject: Re: Ada testsuite failures
- References: <20061231194604.GA23919@nevyn.them.org> <20070102113903.GH3434@adacore.com>
On Tue, Jan 02, 2007 at 03:39:03PM +0400, Joel Brobecker wrote:
> Daniel,
>
> > ptype empty
> > type = function return int
> > (gdb) FAIL: gdb.ada/null_record.exp: ptype on null record
>
> My appologies when I said I had the same failure. I do have a failure,
> but the symptoms are different. What does the debugger print in your
> case when you do:
>
> (gdb) ptype bar.empty
(gdb) ptype empty
type = function return int
(gdb) p bar.empty
No definition of "bar.empty" in current context.
(gdb) p empty
$1 = {<text variable, no debug info>} 0x2aaaaad3d590 <gnat__sockets__empty>
Isn't that interesting - that's something completely different. There
are zero references to the string "empty" in the debug info for
null_record, so it is definitely a debugging information problem.
Looking at the test I'm not surprised. Empty is unused; adding
something that references it is probably sufficient.
--
Daniel Jacobowitz
CodeSourcery