Commit 5a0bf1ee by Richard Henderson Committed by Richard Henderson

configure.in (ia64-*): Don't set SYSDEP_SOURCES.

        * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
        * java/lang/natThrowable.cc: Don't use __ia64_backtrace.

From-SVN: r41984
parent 5f2fa730
2001-05-11 Richard Henderson <rth@redhat.com> 2001-05-11 Richard Henderson <rth@redhat.com>
* configure.in (ia64-*): Don't set SYSDEP_SOURCES.
* java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2001-05-11 Richard Henderson <rth@redhat.com>
* exception.cc: Include unwind-pe.h. Remove all pointer * exception.cc: Include unwind-pe.h. Remove all pointer
encoding logic. encoding logic.
......
...@@ -730,10 +730,10 @@ case "${host}" in ...@@ -730,10 +730,10 @@ case "${host}" in
sparc-sun-solaris*) sparc-sun-solaris*)
SIGNAL_HANDLER=include/sparc-signal.h SIGNAL_HANDLER=include/sparc-signal.h
;; ;;
ia64-*) # ia64-*)
SYSDEP_SOURCES=sysdep/ia64.c # SYSDEP_SOURCES=sysdep/ia64.c
test -d sysdep || mkdir sysdep # test -d sysdep || mkdir sysdep
;; # ;;
*) *)
SIGNAL_HANDLER=include/default-signal.h SIGNAL_HANDLER=include/default-signal.h
;; ;;
......
...@@ -39,10 +39,6 @@ details. */ ...@@ -39,10 +39,6 @@ details. */
#include <name-finder.h> #include <name-finder.h>
#ifdef __ia64__
extern "C" int __ia64_backtrace (void **array, int size);
#endif
/* FIXME: size of the stack trace is limited to 128 elements. It's /* FIXME: size of the stack trace is limited to 128 elements. It's
undoubtedly sensible to limit the stack trace, but 128 is rather undoubtedly sensible to limit the stack trace, but 128 is rather
arbitrary. It may be better to configure this. */ arbitrary. It may be better to configure this. */
...@@ -52,16 +48,12 @@ java::lang::Throwable::fillInStackTrace (void) ...@@ -52,16 +48,12 @@ java::lang::Throwable::fillInStackTrace (void)
{ {
if (! trace_enabled) if (! trace_enabled)
return this; return this;
#if defined (HAVE_BACKTRACE) || defined (__ia64__) #if defined (HAVE_BACKTRACE)
void *p[128]; void *p[128];
// We subtract 1 from the number of elements because we don't want // We subtract 1 from the number of elements because we don't want
// to include the call to fillInStackTrace in the trace. // to include the call to fillInStackTrace in the trace.
#if defined (__ia64__)
int n = __ia64_backtrace (p, 128) - 1;
#else
int n = backtrace (p, 128) - 1; int n = backtrace (p, 128) - 1;
#endif
if (n > 0) if (n > 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment