From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 408 invoked by alias); 28 Aug 2002 12:50:27 -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 393 invoked from network); 28 Aug 2002 12:50:25 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 28 Aug 2002 12:50:25 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17k3DQ-0004NS-00; Wed, 28 Aug 2002 08:50:36 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17k2IE-0003vi-00; Wed, 28 Aug 2002 08:51:30 -0400 Date: Wed, 28 Aug 2002 05:50:00 -0000 From: Daniel Jacobowitz To: Pierre Habraken Cc: binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Re: Expansing macro-definitions in Gas using Gdb Message-ID: <20020828125130.GA15090@nevyn.them.org> Mail-Followup-To: Pierre Habraken , binutils@sources.redhat.com, gdb@sources.redhat.com References: <3D6CC5AB.C4CA2B1E@imag.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D6CC5AB.C4CA2B1E@imag.fr> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00375.txt.bz2 On Wed, Aug 28, 2002 at 02:44:27PM +0200, Pierre Habraken wrote: > Hello, > > I would like to be able to display the value of #defined constants > (C macro-definitions) #included in assembly language modules. > The source files of these modules have suffix ".S" and are assembled > using gcc. > Using latest snapshots of gdb, it is possible to expand > macro-definitions included in C source files compiled with gcc. > However this does not appear to work for assembly source files. > Is it possible to force gas (or gcc) to put the required data into the > object file ? Not really. If you use a C file and asm("") constructs, you can get the macros; otherwise, you can probably get them by linking a dummy .c file in your project which includes all of the headers. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer