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...

On Wed, Jan 27, 2010 at 5:54 PM, Joel Fernandes <agnel.joel@xxxxxxxxx> wrote:
> I think the problems were in the way the line information was
> structured in the kernel module ELF.
>
> The line information of all the objects were clubbed together when
> compiling for x86_64 but the starting numbers were not taken into
> account.
> This how the line no.s in the resulting ko ELF objects looks like for x84_64:
> addr line file
> 0x1  1    super.c
> 0x2  2    super.c
> 0x3  3    super.c
> 0x1  4    balloc.c
> 0x2  5    balloc.c
>
> As you can see, from balloc.c onwards, the addresses are reset to 1
> (instead of 0x4).

Nice observation :) So, perhaps might question, what the best way to
avoid such problem..... always use latest gdb? I thought things like
this is formally standardized....

-- 
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