SA_NODEFER | SA_SIGINFO);
# endif
-# if defined(__ARM__) || defined(__I386__) || defined(__S390__) || defined(__X86_64__)
+# if defined(__ARM__) || defined(__I386__) || defined(__S390__) || defined(__X86_64__) || defined(__M68K__)
/* XXX use better defines for that (in arch.h) */
/* SIGILL handler */
void *signal_handle(int type, intptr_t val,
void *pv, void *sp, void *ra, void *xpc, void *context)
{
- stackframeinfo sfi;
- int32_t index;
- java_handle_t *o;
- methodinfo *m;
- java_handle_t *p;
+ stackframeinfo_t sfi;
+ int32_t index;
+ java_handle_t *o;
+ methodinfo *m;
+ java_handle_t *p;
+
+ /* Prevent compiler warnings. */
+
+ o = NULL;
+ m = NULL;
/* wrap the value into a handle if it is a reference */
/* BEFORE: creating stackframeinfo */
case EXCEPTION_HARDWARE_COMPILER:
/* In this case the passed PV points to the compiler stub. We
get the methodinfo pointer here and set PV to NULL so
- stacktrace_stackframeinfo_create determines the PV for the
+ stacktrace_stackframeinfo_add determines the PV for the
parent Java method. */
m = code_get_methodinfo_for_pv(pv);
break;
}
- /* create stackframeinfo */
+ /* Fill and add a stackframeinfo. */
- stacktrace_create_extern_stackframeinfo(&sfi, pv, sp, ra, xpc);
+ stacktrace_stackframeinfo_add(&sfi, pv, sp, ra, xpc);
switch (type) {
case EXCEPTION_HARDWARE_NULLPOINTER:
p = NULL;
}
- /* remove stackframeinfo */
+ /* Remove stackframeinfo. */
- stacktrace_remove_stackframeinfo(&sfi);
+ stacktrace_stackframeinfo_remove(&sfi);
/* unwrap and return the exception object */
/* AFTER: removing stackframeinfo */