From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10170 invoked by alias); 14 Jan 2004 16:00:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10157 invoked from network); 14 Jan 2004 16:00:47 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 14 Jan 2004 16:00:47 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id CEB2F2B8F; Wed, 14 Jan 2004 11:00:45 -0500 (EST) Message-ID: <400567AD.2070203@gnu.org> Date: Wed, 14 Jan 2004 16:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Marcel Lanz Cc: Michael Elizabeth Chastain , gdb@sources.redhat.com Subject: Re: gdb, c++ & namespaces References: <20040114120213.684F44B104@berman.michael-chastain.com> <20040114134920.GA29776@ds9.ch> <40056066.8090807@gnu.org> <20040114153550.GA31820@ds9.ch> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00186.txt.bz2 > On Wed, Jan 14, 2004 at 10:29:42AM -0500, Andrew Cagney wrote: > >> >I've read about two debug formats: stabs and dwarf. In the manual of Mr. >> >Stallman, stabs is recommended "for best results" with c++. > >> >> Hmm, bug. Which manual? > > > section 10.4.1 in "Debugging with GDB: The GNU Source-Level Debuger" for > GDB Version 5.1.1. I have the book here. Ah, thanks. It now reads: For best results when using @sc{gnu} C@t{++}, use the DWARF 2 debugging format; if it doesn't work on your system, try the stabs+ debugging format. You can select those formats explicitly with the @code{g++} command-line options @option{-gdwarf-2} and @option{-gstabs+}. @xref{Debugging Options,,Options for Debugging Your Program or @sc{gnu} CC, gcc.info, Using @sc{gnu} CC}. The latest manuals are online. See: http://www.gnu.org/software/gdb/documentation/ Andrew