From 33976d1ba4342bd5a2d7c0a4cc923c462453eff5 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 4 Feb 2012 15:42:19 -0700 Subject: [PATCH] ensure debug helper functions are retained by linker Apple's linker tends to remove functions which are never called, which is not what we want for e.g. vmPrintTrace, since that function is only intended to be called interactively from within GDB. --- src/machine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine.cpp b/src/machine.cpp index 73de8e32d3..33d1599f20 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -4402,7 +4402,7 @@ noop() } // namespace vm // for debugging -void +JNIEXPORT void vmPrintTrace(Thread* t) { class Visitor: public Processor::StackVisitor { @@ -4444,7 +4444,7 @@ vmPrintTrace(Thread* t) } // also for debugging -void* +JNIEXPORT void* vmAddressFromLine(Thread* t, object m, unsigned line) { object code = methodCode(t, m);