Patch: handle broken backtrace()

Tom Tromey tromey@cygnus.com
Wed Jul 19 07:13:00 GMT 2000


Jeff> The backtrace() function on some glibc platforms (Linux/Alpha)
Jeff> is apparently unimplemented and always returns zero.  This
Jeff> breaks Throwable::fillInStackTrace, which always expect a return
Jeff> value of at least one.

Andrew will have to look at this patch.  Backtraces are his.

Jeff> This patch fixes PR 286.
Jeff> 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
Jeff> 	* java/lang/natThrowable.cc (fillInStackTrace): Check for
Jeff> 	zero return from backtrace().

FYI you should put "Fixes PR libgcj/286" into the ChangeLog entry.
This will cause patch references to be put into the PR.

I don't keep track of the paperwork stuff too well.  Have you signed
papers for the FSF?  If so, would you like write access to cvs?  This
won't change anything vis a vis the approval process, but it will make
it easier to get patches in when the time comes.

Tom



More information about the Java-patches mailing list