403Webshell
Server IP : 43.141.49.119  /  Your IP : 113.219.202.141
Web Server : Apache
System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.1.27
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gdb/python/gdb/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gdb/python/gdb/__pycache__/frames.cpython-311.opt-1.pyc
�

��e��d�dZddlZddlmZddlmZddlZddlZd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�ZdS)z2Internal functions for working with frame-filters.�N)�
FrameIterator)�FrameDecoratorc�$�t|dd��S)aBInternal worker function to return the frame-filter's priority
    from a frame filter object.  This is a fail free function as it is
    used in sorting and filtering.  If a badly implemented frame
    filter does not implement the priority attribute, return zero
    (otherwise sorting/filtering will fail and prevent other frame
    filters from executing).

    Arguments:
        filter_item: An object conforming to the frame filter
                     interface.

    Returns:
        The priority of the frame filter from the "priority"
        attribute, or zero.
    �priorityr��getattr��filter_items �#/usr/share/gdb/python/gdb/frames.py�get_priorityrs��$�;�
�A�.�.�.�c��||_dS)z�Internal worker function to set the frame-filter's priority.

    Arguments:
        filter_item: An object conforming to the frame filter
                     interface.
        priority: The priority to assign as an integer.
    N)r)r
rs  r�set_priorityr/s��$�K���r
c�$�t|dd��S)aDInternal worker function to return a filter's enabled state
    from a frame filter object.  This is a fail free function as it is
    used in sorting and filtering.  If a badly implemented frame
    filter does not implement the enabled attribute, return False
    (otherwise sorting/filtering will fail and prevent other frame
    filters from executing).

    Arguments:
        filter_item: An object conforming to the frame filter
                     interface.

    Returns:
        The enabled state of the frame filter from the "enabled"
        attribute, or False.
    �enabledFrr	s r�get_enabledr;s��(�;�	�5�1�1�1r
c��||_dS)z�Internal Worker function to set the frame-filter's enabled
    state.

    Arguments:
        filter_item: An object conforming to the frame filter
                     interface.
        state: True or False, depending on desired state.
    N)r)r
�states  r�set_enabledrRs�� �K���r
c�@�|dkr�tj���}tj��j���}t	j||��}tj��D].}t	j||j�����}�/|S|dkrtjS|dkrtj��}|jStj��D]}||jkr	|jcS�d|zdz}tj|���)aInternal Worker function to return the frame filter
    dictionary, depending on the name supplied as an argument.  If the
    name is not "all", "global" or "progspace", it is assumed to name
    an object-file.

    Arguments:
        name: The name of the list, as specified by GDB user commands.

    Returns:
        A dictionary object for a single specified dictionary, or a
        list containing all the items for "all"

    Raises:
        gdb.GdbError:  A dictionary of that name cannot be found.
    �all�global�	progspacez)Cannot find frame-filter dictionary for '�')	�gdb�
frame_filters�values�current_progspace�	itertools�chain�objfiles�filename�GdbError)�name�glob�prog�return_iter�objfile�cp�msgs       r�return_listr+_s��,�u�}�}�� �'�'�)�)���$�&�&�4�;�;�=�=���o�d�D�1�1���|�~�~�	W�	W�G�#�/�+�w�7L�7S�7S�7U�7U�V�V�K�K����x���� � ��;����&�(�(�B��#�#��<�>�>�
1�
1���7�+�+�+�"�0�0�0�0�,�6��
<�s�
B�C�

�,�s�
�
�r
c�|�td��}t|td���}tt|��}|S)a)Internal Worker function to merge all known frame-filter
    lists, prune any filters with the state set to "disabled", and
    sort the list on the frame-filter's "priority" attribute.

    Returns:
        sorted_list: A sorted, pruned list of frame filters to
                     execute.
    rT)�key�reverse)r+�sortedr�filterr)�all_filters�sorted_frame_filterss  r�
_sort_listr3�s=���e�$�$�K�!�+�<��N�N�N��!�+�/C�D�D���r
c�n�tt����}t|��dkrdSt|��}t	t
d��rtjt|��}ntt|��}|D]}|�	|��}�|dkrld}t|��}tj��}|D]6}	||kr|�
��|dz}|�|	���7t|��S|dkrd}n|dz}tj|||��}|S)aInternal function called from GDB that will execute the chain
    of frame filters.  Each filter is executed in priority order.
    After the execution completes, slice the iterator to frame_low -
    frame_high range.

    Arguments:
        frame: The initial frame.

        frame_low: The low range of the slice.  If this is a negative
        integer then it indicates a backward slice (ie bt -4) which
        counts backward from the last frame in the backtrace.

        frame_high: The high range of the slice.  If this is -1 then
        it indicates all frames until the end of the stack from
        frame_low.

    Returns:
        frame_iterator: The sliced iterator after all frame
        filters have had a change to execute, or None if no frame
        filters are registered.
    rN�imap����)�listr3�lenr�hasattrrr5r�mapr0�abs�collections�deque�popleft�append�iter�islice)
�frame�	frame_low�
frame_high�sorted_list�frame_iterator�ff�count�slice_length�sliced�
frame_items
          r�execute_frame_filtersrM�sK��0�z�|�|�$�$�K��;���1����t�"�5�)�)�N�
�y�&�!�!�=�"����G�G����^�^�<�<���3�3�����>�2�2���
�1�}�}����9�~�~���"�$�$��(�	&�	&�J���$�$���� � � ��A�I�E��M�M�*�%�%�%�%��F�|�|��
�R����
�
� �!�^�
�
�
�n�i��
D�
D�F��Mr
)�__doc__r�gdb.FrameIteratorr�gdb.FrameDecoratorrrr=rrrrr+r3rM�r
r�<module>rRs���"9�8�
�
�
�
�+�+�+�+�+�+�-�-�-�-�-�-���������/�/�/�*	$�	$�	$�2�2�2�.
 �
 �
 �+�+�+�\ � � �$J�J�J�J�Jr

Youez - 2016 - github.com/yon3zu
LinuXploit