GDB (xrefs)
|
Public Member Functions | |
__init__ (self, name, hint, frame, var_list) | |
to_object (self) | |
has_children (self) | |
child_count (self) | |
fetch_one_child (self, idx) | |
__init__ (self, name, hint, frame, var_list) | |
to_object (self) | |
has_children (self) | |
child_count (self) | |
fetch_one_child (self, idx) | |
![]() | |
reset_children (self) | |
fetch_children (self, start, count) | |
find_child_by_name (self, name) | |
reset_children (self) | |
fetch_children (self, start, count) | |
find_child_by_name (self, name) | |
Public Attributes | |
hint = hint | |
frame = frame | |
inf_frame = frame.inferior_frame() | |
func = frame.function() | |
line = frame.line() | |
var_list = tuple(var_list) | |
![]() | |
ref = len(all_variables) | |
name = name | |
list | children = None |
dict | by_name = {} |
name_counts = defaultdict(lambda: 1) | |
int | by_name = 1 |
Additional Inherited Members | |
![]() | |
_compute_name (self, name) | |
_compute_name (self, name) | |
gdb.dap.scopes._ScopeReference.__init__ | ( | self, | |
name, | |||
hint, | |||
frame, | |||
var_list ) |
Create a new variable reference with the given name. NAME is a string or None. None means this does not have a name, e.g., the result of expression evaluation.
Reimplemented from gdb.dap.varref.BaseReference.
Reimplemented in gdb.dap.scopes._RegisterReference, and gdb.dap.scopes._RegisterReference.
Definition at line 63 of file scopes.py.
References gdb.dap.scopes._ScopeReference.__init__().
Referenced by gdb.dap.scopes._ScopeReference.__init__().
gdb.dap.scopes._ScopeReference.__init__ | ( | self, | |
name, | |||
hint, | |||
frame, | |||
var_list ) |
Create a new variable reference with the given name. NAME is a string or None. None means this does not have a name, e.g., the result of expression evaluation.
Reimplemented from gdb.dap.varref.BaseReference.
Reimplemented in gdb.dap.scopes._RegisterReference, and gdb.dap.scopes._RegisterReference.
Definition at line 63 of file scopes.py.
References gdb.dap.scopes._ScopeReference.__init__(), btrace_frame_cache.frame, dwarf2_debug_sections.frame, dwarf2_per_bfd.frame, gdb.dap.scopes._ScopeReference.frame, gdb.FrameDecorator.FrameVars.frame, gdb.FrameDecorator.SymValueWrapper.frame, gdb.FrameIterator.FrameIterator.frame, mi_parse.frame, varobj_root.frame, func, aarch64_prologue_cache.func, c_data.func, cmd_list_element.func, dump_context.func, gdb.dap.scopes._ScopeReference.func, interp_factory.func, linux_find_memory_regions_data.func, protocol_feature.func, s390_unwind_cache.func, scheme_function.func, tramp_frame_cache.func, with_catch_data.func, gdb.dap.scopes._ScopeReference.hint, gdb.dap.scopes._ScopeReference.inf_frame, command_line.line, current_source_location.line(), deprecated_dis_line_entry.line, dis_line_entry.line, dwarf2_debug_sections.line, dwarf2_per_bfd.line, dwo_sections.line, dwp_sections.line, gdb.dap.scopes._ScopeReference.line, gdb.FrameDecorator._FrameDecoratorBase.line(), gdb_line_mapping.line, last_displayed_symtab_info_type.line(), linetable_entry.line, linetable_entry_object.line, macro_for_each_data.line, macro_scope.line, symbol.line(), symtab_and_line.line, tui_source_element.line, virtual_v1_dwo_sections.line, and gdb.dap.scopes._ScopeReference.var_list.
gdb.dap.scopes._ScopeReference.child_count | ( | self | ) |
Return the number of children of this variable.
Reimplemented from gdb.dap.varref.BaseReference.
Definition at line 88 of file scopes.py.
References gdb.dap.scopes._ScopeReference.var_list.
Referenced by gdb.dap.varref.BaseReference.fetch_children(), and gdb.dap.varref.VariableReference.to_object().
gdb.dap.scopes._ScopeReference.child_count | ( | self | ) |
Return the number of children of this variable.
Reimplemented from gdb.dap.varref.BaseReference.
Definition at line 88 of file scopes.py.
References gdb.dap.scopes._ScopeReference.var_list.
Referenced by gdb.dap.varref.BaseReference.fetch_children(), and gdb.dap.varref.VariableReference.to_object().
gdb.dap.scopes._ScopeReference.fetch_one_child | ( | self, | |
index ) |
Fetch one child of this variable. INDEX is the index of the child to fetch. This should return a tuple of the form (NAME, VALUE), where NAME is the name of the variable, and VALUE is a gdb.Value.
Reimplemented from gdb.dap.varref.BaseReference.
Reimplemented in gdb.dap.scopes._RegisterReference, and gdb.dap.scopes._RegisterReference.
Definition at line 92 of file scopes.py.
References btrace_frame_cache.frame, dwarf2_debug_sections.frame, dwarf2_per_bfd.frame, gdb.dap.scopes._ScopeReference.frame, gdb.FrameDecorator.FrameVars.frame, gdb.FrameDecorator.SymValueWrapper.frame, gdb.FrameIterator.FrameIterator.frame, mi_parse.frame, varobj_root.frame, and gdb.dap.scopes._ScopeReference.var_list.
Referenced by gdb.dap.varref.BaseReference.fetch_children().
gdb.dap.scopes._ScopeReference.fetch_one_child | ( | self, | |
index ) |
Fetch one child of this variable. INDEX is the index of the child to fetch. This should return a tuple of the form (NAME, VALUE), where NAME is the name of the variable, and VALUE is a gdb.Value.
Reimplemented from gdb.dap.varref.BaseReference.
Reimplemented in gdb.dap.scopes._RegisterReference, and gdb.dap.scopes._RegisterReference.
Definition at line 92 of file scopes.py.
References btrace_frame_cache.frame, dwarf2_debug_sections.frame, dwarf2_per_bfd.frame, gdb.dap.scopes._ScopeReference.frame, gdb.FrameDecorator.FrameVars.frame, gdb.FrameDecorator.SymValueWrapper.frame, gdb.FrameIterator.FrameIterator.frame, mi_parse.frame, varobj_root.frame, and gdb.dap.scopes._ScopeReference.var_list.
Referenced by gdb.dap.varref.BaseReference.fetch_children().
gdb.dap.scopes._ScopeReference.has_children | ( | self | ) |
Return True if this object has children.
Reimplemented from gdb.dap.varref.BaseReference.
Definition at line 85 of file scopes.py.
Referenced by gdb.dap.varref.VariableReference._update_value(), and gdb.dap.varref.BaseReference.to_object().
gdb.dap.scopes._ScopeReference.has_children | ( | self | ) |
Return True if this object has children.
Reimplemented from gdb.dap.varref.BaseReference.
Definition at line 85 of file scopes.py.
Referenced by gdb.dap.varref.VariableReference._update_value(), and gdb.dap.varref.BaseReference.to_object().
gdb.dap.scopes._ScopeReference.to_object | ( | self | ) |
Return a dictionary that describes this object for DAP. The resulting object is a starting point that can be filled in further. See the Scope or Variable types in the spec
Reimplemented from gdb.dap.varref.BaseReference.
Definition at line 74 of file scopes.py.
References gdb.dap.scopes._ScopeReference.hint, command_line.line, current_source_location.line(), deprecated_dis_line_entry.line, dis_line_entry.line, dwarf2_debug_sections.line, dwarf2_per_bfd.line, dwo_sections.line, dwp_sections.line, gdb.dap.scopes._ScopeReference.line, gdb.FrameDecorator._FrameDecoratorBase.line(), gdb_line_mapping.line, last_displayed_symtab_info_type.line(), linetable_entry.line, linetable_entry_object.line, macro_for_each_data.line, macro_scope.line, symbol.line(), symtab_and_line.line, tui_source_element.line, virtual_v1_dwo_sections.line, gdb.dap.scopes._ScopeReference.to_object(), and gdb.dap.scopes._ScopeReference.var_list.
gdb.dap.scopes._ScopeReference.to_object | ( | self | ) |
Return a dictionary that describes this object for DAP. The resulting object is a starting point that can be filled in further. See the Scope or Variable types in the spec
Reimplemented from gdb.dap.varref.BaseReference.
Definition at line 74 of file scopes.py.
References gdb.dap.scopes._ScopeReference.hint, command_line.line, current_source_location.line(), deprecated_dis_line_entry.line, dis_line_entry.line, dwarf2_debug_sections.line, dwarf2_per_bfd.line, dwo_sections.line, dwp_sections.line, gdb.dap.scopes._ScopeReference.line, gdb.FrameDecorator._FrameDecoratorBase.line(), gdb_line_mapping.line, last_displayed_symtab_info_type.line(), linetable_entry.line, linetable_entry_object.line, macro_for_each_data.line, macro_scope.line, symbol.line(), symtab_and_line.line, tui_source_element.line, virtual_v1_dwo_sections.line, gdb.dap.scopes._ScopeReference.to_object(), and gdb.dap.scopes._ScopeReference.var_list.
Referenced by gdb.dap.scopes._ScopeReference.to_object().
gdb.dap.scopes._ScopeReference.frame = frame |
Definition at line 66 of file scopes.py.
Referenced by gdb.dap.scopes._ScopeReference.__init__(), gdb.FrameDecorator.FrameVars.__init__(), gdb.FrameDecorator.SymValueWrapper.__init__(), gdb.FrameIterator.FrameIterator.__init__(), gdb.FrameIterator.FrameIterator.__next__(), gdb.FrameDecorator.FrameVars.fetch_frame_args(), gdb.FrameDecorator.FrameVars.fetch_frame_locals(), gdb.dap.scopes._ScopeReference.fetch_one_child(), and gdb.FrameDecorator.SymValueWrapper.value().
gdb.dap.scopes._ScopeReference.func = frame.function() |
Definition at line 68 of file scopes.py.
Referenced by gdb.dap.scopes._ScopeReference.__init__().
gdb.dap.scopes._ScopeReference.hint = hint |
Definition at line 65 of file scopes.py.
Referenced by gdb.dap.scopes._ScopeReference.__init__(), and gdb.dap.scopes._ScopeReference.to_object().
gdb.dap.scopes._ScopeReference.inf_frame = frame.inferior_frame() |
Definition at line 67 of file scopes.py.
Referenced by gdb.dap.scopes._ScopeReference.__init__(), and gdb.dap.scopes._RegisterReference.fetch_one_child().
gdb.dap.scopes._ScopeReference.line = frame.line() |
Definition at line 69 of file scopes.py.
Referenced by gdb.dap.scopes._ScopeReference.__init__(), and gdb.dap.scopes._ScopeReference.to_object().
gdb.dap.scopes._ScopeReference.var_list = tuple(var_list) |