[lucid] Where is debuginfo package?
Peter M. Petrakis
peter.petrakis at canonical.com
Thu Feb 17 14:38:42 UTC 2011
On 02/17/2011 02:53 AM, Tetsuo Handa wrote:
> Tim Gardner wrote:
>> http://ddebs.ubuntu.com/pool/main/l/linux/
>
> Thanks.
>
> I installed linux-image-2.6.32-28-generic-pae-dbgsym_2.6.32-28.55_i386.ddeb
> and ran
>
> objdump -S /usr/lib/debug/boot/vmlinux-2.6.32-28-generic-pae
>
> but I couldn't get disassembly with source code mixed.
> Thus, I manually ran
>
The debug kernel expects the source code to exist in
/build/buildd/linux-2.6.32, just create the proper
symlinks and try again.
> cp /boot/config-2.6.32-28-generic-pae .config
> make fs/jbd/
> make fs/jbd2/
> objdump -S fs/jbd/transaction.o > 1.txt
> objdump -S fs/jbd2/transaction.o > 2.txt
>
> and guessed which start_this_handle() was called from the size of function.
>
If you ran a disassembly with line numbers (-ld) it would have been
a little easier, source code is not necessary for this. I largely avoid
creating an interspersed obj dump, it just takes too long. Adding line
numbers takes only a few more minutes.
[This is *not* the kernel version you're referring too]
ffffffff81211b70 <start_this_handle>:
start_this_handle():
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:85
ffffffff81211b70: 55 push %rbp
ffffffff81211b71: 48 89 e5 mov %rsp,%rbp
ffffffff81211b74: 41 57 push %r15
ffffffff81211b76: 41 56 push %r14
ffffffff81211b78: 41 55 push %r13
ffffffff81211b7a: 41 54 push %r12
ffffffff81211b7c: 53 push %rbx
ffffffff81211b7d: 48 83 ec 78 sub $0x78,%rsp
ffffffff81211b81: e8 fa 02 e0 ff callq ffffffff81011e80 <mcount>
ffffffff81211b86: 48 89 b5 78 ff ff ff mov %rsi,-0x88(%rbp)
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:88
ffffffff81211b8d: 44 8b 76 08 mov 0x8(%rsi),%r14d
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:85
ffffffff81211b91: 49 89 fc mov %rdi,%r12
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:92
ffffffff81211b94: 8b 8f 80 01 00 00 mov 0x180(%rdi),%ecx
ffffffff81211b9a: 41 39 ce cmp %ecx,%r14d
ffffffff81211b9d: 0f 8f 7f 03 00 00 jg ffffffff81211f22 <start_this_handle+0x3b2>
BTW, if you tack on a .S suffix, you'll get proper C+ASM syntax highlighting.
Hope that helps.
Peter
More information about the kernel-team
mailing list