Re: gdb doesn't load line number information from object (kgdb target)

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

 



Hi Joel...

On Tue, Jan 19, 2010 at 4:11 PM, Joel Fernandes <agnel.joel@xxxxxxxxx> wrote:
> However when I try to list the code of a function in the module, it
> complaints that it does not have line number information:
>
> (gdb) list ext2_ioctl
> No line number known for ext2_ioctl.
> The object file contains line number information as verified by:
> # readelf -wL /root/ext2.ko
>
> But why doesn't gdb load it when I do an 'add-symbol-file' ? What am I doing
> wrong here?

I guess, kgdb stub in the target's end doesn't implement complete
DWARF reading....specificly address to line numbers translation. To
confirm again, try to use "objdump -d <your object file>" locally and
check whether you see line numbers or not.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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