OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó ›à 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> Internal utility to see if printer (or subprinter) is enabled.t enabledN( t hasattrR t True( t printer( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyt printer_enabled_pL s t InfoPrettyPrinterc B sP e Z d Z d „ Z e d „ ƒ Z e d „ ƒ Z d „ Z d „ Z d „ Z RS( s³ GDB command to list all registered pretty-printers. Usage: info pretty-printer [object-regexp [name-regexp]] OBJECT-REGEXP is a regular expression matching the objects to list. Objects are "global", the program space's file, and the objfiles within that program space. NAME-REGEXP matches the name of the pretty-printer. Individual printers in a collection are named as printer-name;subprinter-name. c C s t t | ƒ j d t j ƒ d S( Ns info pretty-printer( t superR t __init__R t COMMAND_DATA( t self( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyR b s c C s t | ƒ r d Sd Sd S( s9 Return "" if PRINTER is enabled, otherwise " [disabled]".R s [disabled]N( R ( R ( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyt enabled_stringf s c C s0 t | d ƒ r | j St | d ƒ r, | j Sd S( s Return the printer's name.t namet __name__t unknown( R R R! ( R ( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyt printer_namen s c C sü t t j | ƒ d | j ƒ} x× | D]Ï } | j | ƒ } | j | ƒ } | j | ƒ r% d | | f GHt | d ƒ rô | j d k rô t t j | j ƒ d | j ƒ} xH | D]= } | sÌ | j | j ƒ r d | j | j | ƒ f GHq q Wqô q% q% Wd S( s Print a list of pretty-printers.t keys %s%st subprinterss %s%sN( t sortedt copyR# R t matchR R% R R ( R t pretty_printersR R t sorted_pretty_printersR R R t sorted_subprinterst subprinter( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyt list_pretty_printers{ s" c C s4 | r0 | j | ƒ r0 | GH| j | | | ƒ n d S( s$ Subroutine of invoke to simplify it.N( R( R- ( R t titlet printer_listt obj_name_to_matchR R R ( ( s4 /usr/share/gdb/python/gdb/command/pretty_printers.pyt invoke1‘ s c C sª t | ƒ \ } } } | j d t j d | | | ƒ t j ƒ } | j d | j | j d | | | ƒ x= t j ƒ D]/ } | j d | j | j | j | | | ƒ qs Wd S( s&