U
    ŠWªd‰  ã                   @   s   d dl Z dd„ Zdd„ ZdS )é    Nc                  C   s*   zdd l } W dS  tk
r$   Y dS X d S )Nr   TF)Zgdb.xmethodÚImportError)Úgdb© r   úI/usr/lib/x86_64-linux-gnu/../../share/gcc/python/libstdcxx/v6/__init__.pyÚgdb_has_xmethods   s
    r   c                 C   s2   ddl m} || ƒ tƒ r.ddlm} || ƒ d S )Né   )Úregister_libstdcxx_printers)Úregister_libstdcxx_xmethods)Úprintersr   r   Úxmethodsr	   )Úobjr   r	   r   r   r   r      s
    r   )r   r   r   r   r   r   r   Ú<module>   s   