diff options
author | Andreas Tobler <a.tobler@schweiz.ch> | 2006-05-15 23:08:34 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2006-05-15 23:08:34 +0200 |
commit | eb55476b2ec78e765f719976533e85e07d1a3f63 (patch) | |
tree | 37ad2532b54c3f0d61a54dd11b502ca5d98c6c65 | |
parent | f99b2be1d370134c4c0307f81a2d60470ccad81b (diff) | |
download | gcc-eb55476b2ec78e765f719976533e85e07d1a3f63.zip gcc-eb55476b2ec78e765f719976533e85e07d1a3f63.tar.gz gcc-eb55476b2ec78e765f719976533e85e07d1a3f63.tar.bz2 |
stacktrace.cc (StackTrace::FillInFrameInfo): Use UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the...
2006-05-15 Andreas Tobler <a.tobler@schweiz.ch>
* stacktrace.cc (StackTrace::FillInFrameInfo): Use
UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the
klass->methods[j].ncode.
From-SVN: r113801
-rw-r--r-- | libjava/ChangeLog | 8 | ||||
-rw-r--r-- | libjava/stacktrace.cc | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index fc7eddc..21397c1 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2006-05-15 Andreas Tobler <a.tobler@schweiz.ch> + + * stacktrace.cc (StackTrace::FillInFrameInfo): Use + UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the + klass->methods[j].ncode. + 2006-05-13 Tom Tromey <tromey@redhat.com> * sources.am, Makefile.in: Rebuilt. @@ -91,7 +97,7 @@ * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for HP-UX and add appropriate extension for shared libraries, sl. (gcj_jni_test_one): Likewise. - + * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared library extensions. diff --git a/libjava/stacktrace.cc b/libjava/stacktrace.cc index 16f944a..cc29be1 100644 --- a/libjava/stacktrace.cc +++ b/libjava/stacktrace.cc @@ -1,6 +1,6 @@ // stacktrace.cc - Functions for unwinding & inspecting the call stack. -/* Copyright (C) 2005 Free Software Foundation +/* Copyright (C) 2005, 2006 Free Software Foundation This file is part of libgcj. @@ -243,7 +243,8 @@ _Jv_StackTrace::FillInFrameInfo (_Jv_StackFrame *frame) // Find method in class for (int j = 0; j < klass->method_count; j++) { - if (klass->methods[j].ncode == frame->start_ip) + void *wncode UNWRAP_FUNCTION_DESCRIPTOR (klass->methods[j].ncode); + if (wncode == frame->start_ip) { meth = &klass->methods[j]; break; |