diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-09-24 00:52:29 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-09-24 00:52:29 +0000 |
| commit | cac9c5f971eb7fda865982dbb6180d77aa5a45bf (patch) | |
| tree | efac05a2f3ad55c656c0c2397c3407e358efc5b1 /lldb/test/python_api | |
| parent | 6027c94d2f7f31917226e0eaa544d22cdf90a713 (diff) | |
| download | bcm5719-llvm-cac9c5f971eb7fda865982dbb6180d77aa5a45bf.tar.gz bcm5719-llvm-cac9c5f971eb7fda865982dbb6180d77aa5a45bf.zip | |
Added to the public API to allow symbolication:
- New SBSection objects that are object file sections which can be accessed
through the SBModule classes. You can get the number of sections, get a
section at index, and find a section by name.
- SBSections can contain subsections (first find "__TEXT" on darwin, then
us the resulting SBSection to find "__text" sub section).
- Set load addresses for a SBSection in the SBTarget interface
- Set the load addresses of all SBSection in a SBModule in the SBTarget interface
- Add a new module the an existing target in the SBTarget interface
- Get a SBSection from a SBAddress object
This should get us a lot closer to being able to symbolicate using LLDB through
the public API.
llvm-svn: 140437
Diffstat (limited to 'lldb/test/python_api')
| -rw-r--r-- | lldb/test/python_api/default-constructor/sb_address.py | 2 | ||||
| -rw-r--r-- | lldb/test/python_api/default-constructor/sb_module.py | 2 | ||||
| -rw-r--r-- | lldb/test/python_api/function_symbol/TestSymbolAPI.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_address.py b/lldb/test/python_api/default-constructor/sb_address.py index 419e1f5c724..570e224a0de 100644 --- a/lldb/test/python_api/default-constructor/sb_address.py +++ b/lldb/test/python_api/default-constructor/sb_address.py @@ -11,7 +11,7 @@ def fuzz_obj(obj): obj.SetLoadAddress(0xffff, lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) - obj.GetSectionType() + obj.GetSection() obj.GetSymbolContext(lldb.eSymbolContextEverything) obj.GetModule() obj.GetCompileUnit() diff --git a/lldb/test/python_api/default-constructor/sb_module.py b/lldb/test/python_api/default-constructor/sb_module.py index d475ba96d22..5867a11f62f 100644 --- a/lldb/test/python_api/default-constructor/sb_module.py +++ b/lldb/test/python_api/default-constructor/sb_module.py @@ -10,7 +10,7 @@ def fuzz_obj(obj): obj.GetPlatformFileSpec() obj.SetPlatformFileSpec(lldb.SBFileSpec()) obj.GetUUIDString() - obj.ResolveFileAddress(sys.maxint, lldb.SBAddress()) + obj.ResolveFileAddress(sys.maxint) obj.ResolveSymbolContextForAddress(lldb.SBAddress(), 0) obj.GetDescription(lldb.SBStream()) obj.GetNumSymbols() diff --git a/lldb/test/python_api/function_symbol/TestSymbolAPI.py b/lldb/test/python_api/function_symbol/TestSymbolAPI.py index f983ed645dc..85e97d3e8fc 100644 --- a/lldb/test/python_api/function_symbol/TestSymbolAPI.py +++ b/lldb/test/python_api/function_symbol/TestSymbolAPI.py @@ -66,7 +66,7 @@ class SymbolAPITestCase(TestBase): self.assertTrue(symbol_line1.GetType() == lldb.eSymbolTypeCode) addr_line1 = symbol_line1.GetStartAddress() # And a section type of code, too. - self.assertTrue(addr_line1.GetSectionType() == lldb.eSectionTypeCode) + self.assertTrue(addr_line1.GetSection().GetSectionType() == lldb.eSectionTypeCode) # Continue the inferior, the breakpoint 2 should be hit. process.Continue() @@ -79,7 +79,7 @@ class SymbolAPITestCase(TestBase): self.assertTrue(symbol_line2.GetType() == lldb.eSymbolTypeCode) addr_line2 = symbol_line2.GetStartAddress() # And a section type of code, too. - self.assertTrue(addr_line2.GetSectionType() == lldb.eSectionTypeCode) + self.assertTrue(addr_line2.GetSection().GetSectionType() == lldb.eSectionTypeCode) # Now verify that both addresses point to the same module. if self.TraceOn(): |

