Re: coaxing objdump to give useful offsets

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

 



Hi Jim,

On 8/7/06, Jim Cromie <jim.cromie@xxxxxxxxx> wrote:


[  120.540000]  [<c0102dd8>] show_stack_log_lvl+0x8b/0x96

How about the second column ? I guess you can do objdump -d vmlinux and
match with that, if that's what you want...

Anand

[  120.540000]  [<c0102f3a>] show_registers+0x157/0x1e8
[  120.540000]  [<c01033ee>] die+0x197/0x23f
[  120.540000]  [<c0109b85>] do_page_fault+0x3c8/0x495
[  120.540000]  [<c026b529>] error_code+0x39/0x40
[  120.540000]  [<c016c6ed>] sysfs_remove_file+0xd/0xf
[  120.540000]  [<c01e7bce>] device_remove_file+0x1c/0x27
[  120.540000]  [<c880c988>] nsc_gpio_sysfs_bits_fini+0x6e/0x79 [nsc_gpio]
[  120.540000]  [<c8811253>] pc8736x_gpio_cleanup+0x3b/0xe4 [pc8736x_gpio]
[  120.540000]  [<c0123760>] sys_delete_module+0x16c/0x19c
[  120.540000]  [<c0102607>] syscall_call+0x7/0xb
[  120.540000] Code: 89 55 f0 e8 33 e3 0f 00 8b 45 f0 8b 50 0c e9 bf 00
00 00 8b 45 ec 83 78 14 00 0f 84 ac 00 00 00 e8 19 ff ff ff 8b 7d e4 89
c6 ac <ae> 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 0f 85 8a 00
[  120.540000] EIP: [<c016c499>] sysfs_hash_and_remove+0x55/0x144 SS:ESP
0068:c5ce9ef0
[  120.540000]  /root/pinlab/exer-gpio.sh: line 5:  1831 Segmentation
fault      rmmod pc8736x_gpio scx200_gpio nsc_gpio



problem is, objdump doesnt render with that convention, so mental math
is necessary to find lines.

000003c4 <sysfs_hash_and_remove>:
 3c4:   55                      push   %ebp
 3c5:   89 e5                   mov    %esp,%ebp
 3c7:   57                      push   %edi
 3c8:   56                      push   %esi


It would be nice if it instead showed

000003c4 <sysfs_hash_and_remove>:
  +000:   55                      push   %ebp
  +001:   89 e5                   mov    %esp,%ebp
  +003:   57                      push   %edi


Is there a way, that Ive missed rtfm'g, to make objdump output and
kernel-oopses correspond obviously ?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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