* vm/jit/trace.h: Adapted file to coding conventions.
* vm/jit/trace.c: Likewise.
* vm/jit/s390/md.c (md_dump_context) Fixed printing of java method at failing address, (md_signal_handler_sigsegv) added missing default branch to switch.
calls instead of machine instructions, using the C calling
convention.
- $Id: builtin.c 8330 2007-08-16 18:15:51Z twisti $
+ $Id: builtin.c 8348 2007-08-19 09:27:03Z pm $
*/
#include "native/include/java_lang_Throwable.h"
#include "threads/lock-common.h"
+#if defined(ENABLE_THREADS)
+#include "threads/native/threads.h"
+#else
+#include "threads/none/threads.h"
+#endif
#include "toolbox/logging.h"
#include "toolbox/util.h"
#endif
if (opt_verbosecall && indent)
+#if defined(__S390__)
+ TRACEJAVACALLINDENT--;
+#else
methodindent--;
+#endif
/* calculate message length */
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: md.c 8298 2007-08-12 18:49:16Z pm $
+ $Id: md.c 8348 2007-08-19 09:27:03Z pm $
*/
m = (*(codeinfo **)(pv + CodeinfoPointer))->m;
log_println(
"Java method: class %s, method %s, descriptor %s.",
- utf_bytes(m->class->name), utf_bytes(m->name), utf_bytes(m->descriptor)
+ m->class->name->text, m->name->text, m->descriptor->text
);
}
is_null = 0;
}
break;
+ default:
+ is_null = 0;
+ break;
}
if (! is_null) {
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: trace.c 8317 2007-08-16 06:53:26Z pm $
+ $Id: trace.c 8348 2007-08-19 09:27:03Z pm $
*/
+#include "config.h"
+
#include "arch.h"
#include "md-abi.h"
return logtext;
}
+/* trace_java_call_enter ******************************************************
+
+ Traces an entry into a java method.
+
+ arg_regs: Array of size ARG_CNT containing all argument registers in
+ the same format as in asm_vm_call_method. The array is usually allocated
+ on the stack and used for restoring the argument registers later.
+
+ stack: Pointer to first on stack argument in the same format passed to
+ asm_vm_call_method.
+
+*******************************************************************************/
+
void trace_java_call_enter(methodinfo *m, uint64_t *arg_regs, uint64_t *stack) {
methoddesc *md;
paramdesc *pd;
}
+/* trace_java_call_exit ********************************************************
+
+ Traces an exit form a java method.
+
+ return_regs: Array of size 3 containing return registers:
+ [0] : REG_RESULT
+ [1] : REG_RESULT2 (if available on architecture)
+ [2] : REG_FRESULT
+ The array is usually allocated on the stack and used for restoring the
+ registers later. The format of the array is the same as the format of
+ register arguments passed to asm_vm_call_method.
+
+*******************************************************************************/
+
void trace_java_call_exit(methodinfo *m, uint64_t *return_regs)
{
methoddesc *md;
#endif /* !defined(NDEBUG) */
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ * vim:noexpandtab:sw=4:ts=4:
+ */
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: trace.h 8304 2007-08-14 19:57:20Z pm $
+ $Id: trace.h 8348 2007-08-19 09:27:03Z pm $
*/
#ifndef _VM_JIT_TRACE_H
#define _VM_JIT_TRACE_H
+#include "config.h"
+
#include <stdint.h>
#include "vmcore/method.h"
#if !defined(NDEBUG)
-/* trace_java_call_enter ******************************************************
-
- Traces an entry into a java method.
-
- arg_regs: Array of size ARG_CNT containing all argument registers in
- the same format as in asm_vm_call_method. The array is usually allocated
- on the stack and used for restoring the argument registers later.
-
- stack: Pointer to first on stack argument in the same format passed to
- asm_vm_call_method.
-
-*******************************************************************************/
-
void trace_java_call_enter(methodinfo *m, uint64_t *arg_regs, uint64_t *stack);
-/* trace_java_call_exit ********************************************************
-
- Traces an exit form a java method.
-
- return_regs: Array of size 3 containing return registers:
- [0] : REG_RESULT
- [1] : REG_RESULT2 (if available on architecture)
- [2] : REG_FRESULT
- The array is usually allocated on the stack and used for restoring the
- registers later. The format of the array is the same as the format of
- register arguments passed to asm_vm_call_method.
-
-*******************************************************************************/
-
void trace_java_call_exit(methodinfo *m, uint64_t *return_regs);
#endif /* !defined(NDEBUG) */
#endif
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ * vim:noexpandtab:sw=4:ts=4:
+ */