Re: kernel module with debugging info
[email protected] (Christos Zoulas) Thu, 3 Apr 2025 18:42:06 -0000 (UTC)
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
In article <[email protected]>, Robert Swindells <[email protected]> wrote: > >Peter Skvarka <[email protected]> wrote: >> I must correct my question. >> >> I need to debug kernel module or investigate core dump to see stack >> where it crashes. >> >> I am trying to find how to retrieve base address of loaded kernel module >> and how put debug symbols into gdb to debug it with two machines or to >> investigate crash dump. >> >> Where can I found more info on this topic ? > >Why not just build the driver into the kernel? > >Deliver it as a module when it all works. Symbolic debugging in modules works. See: /usr/src/sys/gdbscripts/module /usr/src/sys/gdbscripts/modload christos