From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: pluto@agmk.net, gdb@sourceware.org
Subject: Re: overloading 'print' command.
Date: Fri, 15 May 2009 14:07:00 -0000 [thread overview]
Message-ID: <8ac60eac0905150707n38e82ebcw49a4f46d476ef7f@mail.gmail.com> (raw)
In-Reply-To: <83preargj6.fsf@gnu.org>
2009/5/15 Eli Zaretskii <eliz@gnu.org>:
>> Date: Thu, 14 May 2009 16:17:07 -0700
>> From: Paul Pluzhnikov <ppluzhnikov@google.com>
>> 2009/5/14 Paweł Sikora <pluto@agmk.net>:
...
>> > Is it possible in gdb to register some hooks for
>> > type-based printing?
^^^^^^^^^^^^^^^^^^^^^^^^^
>> Support for doing *exactly* this is coming to mainline GDB, but you can
>> get it now from the archer-tromey-python branch:
>> http://sourceware.org/gdb/wiki/PythonGdb
>
> But I think what the OP wants does not justify waiting a few months
> until GDB 7 is released.
He can get it now from the archer branch.
> To the OP: yes, you should be able to use the user-defined hooks
> machinery to do what you want.
I don't see how hook-print can help OP to do something special for
std::string. The manual says hook-print doesn't get any arguments, so
it can't even tell what is being printed. What am I missing?
Cheers,
--
Paul Pluzhnikov
next prev parent reply other threads:[~2009-05-15 14:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 11:46 Paweł Sikora
2009-05-14 23:17 ` Paul Pluzhnikov
2009-05-15 7:06 ` Eli Zaretskii
2009-05-15 14:07 ` Paul Pluzhnikov [this message]
2009-05-15 14:42 ` Eli Zaretskii
2009-05-15 15:53 ` Joel Brobecker
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=8ac60eac0905150707n38e82ebcw49a4f46d476ef7f@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=pluto@agmk.net \
/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