Re: Is there a command to recursively search for kernel source in lldb
Re: Is there a command to recursively search for kernel source in lldb
- Subject: Re: Is there a command to recursively search for kernel source in lldb
- From: Prokash Sinha <email@hidden>
- Date: Fri, 17 May 2019 18:14:20 -0700
For some reason, more generic paths don’t work for me. For the source mapping,
in most cases the sources are not that different, and debugger is blissfully
ignorant while map it. Once I get to an approximate point, disassembling points
to the right places.
-p
> On May 16, 2019, at 4:18 PM, Jason Molenda <email@hidden> wrote:
>
> target.source-map should work the way you're imagining already. The first
> name ("/BuildRoot/Library/Caches/" etc) is substituted in the debug
> information for the second name that you provide. You can provide a less
> specific remapping. I'm not sure about pointing the debugger at
> xnu-4903.221.2 sources when you're debugging a xnu-4903.240.8 kernel - are
> there many differences in the source code? It seems like it could be
> confusing.
>
>
>> On May 8, 2019, at 11:30 AM, Prokash Sinha <email@hidden> wrote:
>>
>> Hi All,
>>
>> Instead of —
>>
>> settings append target.source-map
>> /BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4903.240.8/bsd/kern
>> ~/xnu_srcs/xnu_src/xnu-4903.221.2/bsd/kern
>>
>> Is it possible to do like -
>>
>> settings append target.source-map
>> /BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4903.240.8/bsd
>> ~/xnu_srcs/xnu_src/xnu-4903.221.2/bsd
>>
>> So all the source could be resolved from symbols ???
>>
>>
>> Thanks,
>> Prokash
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Darwin-kernel mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden