Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump
Mulyadi Santosa
mulyadi.santosa at gmail.com
Tue Apr 23 23:30:55 EDT 2013
On Mon, Apr 22, 2013 at 12:56 PM, Sankar P <sankar.curiosity at gmail.com> wrote:
>
> Thanks.
>
> But is there not a way to get the line numbers and filenames printed
> automatically instead of the memory addresses ? For example, in gdb,
> in userspace, if there is a crash, we can get the line numbers printed
> when there is a crash. Can the kernel crash/oops handler similarly not
> print the filenames and linenumbers automatically ? Is there a
> configuration or hack for getting it that way ?
Hi...
try enabling kdb or kgdb, and at the same time make sure your kernel
is compiled with symbol built in it. IIRC, that would make it spill
line numbers during oops, but that is rather kdb/kgdb specific though
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the Kernelnewbies
mailing list