GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
gdbpy_err_fetch Class Reference

#include "python-internal.h"

Public Member Functions

 gdbpy_err_fetch ()
 
void restore ()
 
gdb::unique_xmalloc_ptr< char > to_string () const
 
gdb::unique_xmalloc_ptr< char > type_to_string () const
 
bool type_matches (PyObject *type) const
 
gdbpy_ref value ()
 

Private Attributes

gdbpy_ref m_error_type
 
gdbpy_ref m_error_value
 
gdbpy_ref m_error_traceback
 

Detailed Description

Definition at line 615 of file python-internal.h.

Constructor & Destructor Documentation

◆ gdbpy_err_fetch()

gdbpy_err_fetch::gdbpy_err_fetch ( )
inline

Definition at line 619 of file python-internal.h.

References error_type(), m_error_traceback, m_error_type, and m_error_value.

Member Function Documentation

◆ restore()

void gdbpy_err_fetch::restore ( )
inline

◆ to_string()

gdb::unique_xmalloc_ptr< char > gdbpy_err_fetch::to_string ( ) const

◆ type_matches()

bool gdbpy_err_fetch::type_matches ( PyObject * type) const
inline

Definition at line 654 of file python-internal.h.

References m_error_type.

Referenced by gdbpy_handle_exception().

◆ type_to_string()

gdb::unique_xmalloc_ptr< char > gdbpy_err_fetch::type_to_string ( ) const

Definition at line 207 of file py-utils.c.

References gdbpy_obj_to_string(), and m_error_type.

◆ value()

gdbpy_ref gdbpy_err_fetch::value ( )
inline

Member Data Documentation

◆ m_error_traceback

gdbpy_ref gdbpy_err_fetch::m_error_traceback
private

Definition at line 668 of file python-internal.h.

Referenced by gdbpy_err_fetch(), and restore().

◆ m_error_type

gdbpy_ref gdbpy_err_fetch::m_error_type
private

Definition at line 668 of file python-internal.h.

Referenced by gdbpy_err_fetch(), restore(), to_string(), type_matches(), and type_to_string().

◆ m_error_value

gdbpy_ref gdbpy_err_fetch::m_error_value
private

Definition at line 668 of file python-internal.h.

Referenced by gdbpy_err_fetch(), restore(), to_string(), and value().


The documentation for this class was generated from the following files: