From: Doug Evans <dje@google.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Tristan Su <sooqing@gmail.com>, gdb <gdb@sourceware.org>
Subject: Re: can pahole print a struct definition in a given CU?
Date: Wed, 02 Jan 2013 19:06:00 -0000 [thread overview]
Message-ID: <CADPb22QhUmXiuaMcmXSvwenuX+hvA=_OSS3P=dxPdZ_8hc+6yA@mail.gmail.com> (raw)
In-Reply-To: <CADPb22ToZbGzscJ4gSN+GOLEqdMfF-U30n3eGn9BW7A8hCOpgw@mail.gmail.com>
On Wed, Jan 2, 2013 at 11:56 AM, Doug Evans <dje@google.com> wrote:
> [...]
> Thus,
> what about adding a "context" parameter to parse_and_eval, etc.?
> And then provide a way to specify that context (e.g., both from the
> CLI and from Python).
>
>[...]
>
> E.g., something like: (gdb) with-symtab bar.c p foo+baz
> or whatever.
[Sorry for the followup.]
To make that work with breakpoint expressions, etc., it would be
preferable to still encode the symtab in the expression string, but at
an outer level and not embedded in it.
I realize this syntax is problematic, but for illustration's sake: p
(foo+baz)@bar.c
From Python: gdb.parse_and_eval ("foo+baz", symtab=blah) or whatever.
prev parent reply other threads:[~2013-01-02 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-24 14:15 Tristan Su
2013-01-02 17:32 ` Tom Tromey
2013-01-02 18:56 ` Doug Evans
2013-01-02 19:05 ` Tom Tromey
2013-01-02 19:06 ` Doug Evans [this message]
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='CADPb22QhUmXiuaMcmXSvwenuX+hvA=_OSS3P=dxPdZ_8hc+6yA@mail.gmail.com' \
--to=dje@google.com \
--cc=gdb@sourceware.org \
--cc=sooqing@gmail.com \
--cc=tromey@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