| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/gdb/python/gdb/__pycache__/ |
Upload File : |
o
��nb�( � @ s\ d dl Z ze W n ey eZY nw G dd� de�ZG dd� de�ZG dd� de�ZdS )� Nc @ sf e Zd ZdZ dd� Zedd� �Zdd� Zdd � Zd
d� Z dd
� Z
dd� Zdd� Zdd� Z
dd� ZdS )�FrameDecoratorz)Basic implementation of a Frame Decoratorc C s
|| _ d S �N)�_base)�self�base� r �+/usr/share/gdb/python/gdb/FrameDecorator.py�__init__= s
zFrameDecorator.__init__c C s: | � � }|jr|jjr| �� tjks| �� tjkrdS dS )zIInternal utility to determine if the frame is special or
limited.TF)�find_sal�symtab�filename�type�gdb�DUMMY_FRAME�SIGTRAMP_FRAME)�frame�salr r r �_is_limited_frame@ s ��z FrameDecorator._is_limited_framec C s t | jd�r| j�� S dS )zLReturn any elided frames that this class might be
wrapping, or None.�elidedN)�hasattrr r �r r r r r Q s
zFrameDecorator.elidedc C st t | jtj�st| jd�r| j�� S | �� }|�� tjkrdS |�� tj kr(dS |�� }|du r6|�
� }|S t|�S )a� Return the name of the frame's function or an address of
the function of the frame. First determine if this is a
special frame. If not, try to determine filename from GDB's
frame internal function API. Finally, if a name cannot be
determined return the address. If this function returns an
address, GDB will attempt to determine the function name from
its internal minimal symbols store (for example, for inferiors
without debug-info).�functionz<function called from gdb>z<signal handler called>N)�
isinstancer r �Framer r �inferior_framer
r r �pc�str)r r �funcr r r r r Y s
zFrameDecorator.functionc C s&