https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61835

            Bug ID: 61835
           Summary: Invalid comment on pretty printers breaks gdb
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mariano.bessone at tallertechnologies dot com

Created attachment 33136
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33136&action=edit
Workaround

Running gdb with latest pretty printers causes:

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "/data/utils/prettyprinters/libstdcxx/v6/printers.py", line 1056
    """
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in
position 194-195: malformed \N character escape
/home/marjobe/.gdbinit:6: Error in sourced command file:
Error while executing Python code.

The problem is that a comment contains an escape sequence. See workaround in
the attached patch.

Reply via email to