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 567 of file python-internal.h.

Constructor & Destructor Documentation

◆ gdbpy_err_fetch()

gdbpy_err_fetch::gdbpy_err_fetch ( )
inline

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

References error_type().

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 606 of file python-internal.h.

Referenced by gdbpy_handle_exception().

◆ type_to_string()

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

Definition at line 206 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 620 of file python-internal.h.

◆ m_error_type

gdbpy_ref gdbpy_err_fetch::m_error_type
private

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

Referenced by to_string(), and type_to_string().

◆ m_error_value

gdbpy_ref gdbpy_err_fetch::m_error_value
private

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

Referenced by to_string().


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