Re: gdb, c++ & namespaces

Andrew Cagney
2004-01-14T16:00:51Z

> 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