From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11226 invoked by alias); 5 Dec 2001 15:45:03 -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 11169 invoked from network); 5 Dec 2001 15:44:59 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 5 Dec 2001 15:44:59 -0000 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16BeEa-0004Bw-00; Wed, 05 Dec 2001 10:45:20 -0500 Date: Wed, 05 Dec 2001 07:45:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: "Howind Axel, Externer Dienstleister" , "'gdb@sources.redhat.com'" Subject: Re: expanding c-macros in gdb Message-ID: <20011205104520.A15947@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , "Howind Axel, Externer Dienstleister" , "'gdb@sources.redhat.com'" References: <6380966D8BCFD5119C9300306E1C8487057727@clg-server7.clg.fja.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2001-12/txt/msg00029.txt.bz2 On Wed, Dec 05, 2001 at 01:42:25PM +0200, Eli Zaretskii wrote: > > On Wed, 5 Dec 2001, Howind Axel, Externer Dienstleister wrote: > > > Is there a way to make gdb understand that the command > > print REFP_XYZ(a).abc is the same as print xyz_ptr->s_xyz.r_xyz[i].xyz.abc? > > > > I have read in the gcc manual that compiling with -g3 stores information > > about all defined macros, so that "Some debuggers support macro > > expansion when you use `-g3'." > > This does not seem to work with gdb (gcc 2.95.2, gdb 5.0, on HP-UX 10.20). > > Try compiling with -gdwarf-2 or -gstabs+ instead of -g3. Perhaps that > would help (I have no idea whether DWARF2 is supported on HP-UX). It doesn't (yet). At least -gdwarf-2 -g3 saves the necessary information, we just don't use it. Hopefully I'll have time to tackle this when I'm finished with v3. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer