Viewing File: /usr/share/gdb/python/gdb/command/pretty_printers.pyc
ó
›à Rc @ sÔ d Z d d l Z d d l Z d d l Z d „ Z d „ Z d e j f d „ ƒ YZ d „ Z d „ Z d d
„ Z
d „ Z d „ Z d
„ Z
d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e ƒ d S( s. GDB commands for working with pretty-printers.iÿÿÿÿNc
C sv t j | ƒ } t | ƒ } d } d } d } | d k rH t d ƒ ‚ n | d k ra | d } n | d k r¯ | d j d d ƒ } | d } t | ƒ d k r¯ | d } q¯ n y t j | ƒ } Wn! t k
rå t d | ƒ ‚ n Xy t j | ƒ } Wn! t k
rt d | ƒ ‚ n X| d k rcy t j | ƒ } Wqit k
r_t d
| ƒ ‚ qiXn d } | | | f S( sü Internal utility to parse a pretty-printer command argv.
Arguments:
arg: The arguments to the command. The format is:
[object-regexp [name-regexp]].
Individual printers in a collection are named as
printer-name;subprinter-name.
Returns:
The result is a 3-tuple of compiled regular expressions, except that
the resulting compiled subprinter regexp is None if not provided.
Raises:
SyntaxError: an error processing ARG
t i s too many argumentsi i i t ;s invalid object regexp: %ss invalid name regexp: %ss invalid subname regexp: %sN( t gdbt string_to_argvt lent Nonet SyntaxErrort splitt ret compile(
t argt argvt argct
object_regexpt name_regexpt subname_regexpt name_subnamet object_ret name_ret
subname_re( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyt parse_printer_regexps s:
c C s t | d ƒ r | j St Sd S( s>