Re: [Lldb-commits] FreeBSD kernel debugging fixes

2017-09-21 Thread Koropoff, Brian via lldb-commits
scussion on any needed changes. Greg Clayton > On Sep 20, 2017, at 4:37 PM, Koropoff, Brian via lldb-commits > wrote: > > Jason, > > I'm performing address to symbol resolution after setting load addresses for > all sections. It correctly identifies the module &g

Re: [Lldb-commits] FreeBSD kernel debugging fixes

2017-09-20 Thread Koropoff, Brian via lldb-commits
rn days of pic code. > > > I haven't looked at the patch, but a long time ago I did hack that sounds > similar to yours for gdb, where I would assign binaries random addresses > until we had connected to a live process & learned where they should be. So > address -> sy

Re: [Lldb-commits] FreeBSD kernel debugging fixes

2017-09-20 Thread Koropoff, Brian via lldb-commits
db, where I would assign binaries random addresses until we had connected to a live process & learned where they should be. So address -> symbol resolution would work. It never worked great and we decided to avoid doing that in lldb. > On Sep 20, 2017, at 3:41 PM, Koropoff, Bri

[Lldb-commits] FreeBSD kernel debugging fixes

2017-09-20 Thread Koropoff, Brian via lldb-commits
Greetings. I'm submitting a few patches that resolve issues I encountered when using lldb to symbolicate FreeBSD kernel backtraces. The problems mostly centered around FreeBSD kernel modules actually being relocatable (.o) ELF Files. The major problems: - Relocations were not being applied to th