From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4190 invoked by alias); 6 Jul 2002 15:36:15 -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 4176 invoked from network); 6 Jul 2002 15:36:11 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 6 Jul 2002 15:36:11 -0000 Received: from dsl254-114-096.nyc1.dsl.speakeasy.net ([216.254.114.96] helo=nevyn.them.org) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17QrbN-0002py-00; Sat, 06 Jul 2002 10:36:01 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17QrbV-0004Xy-00; Sat, 06 Jul 2002 11:36:09 -0400 Date: Sat, 06 Jul 2002 08:36:00 -0000 From: Daniel Jacobowitz To: Pierre Habraken Cc: gdb@sources.redhat.com, gcc-help@gcc.gnu.org Subject: Re: Expansing macro-definitions using Gdb Message-ID: <20020706153609.GA17378@nevyn.them.org> Mail-Followup-To: Pierre Habraken , gdb@sources.redhat.com, gcc-help@gcc.gnu.org References: <3D2706FD.DF3F5DF9@imag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D2706FD.DF3F5DF9@imag.fr> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-07/txt/msg00073.txt.bz2 On Sat, Jul 06, 2002 at 05:04:29PM +0200, Pierre Habraken wrote: > 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 ? 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. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer