This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug python/14169] New: need to print a better error message forregexp failures in enable|disable pretty-printer


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.


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