I’m trying to map the kernel source after breaking into kernel - similar to directory add command in gdb. Not sure why the code is not getting mapped.
But when I change among the frames, it does not give the source lines.
thread #20: tid = 0x0698, 0xffffff800aa8dcf7 kernel`tcp_connect(tp=0xffffff80111ea0a0, nam=0xffffff80123659e8, p=
pid process io_policy wq_state command
160 0xffffff8010e53ee0 Q -1 -1 -1 ocspd ) + 23 at tcp_usrreq.c:1215, name = '0xffffff8011893108', queue = '0x0', stop reason = breakpoint 1.1
* frame #0: 0xffffff800aa8dcf7 kernel`tcp_connect(tp=0xffffff80111ea0a0, nam=0xffffff80123659e8, p=
pid process io_policy wq_state command
160 0xffffff8010e53ee0 Q -1 -1 -1 ocspd ) + 23 at tcp_usrreq.c:1215 [opt]
frame #1: 0xffffff800aa8ed40 kernel`tcp_usr_connect(so=<unavailable>, nam=0xffffff80123659e8, p=
pid process io_policy wq_state command
160 0xffffff8010e53ee0 Q -1 -1 -1 ocspd ) + 208 at tcp_usrreq.c:466 [opt]
frame #2: 0xffffff800aa8d66d kernel`tcp_usr_connectx_common(aid=0, so=<unavailable>, af=<unavailable>, src_sl=<unavailable>, dst_sl=<unavailable>, p=<unavailable>, ifscope=<unavailable>, pcid=<unavailable>, flags=<unavailable>, arg=<unavailable>, arglen=<unavailable>) + 573 at tcp_usrreq.c:552 [opt]
frame #3: 0xffffff800ac23546 kernel`connectx [inlined] connectitx(so=<unavailable>, src_sl=0x0000000000000000, dst_sl=0xffffff80133a8fa8, ifscope=0, aid=0, pcid=0x111e9a7000000000) + 96 at uipc_syscalls.c:842 [opt]
frame #4: 0xffffff800ac234e6 kernel`connectx [inlined] connectx_nocancel + 594 at uipc_syscalls.c:739 [opt]
frame #5: 0xffffff800ac23294 kernel`connectx(p=
pid process io_policy wq_state command
160 0xffffff8010e53ee0 Q -1 -1 -1 ocspd , uap=0xffffff80114f7120, retval=<unavailable>) + 68 at uipc_syscalls.c:764 [opt]
frame #6: 0xffffff800ac4ba86 kernel`unix_syscall64(state=0xffffff801156f020) + 662 at systemcalls.c:368 [opt]
frame #7: 0xffffff800a835376 kernel`hndl_unix_scall64 + 22
(lldb) do
error: Already at the bottom of the stack