| |
- builtins.Exception(builtins.BaseException)
-
- GdbError
- builtins.RuntimeError(builtins.Exception)
-
- error
-
- MemoryError
- builtins.object
-
- Architecture
- Block
- BlockIterator
- Breakpoint
-
- FinishBreakpoint
- Command
- Event
-
- ClearObjFilesEvent
- ExitedEvent
- InferiorCallPostEvent
- InferiorCallPreEvent
- MemoryChangedEvent
- NewObjFileEvent
- RegisterChangedEvent
- ThreadEvent
-
- ContinueEvent
- StopEvent
-
- BreakpointEvent
- SignalEvent
- EventRegistry
- Field
- Frame
- Function
- Inferior
- InferiorThread
- LineTable
- LineTableEntry
- LineTableIterator
- Membuf
- Objfile
- Parameter
- PendingFrame
- Progspace
- Symbol
- Symtab
- Symtab_and_line
- Type
- TypeIterator
- UnwindInfo
- Value
- _GdbFile(builtins.object)
-
- GdbOutputErrorFile
- GdbOutputFile
class Architecture(builtins.object) |
|
GDB architecture object |
|
Methods defined here:
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- disassemble(...)
- disassemble (start_pc [, end_pc [, count]]) -> List.
Return a list of at most COUNT disassembled instructions from START_PC to
END_PC.
- name(...)
- name () -> String.
Return the name of the architecture as a string value.
|
class Block(builtins.object) |
|
GDB block object |
|
Methods defined here:
- __iter__(self, /)
- Implement iter(self).
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- is_valid(...)
- is_valid () -> Boolean.
Return true if this block is valid, false if not.
Data descriptors defined here:
- end
- End address of the block.
- function
- Symbol that names the block, or None.
- global_block
- Block containing the global block.
- is_global
- Whether this block is a global block.
- is_static
- Whether this block is a static block.
- start
- Start address of the block.
- static_block
- Block containing the static block.
- superblock
- Block containing the block, or None.
|
class Breakpoint(builtins.object) |
|
GDB breakpoint object |
|
Methods defined here:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- delete(...)
- Delete the underlying GDB breakpoint.
- is_valid(...)
- Return true if this breakpoint is valid, false if not.
Data descriptors defined here:
- commands
- Commands of the breakpoint, as specified by the user.
- condition
- Condition of the breakpoint, as specified by the user,or None if no condition set.
- enabled
- Boolean telling whether the breakpoint is enabled.
- expression
- Expression of the breakpoint, as specified by the user.
- hit_count
- Number of times the breakpoint has been hit.
Can be set to zero to clear the count. No other value is valid
when setting this property.
- ignore_count
- Number of times this breakpoint should be automatically continued.
- location
- Location of the breakpoint, as specified by the user.
- number
- Breakpoint's number assigned by GDB.
- silent
- Boolean telling whether the breakpoint is silent.
- task
- Thread ID for the breakpoint.
If the value is a task ID (integer), then this is an Ada task-specific breakpoint.
If the value is None, then this breakpoint is not task-specific.
No other type of value can be used.
- temporary
- Whether this breakpoint is a temporary breakpoint.
- thread
- Thread ID for the breakpoint.
If the value is a thread ID (integer), then this is a thread-specific breakpoint.
If the value is None, then this breakpoint is not thread-specific.
No other type of value can be used.
- type
- Type of breakpoint.
- visible
- Whether the breakpoint is visible to the user.
|
class FinishBreakpoint(Breakpoint) |
|
GDB finish breakpoint object |
|
- Method resolution order:
- FinishBreakpoint
- Breakpoint
- builtins.object
Methods defined here:
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
Data descriptors defined here:
- return_value
- gdb.Value object representing the return value, if any. None otherwise.
Methods inherited from Breakpoint:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- delete(...)
- Delete the underlying GDB breakpoint.
- is_valid(...)
- Return true if this breakpoint is valid, false if not.
Data descriptors inherited from Breakpoint:
- commands
- Commands of the breakpoint, as specified by the user.
- condition
- Condition of the breakpoint, as specified by the user,or None if no condition set.
- enabled
- Boolean telling whether the breakpoint is enabled.
- expression
- Expression of the breakpoint, as specified by the user.
- hit_count
- Number of times the breakpoint has been hit.
Can be set to zero to clear the count. No other value is valid
when setting this property.
- ignore_count
- Number of times this breakpoint should be automatically continued.
- location
- Location of the breakpoint, as specified by the user.
- number
- Breakpoint's number assigned by GDB.
- silent
- Boolean telling whether the breakpoint is silent.
- task
- Thread ID for the breakpoint.
If the value is a task ID (integer), then this is an Ada task-specific breakpoint.
If the value is None, then this breakpoint is not task-specific.
No other type of value can be used.
- temporary
- Whether this breakpoint is a temporary breakpoint.
- thread
- Thread ID for the breakpoint.
If the value is a thread ID (integer), then this is a thread-specific breakpoint.
If the value is None, then this breakpoint is not thread-specific.
No other type of value can be used.
- type
- Type of breakpoint.
- visible
- Whether the breakpoint is visible to the user.
|
class Frame(builtins.object) |
|
GDB frame object |
|
Methods defined here:
- __eq__(self, value, /)
- Return self==value.
- __ge__(self, value, /)
- Return self>=value.
- __gt__(self, value, /)
- Return self>value.
- __le__(self, value, /)
- Return self<=value.
- __lt__(self, value, /)
- Return self<value.
- __ne__(self, value, /)
- Return self!=value.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __str__(self, /)
- Return str(self).
- architecture(...)
- architecture () -> gdb.Architecture.
Return the architecture of the frame.
- block(...)
- block () -> gdb.Block.
Return the frame's code block.
- find_sal(...)
- find_sal () -> gdb.Symtab_and_line.
Return the frame's symtab and line.
- function(...)
- function () -> gdb.Symbol.
Returns the symbol for the function corresponding to this frame.
- is_valid(...)
- is_valid () -> Boolean.
Return true if this frame is valid, false if not.
- name(...)
- name () -> String.
Return the function name of the frame, or None if it can't be determined.
- newer(...)
- newer () -> gdb.Frame.
Return the frame called by this frame.
- older(...)
- older () -> gdb.Frame.
Return the frame that called this frame.
- pc(...)
- pc () -> Long.
Return the frame's resume address.
- read_register(...)
- read_register (register_name) -> gdb.Value
Return the value of the register in the frame.
- read_var(...)
- read_var (variable) -> gdb.Value.
Return the value of the variable in this frame.
- select(...)
- Select this frame as the user's current frame.
- type(...)
- type () -> Integer.
Return the type of the frame.
- unwind_stop_reason(...)
- unwind_stop_reason () -> Integer.
Return the reason why it's not possible to find frames older than this.
Data and other attributes defined here:
- __hash__ = None
|
class GdbError(builtins.Exception) |
|
Common base class for all non-exit exceptions. |
|
- Method resolution order:
- GdbError
- builtins.Exception
- builtins.BaseException
- builtins.object
Data descriptors defined here:
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from builtins.Exception:
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from builtins.BaseException:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __reduce__(...)
- helper for pickle
- __repr__(self, /)
- Return repr(self).
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- __setstate__(...)
- __str__(self, /)
- Return str(self).
- with_traceback(...)
- Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.
Data descriptors inherited from builtins.BaseException:
- __cause__
- exception cause
- __context__
- exception context
- __dict__
- __suppress_context__
- __traceback__
- args
|
class Inferior(builtins.object) |
|
GDB inferior object |
|
Methods defined here:
- is_valid(...)
- is_valid () -> Boolean.
Return true if this inferior is valid, false if not.
- read_memory(...)
- read_memory (address, length) -> buffer
Return a buffer object for reading from the inferior's memory.
- search_memory(...)
- search_memory (address, length, pattern) -> long
Return a long with the address of a match, or None.
- threads(...)
- Return all the threads of this inferior.
- write_memory(...)
- write_memory (address, buffer [, length])
Write the given buffer object to the inferior's memory.
Data descriptors defined here:
- num
- ID of inferior, as assigned by GDB.
- pid
- PID of inferior, as assigned by the OS.
- was_attached
- True if the inferior was created using 'attach'.
|
class InferiorThread(builtins.object) |
|
GDB thread object |
|
Methods defined here:
- is_exited(...)
- is_exited () -> Boolean
Return whether the thread is exited.
- is_running(...)
- is_running () -> Boolean
Return whether the thread is running.
- is_stopped(...)
- is_stopped () -> Boolean
Return whether the thread is stopped.
- is_valid(...)
- is_valid () -> Boolean.
Return true if this inferior thread is valid, false if not.
- switch(...)
- switch ()
Makes this the GDB selected thread.
Data descriptors defined here:
- global_num
- Global number of the thread, as assigned by GDB.
- inferior
- The Inferior object this thread belongs to.
- name
- The name of the thread, as set by the user or the OS.
- num
- Per-inferior number of the thread, as assigned by GDB.
- ptid
- ID of the thread, as assigned by the OS.
|
class LineTable(builtins.object) |
|
GDB line table object |
|
Methods defined here:
- __iter__(self, /)
- Implement iter(self).
- has_line(...)
- has_line (lineno) -> Boolean
Return TRUE if this line has executable information, FALSE if not.
- is_valid(...)
- is_valid () -> Boolean.
Return True if this LineTable is valid, False if not.
- line(...)
- line (lineno) -> Tuple
Return executable locations for a given source line.
- source_lines(...)
- source_lines () -> List
Return a list of all executable source lines.
|
class MemoryError(error) |
|
Unspecified run-time error. |
|
- Method resolution order:
- MemoryError
- error
- builtins.RuntimeError
- builtins.Exception
- builtins.BaseException
- builtins.object
Data descriptors inherited from error:
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from builtins.RuntimeError:
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from builtins.BaseException:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __reduce__(...)
- helper for pickle
- __repr__(self, /)
- Return repr(self).
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- __setstate__(...)
- __str__(self, /)
- Return str(self).
- with_traceback(...)
- Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.
Data descriptors inherited from builtins.BaseException:
- __cause__
- exception cause
- __context__
- exception context
- __dict__
- __suppress_context__
- __traceback__
- args
|
class Objfile(builtins.object) |
|
GDB objfile object |
|
Methods defined here:
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- add_separate_debug_file(...)
- add_separate_debug_file (file_name).
Add FILE_NAME to the list of files containing debug info for the objfile.
- is_valid(...)
- is_valid () -> Boolean.
Return true if this object file is valid, false if not.
Data descriptors defined here:
- __dict__
- The __dict__ for this objfile.
- build_id
- The objfile's build id, or None.
- filename
- The objfile's filename, or None.
- frame_filters
- Frame Filters.
- frame_unwinders
- Frame Unwinders
- owner
- The objfile owner of separate debug info objfiles, or None.
- pretty_printers
- Pretty printers.
- progspace
- The objfile's progspace, or None.
- type_printers
- Type printers.
- username
- The name of the objfile as provided by the user, or None.
- xmethods
- Debug methods.
|
class Parameter(builtins.object) |
|
GDB parameter object |
|
Methods defined here:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
|
class Progspace(builtins.object) |
|
GDB progspace object |
|
Methods defined here:
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
Data descriptors defined here:
- __dict__
- The __dict__ for this progspace.
- filename
- The progspace's main filename, or None.
- frame_filters
- Frame filters.
- frame_unwinders
- Frame unwinders.
- pretty_printers
- Pretty printers.
- type_printers
- Type printers.
- xmethods
- Debug methods.
|
class Symbol(builtins.object) |
|
GDB symbol object |
|
Methods defined here:
- __str__(self, /)
- Return str(self).
- is_valid(...)
- is_valid () -> Boolean.
Return true if this symbol is valid, false if not.
- value(...)
- value ([frame]) -> gdb.Value
Return the value of the symbol.
Data descriptors defined here:
- addr_class
- Address class of the symbol.
- is_argument
- True if the symbol is an argument of a function.
- is_constant
- True if the symbol is a constant.
- is_function
- True if the symbol is a function or method.
- is_variable
- True if the symbol is a variable.
- line
- The source line number at which the symbol was defined.
- linkage_name
- Name of the symbol, as used by the linker (i.e., may be mangled).
- name
- Name of the symbol, as it appears in the source code.
- needs_frame
- True if the symbol requires a frame for evaluation.
- print_name
- Name of the symbol in a form suitable for output.
This is either name or linkage_name, depending on whether the user asked GDB
to display demangled or mangled names.
- symtab
- Symbol table in which the symbol appears.
- type
- Type of the symbol.
|
class Symtab(builtins.object) |
|
GDB symtab object |
|
Methods defined here:
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __str__(self, /)
- Return str(self).
- fullname(...)
- fullname () -> String.
Return the symtab's full source filename.
- global_block(...)
- global_block () -> gdb.Block.
Return the global block of the symbol table.
- is_valid(...)
- is_valid () -> Boolean.
Return true if this symbol table is valid, false if not.
- linetable(...)
- linetable () -> gdb.LineTable.
Return the LineTable associated with this symbol table
- static_block(...)
- static_block () -> gdb.Block.
Return the static block of the symbol table.
Data descriptors defined here:
- filename
- The symbol table's source filename.
- objfile
- The symtab's objfile.
- producer
- The name/version of the program that compiled this symtab.
|
class Symtab_and_line(builtins.object) |
|
GDB symtab_and_line object |
|
Methods defined here:
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __str__(self, /)
- Return str(self).
- is_valid(...)
- is_valid () -> Boolean.
Return true if this symbol table and line is valid, false if not.
Data descriptors defined here:
- last
- Return the symtab_and_line's last address.
- line
- Return the symtab_and_line's line.
- pc
- Return the symtab_and_line's pc.
- symtab
- Symtab object.
|
class Type(builtins.object) |
|
GDB type object |
|
Methods defined here:
- __bool__(self, /)
- self != 0
- __contains__(...)
- T.__contains__(k) -> True if T has a field named k, else False
- __eq__(self, value, /)
- Return self==value.
- __ge__(self, value, /)
- Return self>=value.
- __getitem__(self, key, /)
- Return self[key].
- __gt__(self, value, /)
- Return self>value.
- __iter__(self, /)
- Implement iter(self).
- __le__(self, value, /)
- Return self<=value.
- __len__(self, /)
- Return len(self).
- __lt__(self, value, /)
- Return self<value.
- __ne__(self, value, /)
- Return self!=value.
- __str__(self, /)
- Return str(self).
- array(...)
- array ([LOW_BOUND,] HIGH_BOUND) -> Type
Return a type which represents an array of objects of this type.
The bounds of the array are [LOW_BOUND, HIGH_BOUND] inclusive.
If LOW_BOUND is omitted, a value of zero is used.
- const(...)
- const () -> Type
Return a const variant of this type.
- fields(...)
- fields () -> list
Return a list holding all the fields of this type.
Each field is a gdb.Field object.
- get(...)
- T.get(k[,default]) -> returns field named k in T, if it exists;
otherwise returns default, if supplied, or None if not.
- has_key(...)
- T.has_key(k) -> True if T has a field named k, else False
- items(...)
- items () -> list
Return a list of (name, field) pairs of this type.
Each field is a gdb.Field object.
- iteritems(...)
- iteritems () -> an iterator over the (name, field)
pairs of this type. Each field is a gdb.Field object.
- iterkeys(...)
- iterkeys () -> an iterator over the field names of this type.
- itervalues(...)
- itervalues () -> an iterator over the fields of this type.
Each field is a gdb.Field object.
- keys(...)
- keys () -> list
Return a list holding all the fields names of this type.
- optimized_out(...)
- optimized_out() -> Value
Return optimized out value of this type.
- pointer(...)
- pointer () -> Type
Return a type of pointer to this type.
- range(...)
- range () -> tuple
Return a tuple containing the lower and upper range for this type.
- reference(...)
- reference () -> Type
Return a type of reference to this type.
- strip_typedefs(...)
- strip_typedefs () -> Type
Return a type formed by stripping this type of all typedefs.
- target(...)
- target () -> Type
Return the target type of this type.
- template_argument(...)
- template_argument (arg, [block]) -> Type
Return the type of a template argument.
- unqualified(...)
- unqualified () -> Type
Return a variant of this type without const or volatile attributes.
- values(...)
- values () -> list
Return a list holding all the fields of this type.
Each field is a gdb.Field object.
- vector(...)
- vector ([LOW_BOUND,] HIGH_BOUND) -> Type
Return a type which represents a vector of objects of this type.
The bounds of the array are [LOW_BOUND, HIGH_BOUND] inclusive.
If LOW_BOUND is omitted, a value of zero is used.
Vectors differ from arrays in that if the current language has C-style
arrays, vectors don't decay to a pointer to the first element.
They are first class values.
- volatile(...)
- volatile () -> Type
Return a volatile variant of this type
Data descriptors defined here:
- code
- The code for this type.
- name
- The name for this type, or None.
- sizeof
- The size of this type, in bytes.
- tag
- The tag name for this type, or None.
Data and other attributes defined here:
- __hash__ = None
|
class Value(builtins.object) |
|
GDB value object |
|
Methods defined here:
- __abs__(self, /)
- abs(self)
- __add__(self, value, /)
- Return self+value.
- __and__(self, value, /)
- Return self&value.
- __bool__(self, /)
- self != 0
- __call__(self, /, *args, **kwargs)
- Call self as a function.
- __delitem__(self, key, /)
- Delete self[key].
- __eq__(self, value, /)
- Return self==value.
- __float__(self, /)
- float(self)
- __ge__(self, value, /)
- Return self>=value.
- __getitem__(self, key, /)
- Return self[key].
- __gt__(self, value, /)
- Return self>value.
- __hash__(self, /)
- Return hash(self).
- __int__(self, /)
- int(self)
- __invert__(self, /)
- ~self
- __le__(self, value, /)
- Return self<=value.
- __len__(self, /)
- Return len(self).
- __lshift__(self, value, /)
- Return self<<value.
- __lt__(self, value, /)
- Return self<value.
- __mod__(self, value, /)
- Return self%value.
- __mul__(self, value, /)
- Return self*value.
- __ne__(self, value, /)
- Return self!=value.
- __neg__(self, /)
- -self
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
- __or__(self, value, /)
- Return self|value.
- __pos__(self, /)
- +self
- __pow__(self, value, mod=None, /)
- Return pow(self, value, mod).
- __radd__(self, value, /)
- Return value+self.
- __rand__(self, value, /)
- Return value&self.
- __rlshift__(self, value, /)
- Return value<<self.
- __rmod__(self, value, /)
- Return value%self.
- __rmul__(self, value, /)
- Return value*self.
- __ror__(self, value, /)
- Return value|self.
- __rpow__(self, value, mod=None, /)
- Return pow(value, self, mod).
- __rrshift__(self, value, /)
- Return value>>self.
- __rshift__(self, value, /)
- Return self>>value.
- __rsub__(self, value, /)
- Return value-self.
- __rtruediv__(self, value, /)
- Return value/self.
- __rxor__(self, value, /)
- Return value^self.
- __setitem__(self, key, value, /)
- Set self[key] to value.
- __str__(self, /)
- Return str(self).
- __sub__(self, value, /)
- Return self-value.
- __truediv__(self, value, /)
- Return self/value.
- __xor__(self, value, /)
- Return self^value.
- cast(...)
- Cast the value to the supplied type.
- const_value(...)
- Return a 'const' qualied version of the same value.
- dereference(...)
- Dereferences the value.
- dynamic_cast(...)
- dynamic_cast (gdb.Type) -> gdb.Value
Cast the value to the supplied type, as if by the C++ dynamic_cast operator.
- fetch_lazy(...)
- Fetches the value from the inferior, if it was lazy.
- lazy_string(...)
- lazy_string ([encoding] [, length]) -> lazy_string
Return a lazy string representation of the value.
- reference_value(...)
- Return a value of type TYPE_CODE_REF referencing this value.
- referenced_value(...)
- Return the value referenced by a TYPE_CODE_REF or TYPE_CODE_PTR value.
- reinterpret_cast(...)
- reinterpret_cast (gdb.Type) -> gdb.Value
Cast the value to the supplied type, as if by the C++
reinterpret_cast operator.
- string(...)
- string ([encoding] [, errors] [, length]) -> string
Return Unicode string representation of the value.
Data descriptors defined here:
- address
- The address of the value.
- dynamic_type
- Dynamic type of the value.
- is_lazy
- Boolean telling whether the value is lazy (not fetched yet
from the inferior). A lazy value is fetched when needed, or when
the "fetch_lazy()" method is called.
- is_optimized_out
- Boolean telling whether the value is optimized out (i.e., not available).
- type
- Type of the value.
|
class error(builtins.RuntimeError) |
|
Unspecified run-time error. |
|
- Method resolution order:
- error
- builtins.RuntimeError
- builtins.Exception
- builtins.BaseException
- builtins.object
Data descriptors defined here:
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from builtins.RuntimeError:
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from builtins.BaseException:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __reduce__(...)
- helper for pickle
- __repr__(self, /)
- Return repr(self).
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- __setstate__(...)
- __str__(self, /)
- Return str(self).
- with_traceback(...)
- Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.
Data descriptors inherited from builtins.BaseException:
- __cause__
- exception cause
- __context__
- exception context
- __dict__
- __suppress_context__
- __traceback__
- args
| |