%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.12/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.12/__pycache__/bdb.cpython-312.pyc

�

���f�~����dZddlZddlZddlZddlmZmZmZgd�ZeezezZ	Gd�de
�ZGd�d�Zd	�Z
Gd
�d�Zd�Zd
�ZGd�de�Zd�Zd�Zd�Zy)zDebugger basics�N)�CO_GENERATOR�CO_COROUTINE�CO_ASYNC_GENERATOR)�BdbQuit�Bdb�
Breakpointc��eZdZdZy)rz Exception to give up completely.N)�__name__�
__module__�__qualname__�__doc__���/usr/lib/python3.12/bdb.pyrr
s��*rrc�,�eZdZdZd/d�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd0d�Zd/d�Zd�Zd�Zd�Zd/d�Zd�Zd�Zd�Z		d1d�Zd�Zd�Z d �Z!d!�Z"d"�Z#d#�Z$d$�Z%d%�Z&d&�Z'd'�Z(d(�Z)d)�Z*d2d*�Z+d3d+�Z,d3d,�Z-d-�Z.d.�Z/y)4raGeneric Python debugger base class.

    This class takes care of details of the trace facility;
    a derived class should implement user interaction.
    The standard debugger class (pdb.Pdb) is an example.

    The optional skip argument must be an iterable of glob-style
    module name patterns.  The debugger will not step into frames
    that originate in a module that matches one of these patterns.
    Whether a frame is considered to originate in a certain module
    is determined by the __name__ in the frame globals.
    Nc�v�|rt|�nd|_i|_i|_d|_|j�y�N)�set�skip�breaks�fncache�frame_returning�_load_breaks)�selfrs  r�__init__zBdb.__init__s3��!%�C��I�4��	�������#������rc��|d|ddzdzk(r|S|jj|�}|sMtjj	|�}tjj|�}||j|<|S)a%Return canonical form of filename.

        For real filenames, the canonical form is a case-normalized (on
        case insensitive filesystems) absolute path.  'Filenames' with
        angle brackets, such as "<stdin>", generated in interactive
        mode, are returned unchanged.
        �<�����>)r�get�os�path�abspath�normcase)r�filename�canonics   rr'zBdb.canonic'sq���s�X�a��^�+�c�1�1��O��,�,�"�"�8�,����g�g�o�o�h�/�G��g�g�&�&�w�/�G�%,�D�L�L��"��rc�^�ddl}|j�d|_|jdd�y)z5Set values of attributes as ready to start debugging.rN)�	linecache�
checkcache�botframe�
_set_stopinfo)rr)s  r�resetz	Bdb.reset8s(���������
����4��&rc�z�|jry|dk(r|j|�S|dk(r|j||�S|dk(r|j||�S|dk(r|j	||�S|dk(r|j
S|dk(r|j
S|dk(r|j
St
d	t|��|j
S)
aODispatch a trace function for debugged frames based on the event.

        This function is installed as the trace function for debugged
        frames. Its return value is the new trace function, which is
        usually itself. The default implementation decides how to
        dispatch a frame, depending on the type of event (passed in as a
        string) that is about to be executed.

        The event can be one of the following:
            line: A new line of code is going to be executed.
            call: A function is about to be called or another code block
                  is entered.
            return: A function or other code block is about to return.
            exception: An exception has occurred.
            c_call: A C function is about to be called.
            c_return: A C function has returned.
            c_exception: A C function has raised an exception.

        For the Python events, specialized functions (see the dispatch_*()
        methods) are called.  For the C events, no action is taken.

        The arg parameter depends on the previous event.
        N�line�call�return�	exception�c_call�c_exception�c_returnz*bdb.Bdb.dispatch: unknown debugging event:)�quitting�
dispatch_line�
dispatch_call�dispatch_return�dispatch_exception�trace_dispatch�print�repr)r�frame�event�args    rr;zBdb.trace_dispatch?s���0�=�=���F�?��%�%�e�,�,��F�?��%�%�e�S�1�1��H���'�'��s�3�3��K���*�*�5�#�6�6��H���&�&�&��M�!��&�&�&��J���&�&�&�
�:�D��K�H��"�"�"rc��|j|�s|j|�r#|j|�|jrt�|j
S)a	Invoke user function and return trace function for line event.

        If the debugger stops on the current line, invoke
        self.user_line(). Raise BdbQuit if self.quitting is set.
        Return self.trace_dispatch to continue tracing in this scope.
        )�	stop_here�
break_here�	user_liner6rr;�rr>s  rr7zBdb.dispatch_linejs>���>�>�%� �D�O�O�E�$:��N�N�5�!��}�}�G�m��"�"�"rc�d�|j�|j|_|jS|j|�s|j	|�sy|j
r)|jjtzr|jS|j||�|jrt�|jS)aInvoke user function and return trace function for call event.

        If the debugger stops on this function call, invoke
        self.user_call(). Raise BdbQuit if self.quitting is set.
        Return self.trace_dispatch to continue tracing in this scope.
        N)r+�f_backr;rB�break_anywhere�	stopframe�f_code�co_flags�GENERATOR_AND_COROUTINE_FLAGS�	user_callr6r�rr>r@s   rr8zBdb.dispatch_callvs����=�=� �!�L�L�D�M��&�&�&����u�%��)<�)<�U�)C���>�>�e�l�l�3�3�6S�S��&�&�&����u�c�"��=�=��-��"�"�"rc��|j|�s||jk(r�|jr)|jjt
zr|jS	||_|j||�d|_|jrt�|j|ur!|jdk7r|jdd�|jS#d|_wxYw)aInvoke user function and return trace function for return event.

        If the debugger stops on this function return, invoke
        self.user_return(). Raise BdbQuit if self.quitting is set.
        Return self.trace_dispatch to continue tracing in this scope.
        Nr)
rB�returnframerIrJrKrLr;r�user_returnr6r�
stoplinenor,rNs   rr9zBdb.dispatch_return�s����>�>�%� �E�T�-=�-=�$=��~�~�%�,�,�"7�"7�:W�"W��*�*�*�
,�',��$�� � ���,�'+��$��}�}�G�m��~�~��&�4�?�?�b�+@��"�"�4��.��"�"�"��(,��$�s�C�	C
c���|j|�r]|jjtzr|dtur|d�$|j||�|jrt�|jS|jrj||jur\|jjjtzr5|dttfvr$|j||�|jrt�|jS)aInvoke user function and return trace function for exception event.

        If the debugger stops on this exception, invoke
        self.user_exception(). Raise BdbQuit if self.quitting is set.
        Return self.trace_dispatch to continue tracing in this scope.
        r�)rBrJrKrL�
StopIteration�user_exceptionr6rrI�
GeneratorExitr;rNs   rr:zBdb.dispatch_exception�s����>�>�%� ��L�L�)�)�,I�I��A��-�/�C��F�N��#�#�E�3�/��=�=��-��"�"�"�
�n�n��d�n�n�!<��N�N�)�)�2�2�5R�R���F�}�m�<�<�����s�+��}�}�G�m��"�"�"rc�\�|�y|jD]}tj||�s�yy)z4Return True if module_name matches any skip pattern.FT)r�fnmatch)r�module_name�patterns   r�is_skipped_modulezBdb.is_skipped_module�s4������y�y�	�G����{�G�4��	�rc��|jr+|j|jjd��ry||jur)|j
dk(ry|j|j
k\S|jsyy)z>Return True if frame is below the starting frame in the stack.r
FrT)rr\�	f_globalsr!rIrR�f_linenorEs  rrBz
Bdb.stop_here�sf���9�9��%�%�e�o�o�&9�&9�*�&E�F���D�N�N�"����"�$���>�>�T�_�_�4�4��~�~��rc��|j|jj�}||jvry|j}||j|vr(|jj
}||j|vryt
|||�\}}|rD|j|_|r0|jr$|jt|j��yy)z�Return True if there is an effective breakpoint for this line.

        Check for line or function breakpoint and if in effect.
        Delete temporary breakpoints if effective() says to.
        FT)r'rJ�co_filenamerr_�co_firstlineno�	effective�number�	currentbp�	temporary�do_clear�str)rr>r&�lineno�bp�flags      rrCzBdb.break_here�s����<�<���� 8� 8�9���4�;�;�&����������X�.�.��\�\�0�0�F��T�[�[��2�2���x���7�
��T�
��Y�Y�D�N������
�
�c�"�)�)�n�-��rc��td��)zlRemove temporary breakpoint.

        Must implement in derived classes or get NotImplementedError.
        z)subclass of bdb must implement do_clear())�NotImplementedError)rr@s  rrgzBdb.do_clear�s��
"�"M�N�Nrc�d�|j|jj�|jvS)zEReturn True if there is any breakpoint for frame's filename.
        )r'rJrarrEs  rrHzBdb.break_anywhere�s&���|�|�E�L�L�4�4�5����D�Drc��y)z&Called if we might stop in a function.Nr)rr>�
argument_lists   rrMz
Bdb.user_call���rc��y)z'Called when we stop or break at a line.NrrEs  rrDz
Bdb.user_linerqrc��y)z&Called when a return trap is set here.Nr)rr>�return_values   rrQzBdb.user_returnrqrc��y)z$Called when we stop on an exception.Nr)rr>�exc_infos   rrVzBdb.user_exceptionrqrc�<�||_||_d|_||_y)z�Set the attributes for stopping.

        If stoplineno is greater than or equal to 0, then stop at line
        greater than or equal to the stopline.  If stoplineno is -1, then
        don't stop at all.
        FN)rIrPr6rR)rrIrPrRs    rr,zBdb._set_stopinfos#��#���&�����
�%��rc�L�|�|jdz}|j|||�y)zxStop when the line with the lineno greater than the current one is
        reached or when returning from current frame.Nr)r_r,)rr>ris   r�	set_untilz
Bdb.set_until$s)���>��^�^�a�'�F����5�%��0rc��|jr5|jj}|r|js|j|_|j	dd�y)zStop after one line of code.N)rrG�f_tracer;r,)r�caller_frames  r�set_stepzBdb.set_step,sG������/�/�6�6�L��L�$8�$8�'+�':�':��$����4��&rc�(�|j|d�y)z2Stop on the next line in or below the given frame.N)r,rEs  r�set_nextzBdb.set_next8s�����5�$�'rc��|jjtzr|j|dd�y|j|j|�y)z)Stop when returning from the given frame.Nr)rJrKrLr,rGrEs  r�
set_returnzBdb.set_return<s;���<�<� � �#@�@����u�d�B�/����u�|�|�U�3rc��|�tj�j}|j�|r'|j|_||_|j}|r�'|j�tj|j�y)znStart debugging from frame.

        If frame is not specified, debugging starts from caller's frame.
        N)	�sys�	_getframerGr-r;r{r+r}�settracerEs  r�	set_tracez
