Current 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>