[rfa] allocate_objfile(NULL, 0)
Elena Zannoni
ezannoni@redhat.com
Tue Feb 4 18:02:00 GMT 2003
Tom Tromey writes:
> >>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:
>
> David> I'm no Java expert, but here's the situation as I understand
> David> it. When evaluating Java code, sometimes you have to generate
> David> new Java classes in an unpredictable manner.
>
> David> Alas, I don't know enough Java to be able to create a test
> David> case.
>
> I don't know very much about this part of gdb. However, I can say
> that in libgcj we create classes on the fly to represent arrays. Even
> the simplest Java program will create at least one such array (for
> String[]):
>
> public class t
> {
> public static void main(String[] args)
> {
> System.out.println(args.length);
> }
> }
>
> Then compile with:
>
> gcj --main=t -o t t.java
>
>
> There is at least one longstanding gdb SEGV that happens when trying
> to re-run a Java executable. This happens in most, but not every, gdb
> session.
>
> Unfortunately I can't try your patch in the near future.
>
> Tom
David, Tom, could a little gdb test be created and put in gdb.java?
elena
More information about the Gdb-patches
mailing list