From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29470 invoked by alias); 6 Jul 2002 15:11:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 29444 invoked from network); 6 Jul 2002 15:11:01 -0000 Received: from unknown (HELO imag.imag.fr) (129.88.30.1) by sources.redhat.com with SMTP; 6 Jul 2002 15:11:01 -0000 Received: from horus.imag.fr (horus.imag.fr [129.88.38.1]) by imag.imag.fr (8.11.6/8.11.6) with ESMTP id g66FB0i10111; Sat, 6 Jul 2002 17:11:00 +0200 (MEST) Received: from imag.fr (habraken.ppp.imag.fr [129.88.13.43]) by horus.imag.fr (8.11.6/8.11.6/Imag.pm.V2) with ESMTP id g66FAwo29599; Sat, 6 Jul 2002 17:10:58 +0200 (MEST) Message-ID: <3D2706FD.DF3F5DF9@imag.fr> Date: Sat, 06 Jul 2002 08:11:00 -0000 From: Pierre Habraken Organization: =?iso-8859-1?Q?Universit=E9?= Joseph Fourier X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com, gcc-help@gcc.gnu.org Subject: Expansing macro-definitions using Gdb Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-07/txt/msg00053.txt.bz2 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 ________________________________________________________________________