From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4869 invoked by alias); 14 Apr 2002 00:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4851 invoked by uid 71); 14 Apr 2002 00:16:01 -0000 Date: Sat, 13 Apr 2002 17:16:00 -0000 Message-ID: <20020414001601.4850.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Daniel Jacobowitz Subject: Re: debug/6291: Debugging broken on 3.1. GDB says : "Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader." Reply-To: Daniel Jacobowitz X-SW-Source: 2002-04/txt/msg00729.txt.bz2 List-Id: The following reply was made to PR debug/6291; it has been noted by GNATS. From: Daniel Jacobowitz To: Sylvain.Pion@sophia.inria.fr Cc: gcc-gnats@gcc.gnu.org Subject: Re: debug/6291: Debugging broken on 3.1. GDB says : "Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader." Date: Sat, 13 Apr 2002 20:13:40 -0400 On Sat, Apr 13, 2002 at 11:52:23PM -0000, Sylvain.Pion@sophia.inria.fr wrote: > > >Number: 6291 > >Category: debug > >Synopsis: Debugging broken on 3.1. GDB says : "Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader." > >Confidential: no > >Severity: critical > >Priority: medium > >Responsible: unassigned > >State: open > >Class: sw-bug > >Submitter-Id: net > >Arrival-Date: Sat Apr 13 16:56:00 PDT 2002 > >Closed-Date: > >Last-Modified: > >Originator: Sylvain Pion > >Release: 3.1 20020411 (prerelease) and 3.2 20020411 (experimental) > >Organization: > >Environment: > RedHat Linux 6.1 (manually upgraded). > GDB 5.1 > >Description: > Debugging information seems totally broken. > When I compile a trivial C or C++ program, GDB tells me : > > Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader. > > I can't even put a breakpoint on "main". > > This shows up with current GCC 3.1 and 3.2 (gcc and g++). > 2.95.3 and 3.0.4 both work fine. > This seems critical for the 3.1 release ! > >How-To-Repeat: > Compile with "-g", with gcc or g++ the following program: > int main() { return 0; } > > Then run "gdb a.out", and then type "b main" in gdb. > >Fix: > I don't know of any fix. Easy, use GDB 5.1.1. Released for (among others) this exact reason. I do wish we had not switched to a DWARF-2 default at the same time as this... -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer