This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: java/1413: gdb loses java type information
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 9 Oct 2003 12:48:01 -0000
- Subject: Re: java/1413: gdb loses java type information
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR java/1413; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: java/1413: gdb loses java type information
Date: Thu, 9 Oct 2003 08:45:26 -0400
On Wed, Oct 08, 2003 at 11:49:52PM -0600, Tom Tromey wrote:
> >>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:
>
> Daniel> What would Java do here? Could you subscript an object whose
> Daniel> actual type was an array type and whose declared type was
> Daniel> Object, or would you need to cast/assign it first?
>
> You'd need to cast it first.
Then I don't think GDB would be right to accept it as-is... however, a
command that printed a value of the run-time type would be nice, so
that your p $1[0] worked.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer