관리-도구
편집 파일: gnu_backtrace.cpython-38.pyc
U �MgN � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z e r\d dlm Z d dlmZ dZ d Zd Zdje eed�Ze �ee je jB �ZG d d� de�Zdd� ZdS )� N)�Integration��add_global_event_processor)�capture_internal_exceptions)� TYPE_CHECKING)�Any)�Eventz[a-zA-Z0-9/._:\\-]+z[a-zA-Z0-9._:<>,-]+z[A-Fa-f0-9]+z� ^(?P<index>\d+)\.\s (?P<package>{MODULE_RE})\( (?P<retval>{TYPE_RE}\ )? ((?P<function>{TYPE_RE}) (?P<args>\(.*\))? )? ((?P<constoffset>\ const)?\+0x(?P<offset>{HEXVAL_RE}))? \)\s \[0x(?P<retaddr>{HEXVAL_RE})\]$ )� MODULE_RE� HEXVAL_RE�TYPE_REc @ s e Zd ZdZedd� �ZdS )�GnuBacktraceIntegrationZ gnu_backtracec C s t dd� �} d S )Nc S s( t � � t| |�W 5 Q R � S Q R X d S )N)r �_process_gnu_backtrace)�event�hint� r �S/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/integrations/gnu_backtrace.py�process_gnu_backtrace+ s zAGnuBacktraceIntegration.setup_once.<locals>.process_gnu_backtracer )r r r r � setup_once( s z"GnuBacktraceIntegration.setup_onceN)�__name__� __module__�__qualname__� identifier�staticmethodr r r r r r % s r c C sB t �� �t�d kr| S |�dd �}|d kr.| S | �dd �}|d krF| S |�dd �}|d kr^| S |D ]�}|�di ��dg �}|s�qb|�dd �}|s�qbg }g }|�� D ]R} t�| �} | r�|�t | � d��| � d�p�d | � d �p�d d d�f� q�|�| � q�|rb|jdd � d� |D ]\}}|�|� �q|�d� d�|�|d<