Sindbad~EG File Manager
�
��g� � � � d dl Z d dlZd� Zd� Z G d� dej � � Zd� Zd� Z G d� d ej � � Z G d
� dej � � Z d� Z
e
� � dS )
� Nc �t � t j | � � S # t $ r t d|�d| �d�� � �w xY w)a9 Compile exp into a compiler regular expression object.
Arguments:
exp: The string to compile into a re.Pattern object.
idstring: A string, what exp is a regexp for.
Returns:
A re.Pattern object representing exp.
Raises:
SyntaxError: If exp is an invalid regexp.
zInvalid z regexp: �.)�re�compile�SyntaxError)�exp�idstrings �./gdb/command/missing_debug.py�validate_regexpr sR � �F��z�#������ F� F� F��k�h�h�h����D�E�E�E�F���s � �!7c �� � t j | � � }t |� � }|dk rt d� � �d}d}|dk r|d }|dk r|d }t |d� � t |d� � fS )a1 Internal utility to parse missing debug handler command argv.
Arguments:
arg: The arguments to the command. The format is:
[locus-regexp [name-regexp]]
Returns:
A 2-tuple of compiled regular expressions.
Raises:
SyntaxError: an error processing ARG
� zToo many arguments.� � r �locus�handler)�gdb�string_to_argv�lenr r )�arg�argv�argc�locus_regexp�name_regexps r
� parse_missing_debug_command_argsr * s� � � ��c�"�"�D��t�9�9�D��a�x�x��/�0�0�0��L��K��q�y�y��A�w���1�9�9��q�'�K���g�.�.���Y�/�/�� � c �. � � e Zd ZdZ� fd�Zd� Zd� Z� xZS )�InfoMissingDebugHandersaa GDB command to list missing debug handlers.
Usage: info missing-debug-handlers [LOCUS-REGEXP [NAME-REGEXP]]
LOCUS-REGEXP is a regular expression matching the location of the
handler. If it is omitted, all registered handlers from all
loci are listed. A locus can be 'global', 'progspace' to list
the handlers from the current progspace, or a regular expression
matching filenames of progspaces.
NAME-REGEXP is a regular expression to filter missing debug
handler names. If this omitted for a specified locus, then all
registered handlers in the locus are listed.
c �` �� t � � � dt j � � d S )Nzinfo missing-debug-handlers��super�__init__r �
COMMAND_FILES��self� __class__s �r
r! z InfoMissingDebugHanders.__init__W s'