OSDN Git Service

keep previous history after reset to mr1 plus aah changes (ics-aah-wip)
authorEd Heyl <ed@google.com>
Fri, 28 Oct 2011 19:05:44 +0000 (19:05 +0000)
committerEd Heyl <ed@google.com>
Fri, 28 Oct 2011 19:05:44 +0000 (19:05 +0000)
vm/ReconfigureDvm.mk
vm/Thread.cpp
vm/interp/Stack.cpp
vm/interp/Stack.h

index dd13482..20e5626 100644 (file)
@@ -26,7 +26,7 @@ endif
 
 include $(LOCAL_PATH)/Dvm.mk
 
-LOCAL_SHARED_LIBRARIES += liblog libcutils libnativehelper libz libdl libcorkscrew
+LOCAL_SHARED_LIBRARIES += liblog libcutils libnativehelper libz libdl
 
 LOCAL_STATIC_LIBRARIES += libdex
 
index c375d57..5122adf 100644 (file)
@@ -3327,11 +3327,6 @@ void dvmDumpThreadEx(const DebugOutputTarget* target, Thread* thread,
     else
         dvmDumpThreadStack(target, thread);
 
-    /* grab the native stack, if possible */
-    if (thread->status == THREAD_NATIVE) {
-        dvmDumpNativeStack(target, thread);
-    }
-
     dvmReleaseTrackedAlloc(threadObj, NULL);
     free(threadName);
     free(groupName);
index 98cc4ce..ad6af82 100644 (file)
 #include <stdlib.h>
 #include <stdarg.h>
 
-#ifdef HAVE_ANDROID_OS
-#include <corkscrew/backtrace.h>
-#endif
-
 /*
  * Initialize the interpreter stack in a new thread.
  *
@@ -1382,36 +1378,3 @@ void dvmDumpRunningThreadStack(const DebugOutputTarget* target, Thread* thread)
     dumpFrames(target, stackCopy + fpOffset, thread);
     free(stackCopy);
 }
-
-/*
- * Dump the native stack for the specified thread.
- */
-void dvmDumpNativeStack(const DebugOutputTarget* target, Thread* thread)
-{
-#ifdef HAVE_ANDROID_OS
-    const size_t MAX_DEPTH = 32;
-    backtrace_frame_t backtrace[MAX_DEPTH];
-    ssize_t frames = unwind_backtrace_thread(thread->systemTid, backtrace, 0, MAX_DEPTH);
-    if (frames > 0) {
-        backtrace_symbol_t backtrace_symbols[MAX_DEPTH];
-        get_backtrace_symbols(backtrace, frames, backtrace_symbols);
-
-        dvmPrintDebugMessage(target, "Native Stack:\n");
-        for (size_t i = 0; i < size_t(frames); i++) {
-            const backtrace_symbol_t& symbol = backtrace_symbols[i];
-            const char* mapName = symbol.map_info ? symbol.map_info->name : "<unknown>";
-            const char* symbolName = symbol.demangled_name ? symbol.demangled_name : symbol.name;
-            if (symbolName) {
-                dvmPrintDebugMessage(target, "  #%02d  pc %08x  %s (%s)\n",
-                        i, uint32_t(symbol.relative_pc), mapName, symbolName);
-            } else {
-                dvmPrintDebugMessage(target, "  #%02d  pc %08x  %s\n",
-                        i, uint32_t(symbol.relative_pc), mapName);
-            }
-        }
-        dvmPrintDebugMessage(target, "\n");
-
-        free_backtrace_symbols(backtrace_symbols, frames);
-    }
-#endif
-}
index 4a1e5e6..ef3db4a 100644 (file)
@@ -275,6 +275,5 @@ extern "C" void dvmCleanupStackOverflow(Thread* self, const Object* exception);
 /* debugging; dvmDumpThread() is probably a better starting point */
 void dvmDumpThreadStack(const DebugOutputTarget* target, Thread* thread);
 void dvmDumpRunningThreadStack(const DebugOutputTarget* target, Thread* thread);
-void dvmDumpNativeStack(const DebugOutputTarget* target, Thread* thread);
 
 #endif  // DALVIK_INTERP_STACK_H_