[Lldb-commits] [lldb] r176040 - <rdar://problem/13286937>
Greg Clayton
gclayton at apple.com
Mon Feb 25 11:34:57 PST 2013
Author: gclayton
Date: Mon Feb 25 13:34:57 2013
New Revision: 176040
URL: http://llvm.org/viewvc/llvm-project?rev=176040&view=rev
Log:
<rdar://problem/13286937>
Make sure to not look in self.images when we have a symbolicator with a live process.
Modified:
lldb/trunk/examples/python/symbolication.py
Modified: lldb/trunk/examples/python/symbolication.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/symbolication.py?rev=176040&r1=176039&r2=176040&view=diff
==============================================================================
--- lldb/trunk/examples/python/symbolication.py (original)
+++ lldb/trunk/examples/python/symbolication.py Mon Feb 25 13:34:57 2013
@@ -419,9 +419,19 @@ class Symbolicator:
if not self.target:
self.create_target()
if self.target:
- image = self.find_image_containing_load_addr (load_addr)
- if image:
- image.add_module (self.target)
+ live_process = False
+ process = self.target.process
+ if process:
+ state = process.state
+ if state > lldb.eStateUnloaded and state < eStateDetached:
+ live_process = True
+ # If we don't have a live process, we can attempt to find the image
+ # that a load address belongs to and lazily load its module in the
+ # target, but we shouldn't do any of this if we have a live process
+ if not live_process:
+ image = self.find_image_containing_load_addr (load_addr)
+ if image:
+ image.add_module (self.target)
symbolicated_address = Address(self.target, load_addr)
if symbolicated_address.symbolicate (verbose):
if symbolicated_address.so_addr:
More information about the lldb-commits
mailing list