Bdb.set_traceCse��
�=��M�M�O�*�*�E��
�
��� �/�/�E�M�!�D�M��L�L�E��	
�
�
�����T�(�(�)rc�"�|j|jdd�|jsftjd�tj
�j}|r0||jur!|`|j}|r||jur�yyyyy)z�Stop only at breakpoints or when finished.

        If there are no breakpoints, set the system trace function to None.
        Nr)r,r+rr�r�r�rGr{rEs  r�set_continuezBdb.set_continueRsv��	
���4�=�=�$��3��{�{��L�L����M�M�O�*�*�E��E����6��M������E����6�%�6�%�	rc�l�|j|_d|_d|_t	j
d�y)zuSet quitting attribute to True.

        Raises BdbQuit exception in the next call to a dispatch_*() method.
        NT)r+rIrPr6r�r��rs r�set_quitzBdb.set_quitas*��
����������
����T�rc�h�|jj|g�}||vr|j|�yy)z/Add breakpoint to breaks, if not already there.N)r�
setdefault�append)rr&ri�
bp_linenoss    r�_add_to_breakszBdb._add_to_breaksrs3���[�[�+�+�H�b�9�
���#����f�%�$rc��|j|�}ddl}|j||�}|sd||fzS|j||�t	|||||�}y)z�Set a new breakpoint for filename:lineno.

        If lineno doesn't exist for the filename, return an error message.
        The filename should be in canonical form.
        rNzLine %s:%d does not exist)r'r)�getliner�r)	rr&rirf�cond�funcnamer)r/rjs	         r�	set_breakz
Bdb.set_breakxs_���<�<��)���� � ��6�2���.�(�F�1C�C�C����H�f�-�
��&�)�T�8�
D��rc�t�tjj�D]\}}|j||��y)aOApply all breakpoints (set in other instances) to this one.

        Populates this instance's breaks list from the Breakpoint class's
        list, which can have breakpoints set by another Bdb instance. This
        is necessary for interactive sessions to keep the breakpoints
        active across multiple calls to run().
        N)r�bplist�keysr��rr&ris   rrzBdb._load_breaks�s7��#-�"3�"3�"8�"8�":�	2��X�v�����&�1�	2rc��||ftjvr|j|j|�|j|s|j|=yy)aPrune breakpoints for filename:lineno.

        A list of breakpoints is maintained in the Bdb instance and in
        the Breakpoint class.  If a breakpoint in the Bdb instance no
        longer exists in the Breakpoint class, then it's removed from the
        Bdb instance.
        N)rr�r�remover�s   r�
_prune_breakszBdb._prune_breaks�sK��
�f��Z�%6�%6�6��K�K��!�(�(��0��{�{�8�$����H�%�%rc��|j|�}||jvrd|zS||j|vrd||fzStj||fddD]}|j	��|j||�y)znDelete breakpoints for filename:lineno.

        If no breakpoints were set, return an error message.
        �There are no breakpoints in %szThere is no breakpoint at %s:%dN)r'rrr��deleteMer�)rr&rirjs    r�clear_breakzBdb.clear_break�s���
�<�<��)���4�;�;�&�3�h�>�>�����X�.�.�4��&�7I�I�I��#�#�H�f�$4�5�a�8�	�B��K�K�M�	����8�V�,�rc���	|j|�}|j�|j	|j
|j�y#t$r}t|�cYd}~Sd}~wwxYw)zxDelete a breakpoint by its index in Breakpoint.bpbynumber.

        If arg is invalid, return an error message.
        N)�get_bpbynumber�
ValueErrorrhr�r��filer/)rr@rj�errs    r�clear_bpbynumberzBdb.clear_bpbynumber�sX��
	��$�$�S�)�B�	���
����2�7�7�B�G�G�,���	�	��s�8�O��	�s�A
�
	A(�
A#�A(�#A(c���|j|�}||jvrd|zS|j|D].}tj||f}|D]}|j	���0|j|=y)z`Delete all breakpoints in filename.

        If none were set, return an error message.
        r�N)r'rrr�r�)rr&r/�blistrjs     r�clear_all_file_breakszBdb.clear_all_file_breaks�s~��
�<�<��)���4�;�;�&�3�h�>�>��K�K��)�	�D��%�%�h��n�5�E��
�����
�
�	�
�K�K��!�rc�|�|jsytjD]}|s�|j��i|_y)z]Delete all existing breakpoints.

        If none were set, return an error message.
        zThere are no breakpointsN)rr�
bpbynumberr�)rrjs  r�clear_all_breakszBdb.clear_all_breaks�s;��
�{�{�-��'�'�	�B�����
�	����rc���|std��	t|�}	tj|}|�td|z��|S#t$rtd|z�d�wxYw#t$rtd|z�d�wxYw)z�Return a breakpoint by its index in Breakpoint.bybpnumber.

        For invalid arg values or if the breakpoint doesn't exist,
        raise a ValueError.
        zBreakpoint number expectedz Non-numeric breakpoint number %sNz!Breakpoint number %d out of rangezBreakpoint %d already deleted)r��intrr��
IndexError)rr@rdrjs    rr�zBdb.get_bpbynumber�s�����9�:�:�	Q���X�F�	U��&�&�v�.�B��:��<�v�E�F�F��	���	Q��?�#�E�F�D�P�	Q���	U��@�6�I�J�PT�T�	U�s�A�A�A�A5c�f�|j|�}||jvxr||j|vS)z9Return True if there is a breakpoint for filename:lineno.�r'rr�s   r�	get_breakz
Bdb.get_break�s7���<�<��)���4�;�;�&�,��d�k�k�(�+�+�	,rc��|j|�}||jvxr(||j|vxrtj||fxsgS)znReturn all breakpoints for filename:lineno.

        If no breakpoints are set, return an empty list.
        )r'rrr�r�s   r�
