This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Expansing macro-definitions using Gdb
- From: Pierre Habraken <Pierre dot Habraken at imag dot fr>
- To: Daniel Jacobowitz <drow at mvista dot com>, Jim Blandy <jimb at redhat dot com>
- Cc: gdb at sources dot redhat dot com, gcc-help at gcc dot gnu dot org
- Date: Mon, 08 Jul 2002 10:55:25 +0200
- Subject: Re: Expansing macro-definitions using Gdb
- Organization: Université Joseph Fourier
- References: <3D2706FD.DF3F5DF9@imag.fr> <20020706153609.GA17378@nevyn.them.org>
Daniel Jacobowitz wrote:
>
> You need to use a CVS snapshot of GDB, and you need to use a very
> current GCC; I believe 3.1 will do but you need to verify that
> yourself.
>
Jim Blandy wrote:
>
> Macro support was added after 5.2. To get preprocessor macro support,
> you'll need to get the latest GDB sources.
>
> For the compiler, you'll need to use Dwarf 2 debugging information.
> Try -gdwarf-2 -g3.
Thanks to you Daniel and Jim, I'll try using the latest Gdb snapshot
together with turning on Dwarf 2 debugging.
Best regards,
Pierre
--
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre.Habraken@imag.fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________