From cac9c5f971eb7fda865982dbb6180d77aa5a45bf Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 24 Sep 2011 00:52:29 +0000 Subject: 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 --- lldb/scripts/Python/interface/SBModule.i | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'lldb/scripts/Python/interface/SBModule.i') diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i index 6f78dff..466fcfa 100644 --- a/lldb/scripts/Python/interface/SBModule.i +++ b/lldb/scripts/Python/interface/SBModule.i @@ -89,9 +89,11 @@ public: const char * GetUUIDString () const; - bool - ResolveFileAddress (lldb::addr_t vm_addr, - lldb::SBAddress& addr); + lldb::SBSection + FindSection (const char *sect_name); + + lldb::SBAddress + ResolveFileAddress (lldb::addr_t vm_addr); lldb::SBSymbolContext ResolveSymbolContextForAddress (const lldb::SBAddress& addr, @@ -106,6 +108,13 @@ public: lldb::SBSymbol GetSymbolAtIndex (size_t idx); + size_t + GetNumSections (); + + lldb::SBSection + GetSectionAtIndex (size_t idx); + + %feature("docstring", " //------------------------------------------------------------------ /// Find functions by name. -- cgit v1.1