This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] more tests and documentation
- From: "Paul Pluzhnikov" <ppluzhnikov at google dot com>
- To: tromey at redhat dot com
- Cc: "Project Archer" <archer at sourceware dot org>
- Date: Wed, 22 Oct 2008 21:15:45 -0700
- Subject: Re: [python] more tests and documentation
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;t=1224735349; bh=3SlplASvr7Jv0c1kzJt2qVk4F+I=;h=DomainKey-Signature:Message-ID:Date:From:To:Subject:Cc: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition:References; b=BgzTycLcdTuoH6HJvFz7LXNBEtrHCoISxEXlRGT9eMMYAb78y0cGOP4WyeLEcnnqVUnnhTko9/9RCK4zqYdIIw==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;b=eTAOQjKP3oGfS006c1ZGrAmfqS6FG66M5x1CxohARIppo7OXQiFdQAh86/YTLMgpVVm4bQVBf+RlNim7FEfqHQ==
- References: <m363nk2sve.fsf@fleche.redhat.com>
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