[lldb-dev] Get source-map from python API?
Jim Ingham via lldb-dev
lldb-dev at lists.llvm.org
Thu Jan 14 15:13:09 PST 2016
There is currently no API to access the settings. You have to cons up commands and use SBCommandInterpreter::HandleCommand to execute them.
This is one of the remaining holes in the SB API.
> On Jan 14, 2016, at 2:41 PM, Jeffrey Tan via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> We are building an IDE debugger on top of lldb python API. In order to get the source remapping work(the source path embedded in the symbol may be different from the real source path), user needs to use "settings set target.source-map" command to remap the source.
> I would like users to do similar thing from our IDE debugger. However, I could not find a python API to specify the source remapping, and more important a way to access the remapping functionality. The SBSourceManager class only exposes a single DisplaySourceLinesWithLineNumbers() method which displays the source in console output. Ideally it should expose an API in SBSourceManager for us to provide the old FileSpec and get back a new remapped FileSpec.
> Is this not exposed in Python API? Do I need to re-do the remapping logic in our IDE UI code? How is other IDE handling the source remapping?
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
More information about the lldb-dev