This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python] more tests and documentation


On Wed, Oct 22, 2008 at 2:59 PM, Tom Tromey <tromey@redhat.com> wrote:

> -gdb.cli_pretty_printers['^std::basic_string<char.*>'] = printstdstring
> +gdb.cli_pretty_printers['^std::basic_string<char.*>$'] = printstdstring

As I was playing with CLI pretty printers, I noticed that
to get reasonable output (what I think end-users expect from
pretty printer), I have to do this:

gdb.cli_pretty_printers['^\(const \)*std::basic_string<char.*>\(
&\)*$'] = printstdstring

It might be reasonable to automatically strip 'const' and reference
from types before searching for pretty printer.

Comments?
-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]