re PR libgcj/21692 (unexpected java.lang.NoClassDefFoundError)

PR libgcj/21692
        * sysdep/descriptor-n.h: New file.
        * sysdep/descriptor-y.h: New file.
        * sysdep/powerpc/descriptor.h: New file.
        * configure.host: Set $descriptor_h appropriate for the host.
        * configure.ac: Link it.
        * configure: Regenerate.
        * stacktrace.cc: Include sysdep/descriptor.h.
        (_Jv_StackTrace::UpdateNCodeMap): Use UNWRAP_FUNCTION_DESCRIPTOR.

From-SVN: r100173
This commit is contained in:
Richard Henderson
2005-05-25 16:24:07 -07:00
committed by Richard Henderson
parent 2f828272d8
commit eb2925b676
8 changed files with 52 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
// Given a function pointer, return the code address.
#define UNWRAP_FUNCTION_DESCRIPTOR(X) (X)

View File

@@ -0,0 +1,5 @@
// Given a function pointer, return the code address.
// The function descriptor is actually multiple words,
// but we don't care about anything except the first.
#define UNWRAP_FUNCTION_DESCRIPTOR(X) (*(void **)(X))

View File

@@ -0,0 +1,9 @@
// Given a function pointer, return the code address.
#ifdef _CALL_AIX
// The function descriptor is actually multiple words,
// but we don't care about anything except the first.
# define UNWRAP_FUNCTION_DESCRIPTOR(X) (*(void **)(X))
#else
# define UNWRAP_FUNCTION_DESCRIPTOR(X) (X)
#endif