Current File : //proc/self/root/kunden/usr/share/gdb/python/gdb/function/__pycache__/strfns.cpython-39.pyc |
a
ɱZh+ � @ sx d Z ddlZddlZG dd� dej�ZG dd� dej�ZG dd� dej�ZG d d
� d
ej�Ze� e� e� e� dS )z#$_memeq, $_strlen, $_streq, $_regex� Nc s( e Zd ZdZ� fdd�Zdd� Z� ZS )�_MemEqz�$_memeq - compare bytes of memory.
Usage: $_memeq (A, B, LEN)
Returns:
True if LEN bytes at A and B compare equally.c s t t| ��d� d S )NZ_memeq)�superr �__init__��self�� __class__� �,/usr/share/gdb/python/gdb/function/strfns.pyr s z_MemEq.__init__c C s\ |dk rt d��|dkrdS t�d��|d �}|�� }|�|�}|�|�}|�� |�� kS )Nr zlength must be non-negativeT�char� )�
ValueError�gdbZlookup_typeZvectorZpointerZreinterpret_castZdereference)r �a�b�lengthZbyte_vectorZptr_byte_vectorZa_ptrZb_ptrr r r
�invoke"