[llvm-commits] [vmkit] r51853 - /vmkit/trunk/lib/N3/VMCore/BackTrace.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Jun 1 15:35:31 PDT 2008
Author: geoffray
Date: Sun Jun 1 17:35:31 2008
New Revision: 51853
URL: http://llvm.org/viewvc/llvm-project?rev=51853&view=rev
Log:
Ask for a smaller backtrace for getting executing and calling
assmemblies.
Modified:
vmkit/trunk/lib/N3/VMCore/BackTrace.cpp
Modified: vmkit/trunk/lib/N3/VMCore/BackTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/N3/VMCore/BackTrace.cpp?rev=51853&r1=51852&r2=51853&view=diff
==============================================================================
--- vmkit/trunk/lib/N3/VMCore/BackTrace.cpp (original)
+++ vmkit/trunk/lib/N3/VMCore/BackTrace.cpp Sun Jun 1 17:35:31 2008
@@ -11,9 +11,6 @@
#include <stdio.h>
#include <dlfcn.h>
-#include "llvm/Function.h"
-#include "llvm/ExecutionEngine/ExecutionEngine.h"
-
#include "mvm/JIT.h"
#include "mvm/Method.h"
#include "mvm/Object.h"
@@ -26,8 +23,6 @@
#include "VMClass.h"
#include "VMThread.h"
-#include <execinfo.h>
-
using namespace n3;
void CLIJit::printBacktrace() {
@@ -58,8 +53,8 @@
Assembly* Assembly::getExecutingAssembly() {
- int* ips[10];
- int real_size = mvm::jit::getBacktrace((void**)(void*)ips, 10);
+ int* ips[5];
+ int real_size = mvm::jit::getBacktrace((void**)(void*)ips, 5);
int n = 0;
while (n < real_size) {
mvm::Code* code = mvm::jit::getCodeFromPointer(ips[n++]);
@@ -74,8 +69,8 @@
}
Assembly* Assembly::getCallingAssembly() {
- int* ips[10];
- int real_size = mvm::jit::getBacktrace((void**)(void*)ips, 10);
+ int* ips[5];
+ int real_size = mvm::jit::getBacktrace((void**)(void*)ips, 5);
int n = 0;
int i = 0;
while (n < real_size) {
More information about the llvm-commits
mailing list