get_breakszBdb.get_breaks�sY��
�<�<��)���4�;�;�&�0��d�k�k�(�+�+�0����h��.�/�6�35�	6rc�b�|j|�}||jvr|j|SgS)zrReturn all lines with breakpoints for filename.

        If no breakpoints are set, return an empty list.
        r�)rr&s  r�get_file_breakszBdb.get_file_breaks�s2��
�<�<��)���t�{�{�"��;�;�x�(�(��Irc��|jS)z$Return all breakpoints that are set.)rr�s r�get_all_breakszBdb.get_all_breaks	s���{�{�rc��g}|r|j|ur|j}|�;|j||jf�||jurn|j
}|��;|j
�tdt|�dz
�}|�6|j|j|jf�|j}|��6|�tdt|�dz
�}||fS)z�Return a list of (frame, lineno) in a stack trace and a size.

        List starts with original calling frame, if there is one.
        Size may be number of frames above or below f.
        rr)
�tb_frame�tb_nextr�r_r+rG�reverse�max�len�	tb_lineno)r�f�t�stack�is     r�	get_stackz
Bdb.get_stacks���������q���	�	�A��m��L�L�!�Q�Z�Z��)��D�M�M�!�����A�	�m�
	�
�
����3�u�:��>�"���m��L�L�!�*�*�a�k�k�2�3��	�	�A��m�
�9��A�s�5�z�A�~�&�A��a�x�rc���ddl}ddl}|\}}|j|jj�}|�d|�d�}|jj
r||jj
z
}n|dz
}|dz
}d|jvr(|jd}	|dz
}||j|	�z
}|�7|j|||j�}
|
r|||
j�zz
}|S||�d	�z
}|S)
a:Return a string with information about a stack entry.

        The stack entry frame_lineno is a (frame, lineno) tuple.  The
        return string contains the canonical filename, the function name
        or '<lambda>', the input arguments, the return value, and the
        line of code (if it exists).

        rN�(�)z<lambda>z()�
__return__z->zWarning: lineno is None)r)�reprlibr'rJra�co_name�f_localsr=r�r^�strip)r�frame_lineno�lprefixr)r�r>rir&�s�rvr/s           r�format_stack_entryzBdb.format_stack_entry's���	"�$�
��v��<�<���� 8� 8�9�� �&�)���<�<���
����%�%�%�A�
��O�A�	�T�	���5�>�>�)�����-�B�
��I�A�
����b�!�!�A����$�$�X�v�u���G�D���W�t�z�z�|�+�+����
�G�9�3�4�4�A��rc�|�|�ddl}|j}|�|}|j�t|t�r
t|dd�}t
j|j�	t|||�d|_t
jd�y#t$rY�(wxYw#d|_t
jd�wxYw)z�Debug a statement executed via the exec() function.

        globals defaults to __main__.dict; locals defaults to globals.
        Nrz<string>�execT)�__main__�__dict__r-�
isinstancerh�compiler�r�r;r�rr6)r�cmd�globals�localsr�s     r�runzBdb.runIs���
�?���'�'�G��>��F��
�
���c�3���#�z�6�2�C����T�(�(�)�	���g�v�&�!�D�M��L�L����	�	��	��!�D�M��L�L���s$�$
B�	B�B�B�B�B;c�|�|�ddl}|j}|�|}|j�tj|j
�	t
|||�d|_tjd�S#t$rYnwxYw	d|_tjd�y#d|_tjd�wxYw)z�Debug an expression executed via the eval() function.

        globals defaults to __main__.dict; locals defaults to globals.
        NrT)	r�r�r-r�r�r;�evalr6r)r�exprr�r�r�s     r�runevalzBdb.runeval_s���
�?���'�'�G��>��F��
�
�����T�(�(�)�	���g�v�.�!�D�M��L�L����	�	��	��� �D�M��L�L����!�D�M��L�L���s$�A0�0	A<�9B�;A<�<B�B;c�*�|j|||�y)z.For backwards-compatibility.  Defers to run().N)r�)rr�r�r�s    r�runctxz
Bdb.runctxss��	
����g�v�&rc��|j�tj|j�d}	||i|��}d|_tjd�|S#t$rY�)wxYw#d|_tjd�wxYw)zWDebug a single function call.

        Return the result of the function call.
        NT)r-r�r�r;rr6)r�func�args�kwds�ress     r�runcallzBdb.runcallzs|��
	
�
�
�����T�(�(�)���	���%��%�C�!�D�M��L�L����
���	��	��!�D�M��L�L���s#�A�	A%�"A(�$A%�%A(�(Br)r�FNN)z: �NN)0r
rrr
rr'r-r;r7r8r9r:r\rBrCrgrHrMrDrQrVr,ryr}rr�r�r�r�r�r�rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrs������"'�)#�V
#�#�,#�,#�>�
��6O�E�
�
�
�
�%�"1�
'�(�4�
*�
%��"&�AE��� 	2�&��"�
���(,�6�	���.�D�,�('�rrc�4�t�j�y)z<Start debugging with a Bdb instance from the caller's frame.N)rr�rrrr�r��s���E�O�O�rc�\�eZdZdZdZiZdgZdd�Zed��Z	d�Z
d�Zd�Zd
d	�Z
d
�Zd�Zy)ra�Breakpoint class.

    Implements temporary breakpoints, ignore counts, disabling and
    (re)-enabling, and conditionals.

    Breakpoints are indexed by number through bpbynumber and by
    the (file, line) tuple using bplist.  The former points to a
    single instance of class Breakpoint.  The latter points to a
    list of such instances since there may be more than one
    breakpoint per line.

    When creating a breakpoint, its associated filename should be
    in canonical form.  If funcname is defined, a breakpoint hit will be
    counted when the first line of that function is executed.  A
    conditional breakpoint always counts a hit.
    rNc��||_d|_||_||_||_||_d|_d|_d|_tj|_txjdz
c_
|jj|�||f|jvr!|j||fj|�y|g|j||f<y)NTrr)r��func_first_executable_liner�r/rfr��enabled�ignore�hitsr�nextrdr�r�r�)rr�r/rfr�r�s      rrzBreakpoint.__init__�s��� ��
�*.��'���	���	�"�����	���������	� �o�o������1��������t�$��$�<�4�;�;�&��K�K��d�
�#�*�*�4�0�'+�f�D�K�K��d�
�#rc�H�dt_it_dgt_y)Nr)rr�r�r�rrr�clearBreakpointszBreakpoint.clearBreakpoints�s���
���
��!%��
�rc���|j|jf}d|j|j<|j|j|�|j|s|j|=yy)z�Delete the breakpoint from the list associated to a file:line.

        If it is the last breakpoint in that position, it also deletes
        the entry for the file:line.
        N)r�r/r�rdr�r�)r�indexs  rr�zBreakpoint.deleteMe�s\�����D�I�I�&��'+�������$����E��!�!�$�'��{�{�5�!����E�"�"rc��d|_y)zMark the breakpoint as enabled.TN�r�r�s r�enablezBreakpoint.enable�s	����rc��d|_y)z Mark the breakpoint as disabled.FNr�r�s r�disablezBreakpoint.disable�s	����rc�^�|�tj}t|j�|��y)z�Print the output of bpformat().

        The optional out argument directs where the output is sent
        and defaults to standard output.
        N)r�)r��stdoutr<�bpformat)r�outs  r�bpprintzBreakpoint.bpprint�s"���;��*�*�C�
�d�m�m�o�C�(rc��|jrd}nd}|jr|dz}n|dz}d|j||j|jfz}|j
r|d|j
��z
}|jr|d|jfzz
}|jr(|jdkDrd	}nd
}|d|j|fzz
}|S)z�Return a string with information about the breakpoint.

        The information includes the breakpoint number, temporary
        status, file:line position, break condition, number of times to
        ignore, and number of times hit.

        zdel  zkeep zyes  zno   z%-4dbreakpoint   %s at %s:%dz
	stop only if z
	ignore next %d hitsrr��z"
	breakpoint already hit %d time%s)rfr�rdr�r/r�r�r�)r�disp�ret�sss    rr�zBreakpoint.bpformat�s����>�>��D��D��<�<��'�>�D��'�>�D�,����T�04�	�	�4�9�9�0F�F���9�9��D�I�I�7�7�C��;�;��,����~�=�=�C��9�9��y�y�1�}������9�T�Y�Y��O�K�K�C��
rc�T�d|j�d|j�d|j��S)z1Return a condensed description of the breakpoint.zbreakpoint z at �:)rdr�r/r�s r�__str__zBreakpoint.__str__s��+/�;�;��	�	�4�9�9�M�Mrr�r)r
rrr
r�r�r�r�staticmethodr�r�r�r�r�r�rrrrrr�sR���(
�D�
�F���J�-�(�'��'�
#���)��<Nrrc��|js|j|jk7ryy|jj|jk7ry|j
s|j|_|j
|jk7ryy)aVReturn True if break should happen here.

    Whether a break should happen depends on the way that b (the breakpoint)
    was set.  If it was set via line number, check if b.line is the same as
    the one in the frame.  If it was set via function name, check if this is
    the right function and if it is on the first executable line.
    FT)r�r/r_rJr�r�)�br>s  r�
checkfuncnamersm��
�:�:��6�6�U�^�^�#���
�|�|���q�z�z�)��
�'�'�',�~�~��$��#�#�u�~�~�5��rc���tj||f}|D]�}|js�t||�s�|xjdz
c_|j
s+|jdkDr|xjdzc_�c|dfcS	t|j
|j|j�}|r+|jdkDr|xjdzc_n|dfcS��y#|dfcYcSxYw)a=Return (active breakpoint, delete temporary flag) or (None, None) as
       breakpoint to act upon.

       The "active breakpoint" is the first entry in bplist[line, file] (which
       must exist) that is enabled, for which checkfuncname is True, and that
       has neither a False condition nor a positive ignore count.  The flag,
       meaning that a temporary breakpoint should be deleted, is False only
       when the condiion cannot be evaluated (in which case, ignore count is
       ignored).

       If no such entry exists, then (None, None) is returned.
    rrTFr�)
rr�r�rr�r�r�r�r^r�)r�r/r>�	possiblesr
�vals      rrcrc+s����!�!�$��*�-�I�
�!"���y�y���Q��&��	���!����v�v��x�x�!�|����A�
����4�y� �

"��1�6�6�5�?�?�E�N�N�C����x�x�!�|����A�
��!"�4�y�(��5!"�D��
"��5�z�!�s
�AC�C'c�$�eZdZd�Zd�Zd�Zd�Zy)�Tdbc�R�|jj}|sd}td||�y)N�???z+++ call)rJr�r<)rr>r��names    rrMz
Tdb.user_callas$���|�|�#�#���E�T�
�j�$��%rc	�(�ddl}|jj}|sd}|j|jj�}|j||j|j�}td||j|d|j��y)Nrrz+++r)
r)rJr�r'rar�r_r^r<r�)rr>r)r�fnr/s      rrDz
Tdb.user_lineesk����|�|�#�#���E�T�
�\�\�%�,�,�2�2�
3��� � ��U�^�^�U�_�_�E��
�e�R�����s�D�J�J�L�Arc��td|�y)Nz
+++ return�r<)rr>�retvals   rrQzTdb.user_returnls��
�l�F�#rc�<�td|�|j�y)Nz
+++ exception)r<r�)rr>�	exc_stuffs   rrVzTdb.user_exceptionns��
�o�y�)����rN)r
rrrMrDrQrVrrrrr`s��&�B�$�rrc�R�td|d�t|dz�}td|�y)Nzfoo(r��
zbar returned)r<�bar)�n�xs  r�foor rs%��	�&�!�S���A�b�D�	�A�	�.�!�rc�&�td|d�|dzS)Nzbar(r�rTr)�as rrrws��	�&�!�S���Q�3�Jrc�:�t�}|jd�y)Nzimport bdb; bdb.foo(10))rr�)r�s r�testr${s����A��E�E�
#�$r)r
rYr�r"�inspectrrr�__all__rL�	Exceptionrrr�rrrcrr rr$rrr�<module>r(s�����
�	�B�B�
*�� ,�|� ;�>P� P��+�i�+�x	�x	�v�
uN�uN�t�@0�j�#��$�
�%r

Zerion Mini Shell 1.0