Bug 118383 - objdump -g does not print debugging info
Summary: objdump -g does not print debugging info
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: binutils   
(Show other bugs)
Version: 3.0
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-16 05:38 UTC by abhijit karmarkar
Modified: 2007-11-30 22:07 UTC (History)
0 users

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


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.