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/source/Commands/CommandObjectProcess.cpp | |
parent | 6027c94d2f7f31917226e0eaa544d22cdf90a713 (diff) | |
download | llvm-cac9c5f971eb7fda865982dbb6180d77aa5a45bf.zip llvm-cac9c5f971eb7fda865982dbb6180d77aa5a45bf.tar.gz llvm-cac9c5f971eb7fda865982dbb6180d77aa5a45bf.tar.bz2 |
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/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 980f9d2..72aba1c 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -585,13 +585,13 @@ public: // If there isn't a current target create one. TargetSP new_target_sp; FileSpec emptyFileSpec; - ArchSpec emptyArchSpec; Error error; error = m_interpreter.GetDebugger().GetTargetList().CreateTarget (m_interpreter.GetDebugger(), emptyFileSpec, - emptyArchSpec, + NULL, false, + NULL, // No platform options new_target_sp); target = new_target_sp.get(); if (target == NULL || error.Fail()) @@ -1041,12 +1041,12 @@ public: { // If there isn't a current target create one. FileSpec emptyFileSpec; - ArchSpec emptyArchSpec; error = m_interpreter.GetDebugger().GetTargetList().CreateTarget (m_interpreter.GetDebugger(), emptyFileSpec, - emptyArchSpec, + NULL, false, + NULL, // No platform options target_sp); if (!target_sp || error.Fail()) { |