From: Phil Muldoon <pmuldoon@redhat.com>
To: Doug Evans <dje@google.com>
Cc: Robert Lupton the Good <rhl@astro.princeton.edu>,
gdb <gdb@sourceware.org>
Subject: Re: Problem redefining python pretty printers
Date: Mon, 23 May 2011 15:24:00 -0000 [thread overview]
Message-ID: <m3pqn9phj7.fsf@redhat.com> (raw)
In-Reply-To: <BANLkTi=tU+VtzpvkzQiDZQgVsi5UjVr6kQ@mail.gmail.com> (Doug Evans's message of "Mon, 23 May 2011 08:05:51 -0700")
Doug Evans <dje@google.com> writes:
> On Sat, May 21, 2011 at 6:41 PM, Robert Lupton the Good
> <rhl@astro.princeton.edu> wrote:
>> The routine register is:
>>> def register():
>>> printer = gdb.printing.RegexpCollectionPrettyPrinter("afw")
>>> gdb.printing.register_pretty_printer(gdb, printer)
>>
>> Any advice on what I'm doing wrong? I suppose I could come up with a new name each time, but that seems a little clumsy.
>
> You're not doing anything wrong, per se.
> I think we need to handle this use-case though.
> gdb could either provide a way to replace an existing pretty-printer
> or delete it so that it can be re-added.
I guess you could delete it from the (gdb) list directly by using the
Python list functions. But that is hacky. I agree on the specific
API. I can't remember seeing a bug for this. Is there one?
Cheers,
Phil
prev parent reply other threads:[~2011-05-23 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-22 1:41 Robert Lupton the Good
2011-05-23 15:06 ` Doug Evans
2011-05-23 15:24 ` Phil Muldoon [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=m3pqn9phj7.fsf@redhat.com \
--to=pmuldoon@redhat.com \
--cc=dje@google.com \
--cc=gdb@sourceware.org \
--cc=rhl@astro.princeton.edu \
/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