summaryrefslogtreecommitdiffstats
path: root/lldb/examples/darwin/heap_find
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-04-25 01:49:50 +0000
committerGreg Clayton <gclayton@apple.com>2012-04-25 01:49:50 +0000
commited3eee6e55e367f4c0b954c55fecff57da8ef074 (patch)
tree1e003e85d2982d3e3f52b3efb9d3694a12eeb02a /lldb/examples/darwin/heap_find
parent68b922590daa7d8dd5b17a89e01c5442da0a1b4b (diff)
downloadbcm5719-llvm-ed3eee6e55e367f4c0b954c55fecff57da8ef074.tar.gz
bcm5719-llvm-ed3eee6e55e367f4c0b954c55fecff57da8ef074.zip
Now that we have an LLDB package, make the "lldb.macosx.crashlog" module work with all of the new module paths.
llvm-svn: 155528
Diffstat (limited to 'lldb/examples/darwin/heap_find')
-rw-r--r--lldb/examples/darwin/heap_find/heap.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py
index da36495c2ac..812bf604ce8 100644
--- a/lldb/examples/darwin/heap_find/heap.py
+++ b/lldb/examples/darwin/heap_find/heap.py
@@ -20,14 +20,15 @@ import commands
import optparse
import os
import shlex
-import symbolication # from lldb/examples/python/symbolication.py
+import lldb.utils.symbolication
def load_dylib():
if lldb.target:
python_module_directory = os.path.dirname(__file__)
- libheap_dylib_path = python_module_directory + '/libheap.dylib'
+ heap_code_directory = python_module_directory + '/heap'
+ libheap_dylib_path = heap_code_directory + '/heap/libheap.dylib'
if not os.path.exists(libheap_dylib_path):
- make_command = '(cd "%s" ; make)' % python_module_directory
+ make_command = '(cd "%s" ; make)' % heap_code_directory
print make_command
print commands.getoutput(make_command)
if os.path.exists(libheap_dylib_path):
@@ -172,7 +173,7 @@ def heap_search(options, arg_str):
lldb.debugger.GetCommandInterpreter().HandleCommand(memory_command, cmd_result)
print cmd_result.GetOutput()
if options.stack:
- symbolicator = symbolication.Symbolicator()
+ symbolicator = lldb.utils.symbolication.Symbolicator()
symbolicator.target = lldb.target
expr_str = "g_stack_frames_count = sizeof(g_stack_frames)/sizeof(uint64_t); (int)__mach_stack_logging_get_frames((unsigned)mach_task_self(), 0x%xull, g_stack_frames, g_stack_frames_count, &g_stack_frames_count)" % (malloc_addr)
#print expr_str
OpenPOWER on IntegriCloud