This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Some observations on developing with gcj
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Mark Wielaard <mark at klomp dot org>, java at gcc dot gnu dot org
- Date: Mon, 7 Jul 2003 11:55:00 +0100
- Subject: Re: Some observations on developing with gcj
- References: <1056910537.4815.45.camel@elsschot><87llvkp2ib.fsf@fleche.redhat.com>
Tom Tromey writes:
> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
>
> Mark> When closing the program down I wanted to use shutdown
> Mark> hooks. But they only really work when the program terminates
> Mark> cleanly. It would be nice if shutdown hooks were also triggered
> Mark> when the program receives a fatal signal (such as the user
> Mark> pressing Control-C).
>
> Does the JDK do that? This is worthy of a bug report.
Tricky. You'd want to do this once, so that if the shutdown hooks
don't terminate you can still hit ctrl-C a second time.
> Mark> When debugging your native program it is really unhelpful that
> Mark> NullPointerExceptions don't point at where the actual exception
> Mark> occured but at the calling method.
>
> Please file in bugzilla.
This depends on whatever backtrace() does when it hits a signal
handler. In general, making this work perfectly is a hard problem.
Andrew.