Bug 118383

Summary: objdump -g does not print debugging info
Product: Red Hat Enterprise Linux 3 Reporter: abhijit karmarkar <abhijitk>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-16 11:41:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description abhijit karmarkar 2004-03-16 05:38:41 UTC
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

Comment 1 Jakub Jelinek 2004-03-16 11:41:28 UTC
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].