GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
gdb.dap.scopes._ScopeReference Class Reference
Inheritance diagram for gdb.dap.scopes._ScopeReference:
gdb.dap.varref.BaseReference gdb.dap.varref.BaseReference gdb.dap.scopes._RegisterReference gdb.dap.scopes._RegisterReference

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)
 
- Public Member Functions inherited from gdb.dap.varref.BaseReference
 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
 
 frame
 
 inf_frame
 
 func
 
 line
 
 var_list
 
- Public Attributes inherited from gdb.dap.varref.BaseReference
 ref
 
 name
 
 children
 
 by_name
 
 name_counts
 

Additional Inherited Members

- Protected Member Functions inherited from gdb.dap.varref.BaseReference
 _compute_name (self, name)
 
 _compute_name (self, name)
 

Detailed Description

Definition at line 62 of file scopes.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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__().

◆ __init__() [2/2]

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__(), dwarf2_per_bfd.frame, dwarf2_debug_sections.frame, mi_parse.frame, gdb.dap.scopes._ScopeReference.frame, gdb.FrameDecorator.SymValueWrapper.frame, gdb.FrameDecorator.FrameVars.frame, gdb.FrameIterator.FrameIterator.frame, btrace_frame_cache.frame, varobj_root.frame, aarch64_prologue_cache.func, cmd_list_element.func, dump_context.func, scheme_function.func, with_catch_data.func, interp_factory.func, linux_find_memory_regions_data.func, gdb.dap.scopes._ScopeReference.func, func, protocol_feature.func, c_data.func, s390_unwind_cache.func, tramp_frame_cache.func, gdb.dap.scopes._ScopeReference.hint, gdb.dap.scopes._ScopeReference.inf_frame, gdb_line_mapping.line, command_line.line, deprecated_dis_line_entry.line, dis_line_entry.line, dwo_sections.line, dwp_sections.line, virtual_v1_dwo_sections.line, dwarf2_per_bfd.line, dwarf2_debug_sections.line, macro_scope.line, macro_for_each_data.line, gdb.dap.scopes._ScopeReference.line, linetable_entry_object.line, current_source_location.line(), last_displayed_symtab_info_type.line(), symbol.line(), gdb.FrameDecorator._FrameDecoratorBase.line(), linetable_entry.line, symtab_and_line.line, tui_source_element.line, and gdb.dap.scopes._ScopeReference.var_list.

Member Function Documentation

◆ child_count() [1/2]

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().

◆ child_count() [2/2]

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().

◆ fetch_one_child() [1/2]

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 dwarf2_per_bfd.frame, dwarf2_debug_sections.frame, mi_parse.frame, gdb.dap.scopes._ScopeReference.frame, gdb.FrameDecorator.SymValueWrapper.frame, gdb.FrameDecorator.FrameVars.frame, gdb.FrameIterator.FrameIterator.frame, btrace_frame_cache.frame, varobj_root.frame, and gdb.dap.scopes._ScopeReference.var_list.

Referenced by gdb.dap.varref.BaseReference.fetch_children().

◆ fetch_one_child() [2/2]

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 dwarf2_per_bfd.frame, dwarf2_debug_sections.frame, mi_parse.frame, gdb.dap.scopes._ScopeReference.frame, gdb.FrameDecorator.SymValueWrapper.frame, gdb.FrameDecorator.FrameVars.frame, gdb.FrameIterator.FrameIterator.frame, btrace_frame_cache.frame, varobj_root.frame, and gdb.dap.scopes._ScopeReference.var_list.

Referenced by gdb.dap.varref.BaseReference.fetch_children().

◆ has_children() [1/2]

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().

◆ has_children() [2/2]

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().

◆ to_object() [1/2]

gdb.dap.scopes._ScopeReference.to_object ( self)

◆ to_object() [2/2]

gdb.dap.scopes._ScopeReference.to_object ( self)

Member Data Documentation

◆ frame

gdb.dap.scopes._ScopeReference.frame

◆ func

gdb.dap.scopes._ScopeReference.func

Definition at line 68 of file scopes.py.

Referenced by gdb.dap.scopes._ScopeReference.__init__().

◆ hint

gdb.dap.scopes._ScopeReference.hint

◆ inf_frame

gdb.dap.scopes._ScopeReference.inf_frame

◆ line

gdb.dap.scopes._ScopeReference.line

◆ var_list

gdb.dap.scopes._ScopeReference.var_list

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