This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Expansing macro-definitions using Gdb
- From: Pierre Habraken <Pierre dot Habraken at imag dot fr>
- To: gdb at sources dot redhat dot com, gcc-help at gcc dot gnu dot org
- Date: Sat, 06 Jul 2002 17:04:29 +0200
- Subject: Expansing macro-definitions using Gdb
- Organization: Université Joseph Fourier
The Gcc man page tells that using the option -g3 macro-definitions
present in the source program are included into the object file.
However, even when I use this option at compile time, Gdb 5.2 does not
recognize such macro-definitions.
Actually, using gcc 3.04, I compiled a C program including macro
definitions first with option -g and then with option -g3. Then, when
using cmp to compare both executables no difference is detected.
Is there a way to enable printing/displaying macro-definitions when
debugging a C program with Gdb ?
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
________________________________________________________________________