Description of problem: objdump -g <objectfile> does not print debugging info. Version-Release number of selected component (if applicable): RHEL3 AS, Update 1. How reproducible: Always. Steps to Reproduce: 1. compile any C program with "-g" (gcc -g -o foo foo.c) 2. try dumping debugging info: objdump -g foo Actual results: objdump: foo: no recognized debugging information Expected results: objdump should print debugging (stabs) info. i am especially interested in struct info (size, member offsets etc.) looks that gcc3 does not have a .stabs ELF section. and that makes objdump believe that there is no debugging information. Additional info: this happens with gcc 3.2 and binutils w/ RHEL3 Update 1. gcc version: gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-24) binutils : 2.14.90.0.4-26.3 objdump ver: GNU objdump 2.14.90.0.4 20030523
Please read the manual page of objdump: "-g ... Only certain types of debugging information have been implemented. Some other types are supported by `readelf -w'." Particularly, DWARF2 which now GCC emits by default is supported only by readelf -w[liaprmfFso].