Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Pierre Habraken <Pierre.Habraken@imag.fr>
Cc: gdb@sources.redhat.com, gcc-help@gcc.gnu.org
Subject: Re: Expansing macro-definitions using Gdb
Date: Sat, 06 Jul 2002 08:36:00 -0000	[thread overview]
Message-ID: <20020706153609.GA17378@nevyn.them.org> (raw)
In-Reply-To: <3D2706FD.DF3F5DF9@imag.fr>

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


  reply	other threads:[~2002-07-06 15:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-06  8:11 Pierre Habraken
2002-07-06  8:36 ` Daniel Jacobowitz [this message]
2002-07-08  1:55   ` Pierre Habraken
2002-07-06 10:33 ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020706153609.GA17378@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=Pierre.Habraken@imag.fr \
    --cc=gcc-help@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox