This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: GCJ not using java.lang.Exception in libgcj.jar??


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Kevin" == Kevin A Burton <burton@relativity.yi.org> writes:
> 
> Kevin> I am trying to "port" JavaCore (
> Kevin> http://javacore.sourceforge.net ) from JDK 1.1.8 to GCJ.  While
> Kevin> everything compiles correctly the installation of JavaCore is
> Kevin> "tricky" and I wanted to post here to get more information.
> 
> I went and read a bit about JavaCore.
> 
> I'm curious to know -- is this something that would really be useful
> in conjunction with libgcj?  I've never actually used a typical Java
> debugger.  I just use gdb, which works fairly well (but far from
> perfectly) with gcj applications.

I don't know.  I think at least there should be a pointer to it.  It can add
complexity to a JVM (which could cause errors) and will slow things down a
little.  

> I suppose we could have gcj generate core files in some situations.

JavaCore conditionally dumps... The defaults are basically any
RuntimeException.. but if you are developing a complex application you can add
your own custom additions. 

> Right now that would be of limited usefulness on Linux, though,
> because as far as I know Linux can't create a core file which
> represents more than a single thread.

It isn't really a 'core' file in the traditional sense.  It is an XML file with
represents the internal state of your JVM.  Where classes were loaded from,
current stack trace, etc, etc.  It would be nice to see some sort of JPDA in GCJ
so that I can dump values, thread info, open TCP ports, etc.

I think it is more of a developer tool and not an OS/compiler trick.

Anyway.... Kevin

- -- 
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
        Cell: 408-910-6145 URL: http://relativity.yi.org ICQ: 73488596 

Questions are the beginning of wisdom.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE6c2L5AwM6xb2dfE0RAr1oAKCj0iwuf7TCJRagRJ+MmRhJVzJFFACfUULm
m6vCRzEzLx3k7Pk8B9N+WKk=
=I5Hb
-----END PGP SIGNATURE-----



Delta Force Kennedy Soviet kibo Albanian Ft. Meade counter-intelligence Legion
of Doom Serbian cracking Khaddafi Qaddafi AK-47 Treasury Honduras


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