Re: Building kernel modules with debuginfo and printing line numbers in kernel oops message / coredump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 22, 2013 at 12:56 PM, Sankar P <sankar.curiosity@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux