403Webshell
Server IP : 104.129.129.72  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : answe8064 ( 1002)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gdb/python/gdb/function/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gdb/python/gdb/function/__pycache__/caller_is.cpython-310.pyc
o

̴6bU�@stddlZddlZGdd�dej�ZGdd�dej�ZGdd�dej�ZGdd	�d	ej�Ze�e�e�e�dS)
�Nc�*eZdZdZ�fdd�Zddd�Z�ZS)�CallerIsa�Check the calling function's name.

    Usage: $_caller_is (NAME [, NUMBER-OF-FRAMES])

    Arguments:

      NAME: The name of the function to search for.

      NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently
        selected frame to compare with.  If the value is greater than the depth of
        the stack from that point then the result is False.
        The default is 1.

    Returns:
      True if the function's name at the specified frame is equal to NAME.c�tt|��d�dS)N�
_caller_is)�superr�__init__��self��	__class__��//usr/share/gdb/python/gdb/function/caller_is.pyr&�zCallerIs.__init__�cCsT|dkrtd��t��}|dkr"|��}|durdS|d}|dks|��|��kS�Nr�nframes must be >= 0Fr)�
ValueError�gdb�selected_frame�older�name�string�r	r�nframes�framerrr
�invoke)s�zCallerIs.invoke�r��__name__�
__module__�__qualname__�__doc__rr�
__classcell__rrr
r
r�rcr)�
CallerMatchesaCompare the calling function's name with a regexp.

    Usage: $_caller_matches (REGEX [, NUMBER-OF-FRAMES])

    Arguments:

      REGEX: The regular expression to compare the function's name with.

      NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently
        selected frame to compare with.  If the value is greater than the depth of
        the stack from that point then the result is False.
        The default is 1.

    Returns:
      True if the function's name at the specified frame matches REGEX.cr)N�_caller_matches)rr$rrr
rr
rFrzCallerMatches.__init__rcCs\|dkrtd��t��}|dkr"|��}|durdS|d}|dkst�|��|���duSr)rrrr�re�matchrrrrrr
rIs�zCallerMatches.invokerrrrr
r
r$5r#r$cr)�AnyCallerIsa�Check all calling function's names.

    Usage: $_any_caller_is (NAME [, NUMBER-OF-FRAMES])

    Arguments:

      NAME: The name of the function to search for.

      NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently
        selected frame to compare with.  If the value is greater than the depth of
        the stack from that point then the result is False.
        The default is 1.

    Returns:
      True if any function's name is equal to NAME.cr)N�_any_caller_is)rr(rrr
rr
rfrzAnyCallerIs.__init__rcCs\|dkrtd��t��}|dkr,|��|��krdS|��}|dur$dS|d}|dksdS�NrrTFr)rrrrrrrrrr
ris�zAnyCallerIs.invokerrrrr
r
r(Ur#r(cr)�AnyCallerMatchesaCompare all calling function's names with a regexp.

    Usage: $_any_caller_matches (REGEX [, NUMBER-OF-FRAMES])

    Arguments:

      REGEX: The regular expression to compare the function's name with.

      NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently
        selected frame to compare with.  If the value is greater than the depth of
        the stack from that point then the result is False.
        The default is 1.

    Returns:
      True if any function's name matches REGEX.cr)N�_any_caller_matches)rr+rrr
rr
r�rzAnyCallerMatches.__init__rcCsl|dkrtd��t��}t�|���}|dkr4|�|���dur"dS|��}|dur,dS|d}|dksdSr*)	rrrr&�compilerr'rr)r	rrr�name_rerrr
r�s�zAnyCallerMatches.invokerrrrr
r
r+wr#r+)rr&�Functionrr$r(r+rrrr
�<module>s  "#


Youez - 2016 - github.com/yon3zu
LinuXploit