There is help for this:

(lldb) apropos source-map
No commands found pertaining to 'source-map'. Try 'help' to see a complete list 
of debugger commands.

The following settings variables may relate to 'source-map': 

  target.source-map -- Source path remappings used to track the change of 
location between a source file when built, and where it exists on the current 
system.  It consists of an array of
                       duples, the first element of each duple is some part 
(starting at the root) of the path to the file when it was built, and the 
second is where the remainder of the
                       original build hierarchy is rooted on the local system.  
Each element of the array is checked in order and the first one that results in 
a match wins.

The trick is to find out where the debug information thinks your sources were 
built.  One quick way to do this is:

(lldb) image lookup -vn <SomeFunctionInYourProject>

Then look at the CompUnit line in the resultant output.  That will tell you 
where the debug info thinks this is built.

Jim


> On Sep 15, 2015, at 6:50 AM, Sak Wathanasin <[email protected]> 
> wrote:
> 
> 
> For reasons I won't bore you with, I can't debug my app from within XC7 (GM). 
> I can use lldb from
> the terminal, but when it hits my breakpoint, I only see ASM not source code. 
> It appears lldb
> doesn't know where my src files are. Not sure why: I thought the paths would 
> be embedded in the
> obj files somewhere & I haven't moved them since I built the app.
> 
> Bit of googling tells me that I have to use the
> 
> settings set target.source-map xxx yyy
> 
> command. What I don't get is what to use for "xxx" and "yyy". When it hits my 
> breakpoint, lldb
> thinks it's in
> 
> /Users/swathanasin/Library/Developer/Xcode/DerivedData/xxxxxx/Build/Products/Debug/xyz.app/Contents/Frameworks/UVXYZ.framework/Versions/A/UVXYZ
> 
> Is "xxx" that entire path? Is "yyy" the root of my src tree? Clearly not 
> since it didn't work. Any
> ideas?
> 
> Does lldb search recursively or do I have I do specify a mapping for every 
> src file that I might
> want to debug?
> 
> Many thanks
> -- 
> Sak Wathanasin
> Network Analysis Limited           http://www.network-analysis.ltd.uk
> 
> 3 Edison Buildings, Electric Wharf, Coventry CV1 4JA, UK
> Registered in England No: 2407211
> Phone: (+44) 24 7655 12 20     Mobile: (+44) 79 70 75 19 12
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/xcode-users/jingham%40apple.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to