Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: "Howind Axel, Externer Dienstleister" <Axel.Howind@fja.com>,
	"'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: Re: expanding c-macros in gdb
Date: Wed, 05 Dec 2001 07:45:00 -0000	[thread overview]
Message-ID: <20011205104520.A15947@nevyn.them.org> (raw)
In-Reply-To: <Pine.SUN.3.91.1011205134011.7196C-100000@is>

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


  reply	other threads:[~2001-12-05 15:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05  2:11 Howind Axel, Externer Dienstleister
2001-12-05  3:40 ` Choi, Jang-Wook
2001-12-05  3:43 ` Eli Zaretskii
2001-12-05  7:45   ` Daniel Jacobowitz [this message]
2001-12-05  9:27     ` Daniel Berlin

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=20011205104520.A15947@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=Axel.Howind@fja.com \
    --cc=eliz@is.elta.co.il \
    --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