This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/14169] New: need to print a better error message forregexp failures in enable|disable pretty-printer
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 25 May 2012 17:41:57 +0000
- Subject: [Bug python/14169] New: need to print a better error message forregexp failures in enable|disable pretty-printer
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14169
Bug #: 14169
Summary: need to print a better error message for regexp
failures in enable|disable pretty-printer
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: dje@google.com
Classification: Unclassified
The error message here is a bit obscure.
[This isn't intended to be spelled 100% correctly, just to provide context for
the issue.]
(gdb) disable pretty global libstdc++;foo
Python Exception <class 'sre_constants.error'> multiple repeat:
Error occurred in Python command: multiple repeat
Once one realizes the +s are regexp functions it's clear, but it's just too
damn easy to type c++ instead of remembering to type c[+][+] or some such.
---
One *could* also provide different ways of specifying the printer besides a
plain regexp, but I was planning on waiting until there was a sufficient need.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.