[lldb-dev] Get source-map from python API?

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Fri Jan 15 11:28:31 PST 2016


That being said, feel free to add something the SB API and propose a patch.

Greg

> On Jan 14, 2016, at 3:13 PM, Jim Ingham via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> 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.
> 
> Jim
> 
>> On Jan 14, 2016, at 2:41 PM, Jeffrey Tan via lldb-dev <lldb-dev at lists.llvm.org> wrote:
>> 
>> Hi,
>> 
>> 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?
>> 
>> Thanks
>> Jeffrey
>> 
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev



More information about the lldb-dev mailing list