Unix Technical Forum

gdb can't read symbol table (Dwarf Error)

This is a discussion on gdb can't read symbol table (Dwarf Error) within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Even for a trivial C program which I compile with gcc -g, and which runs well, I can not ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 05:58 PM
Ronald Fischer
 
Posts: n/a
Default gdb can't read symbol table (Dwarf Error)

Even for a trivial C program which I compile with gcc -g, and which runs
well, I can not access the symbol table with gdb. When I run gdb on the
executable, it complains

Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader

and when I ask gdb to set a breakpoint on main (for instance), it says that
"main" was not found.

The same happens when I compile with -ggdb instead of -g!

I'm using gcc 3.2 and gdb 3.1

Ronald
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 05:59 PM
Himabindu Vuppula
 
Posts: n/a
Default Re: gdb can't read symbol table (Dwarf Error)

Which platform are you on? What is the what string for gdb and gcc and what
is the version string for gdb
(gdb -version)?

-Bindu

"Ronald Fischer" <ronaldf@eml.cc> wrote in message
news:219750c.0404212341.791c6a3c@posting.google.co m...
> Even for a trivial C program which I compile with gcc -g, and which runs
> well, I can not access the symbol table with gdb. When I run gdb on the
> executable, it complains
>
> Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader
>
> and when I ask gdb to set a breakpoint on main (for instance), it says

that
> "main" was not found.
>
> The same happens when I compile with -ggdb instead of -g!
>
> I'm using gcc 3.2 and gdb 3.1
>
> Ronald



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 05:59 PM
Himabindu Vuppula
 
Posts: n/a
Default Re: gdb can't read symbol table (Dwarf Error)

You must be using gnu gdb and Hp gcc on a PA-RISC machine. Did you compile
your program with the -gdwarf-2 switch? We found a similar problem listed on
the redhat forum. This link would provide more information
http://sources.redhat.com/ml/gdb-prs.../msg00082.html.


-Bindu

"Ronald Fischer" <ronaldf@eml.cc> wrote in message
news:219750c.0404212341.791c6a3c@posting.google.co m...
> Even for a trivial C program which I compile with gcc -g, and which runs
> well, I can not access the symbol table with gdb. When I run gdb on the
> executable, it complains
>
> Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader
>
> and when I ask gdb to set a breakpoint on main (for instance), it says

that
> "main" was not found.
>
> The same happens when I compile with -ggdb instead of -g!
>
> I'm using gcc 3.2 and gdb 3.1
>
> Ronald



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com