GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions
gdb.unwinder Namespace Reference

Classes

class  FrameId
 
class  Unwinder
 

Functions

 register_unwinder (locus, unwinder, replace=False)
 

Detailed Description

Unwinder class and register_unwinder function.

Function Documentation

◆ register_unwinder()

gdb.unwinder.register_unwinder ( locus,
unwinder,
replace = False )
Register unwinder in given locus.

The unwinder is prepended to the locus's unwinders list. Unwinder
name should be unique.

Arguments:
    locus: Either an objfile, progspace, or None (in which case
           the unwinder is registered globally).
    unwinder: An object of a gdb.Unwinder subclass
    replace: If True, replaces existing unwinder with the same name.
             Otherwise, raises exception if unwinder with the same
             name already exists.

Returns:
    Nothing.

Raises:
    RuntimeError: Unwinder name is not unique
    TypeError: Bad locus type

Definition at line 98 of file unwinder.py.