This is the mail archive of the 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??

Hash: SHA1

Tom Tromey <> writes:

> >>>>> "Kevin" == Kevin A Burton <> writes:
> Kevin> I am trying to "port" JavaCore (
> Kevin> ) 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

> 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 (,, )
        Cell: 408-910-6145 URL: ICQ: 73488596 

Questions are the beginning of wisdom.
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Get my public key at:


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]