site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 <jmolenda@apple.com> 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 <prokash@garlic.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/jmolenda%40apple.com
This email sent to jmolenda@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com