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

Re: java/1413: gdb loses java type information


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


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