File: //usr/share/glib-2.0/gdb/__pycache__/glib_gdb.cpython-312.opt-1.pyc
�
��f�! c s� � d dl Z d dlZej d dk\ reZd� Zd� Z G d� d� Z G d� d� Z G d � d
� Z G d� d� Z
d
� Zd� Z G d� de j � Z e� y)� Ni c sH � t j � j | � S �N)�gdbZselected_frameZread_var)Zsymnames �#/usr/share/glib-2.0/gdb/glib_gdb.py�read_global_varr s � �����(�(��1�1� c s� � | �y t | � } | dk( ry d } t d� } t t d� � }|�| |k r || j � S y # t j $ r Y �1w xY w# t $ rO t d� } t t d� � }n# t j $ r Y nw xY wn# t $ r Y Y y w xY wY ��w xY w# t j $ r t d| � �� Y y w xY w)Nr ZquarksZquark_seq_idZg_quarksZg_quark_seq_idzInvalid quark )�longr r Zerror� ExceptionZstringZMemoryErrorZprint)ZquarkZmax_q�vals r �g_quark_to_stringr
s � ��}����K�E���z���E���h�'�� ����8�9�E�
�}���
� ,��u�:�$�$�&�&� ��! �y�y� �� ��� � �!�*�-�C�
��_�-=�>�?����9�9�
��
��� �� ���� ��� ,��N�5�'�*�+�� ,�s� �A- �A � C �A*�'A- �)A*�*A- �- C�7B2�B�B2�B.�+B2�-B.�.B2�1C�2 B?�;C�>B?�?C�C�!C,�+C,c s � e Zd ZdZd� Zd� Zy)�GListNodePrinterzPrints a GList nodec s � || _ y r �r ��selfr s r �__init__zGListNodePrinter.__init__0 � � ���r c s� � dt | j d � t | j d � t | j d � fz S )Nz{data=%s, next=0x%x, prev=0x%x}�data�nextZprev��strr r �r
s r � to_stringzGListNodePrinter.to_string3 sG � �0������ �!�����&�!�"�����&�!�"�4
�
�
r N��__name__�
__module__�__qualname__�__doc__r r � r r r
r
- s � ���
r r
c s � e Zd ZdZd� Zd� Zy)�GSListNodePrinterzPrints a GSList nodec s � || _ y r r r s r r zGSListNodePrinter.__init__>