mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
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
This commit is contained in:
@@ -61,7 +61,7 @@ ModuleList::~ModuleList()
|
||||
}
|
||||
|
||||
void
|
||||
ModuleList::Append (ModuleSP &module_sp)
|
||||
ModuleList::Append (const ModuleSP &module_sp)
|
||||
{
|
||||
if (module_sp)
|
||||
{
|
||||
@@ -71,7 +71,7 @@ ModuleList::Append (ModuleSP &module_sp)
|
||||
}
|
||||
|
||||
bool
|
||||
ModuleList::AppendIfNeeded (ModuleSP &module_sp)
|
||||
ModuleList::AppendIfNeeded (const ModuleSP &module_sp)
|
||||
{
|
||||
if (module_sp)
|
||||
{
|
||||
@@ -90,7 +90,7 @@ ModuleList::AppendIfNeeded (ModuleSP &module_sp)
|
||||
}
|
||||
|
||||
bool
|
||||
ModuleList::Remove (ModuleSP &module_sp)
|
||||
ModuleList::Remove (const ModuleSP &module_sp)
|
||||
{
|
||||
if (module_sp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user