Nemiver  0.3
Public Types | Public Member Functions | List of all members
nemiver::Output::ResultRecord Class Reference

#include <nmv-dbg-common.h>

Public Types

enum  Kind {
  UNDEFINED =0, DONE, RUNNING, CONNECTED,
  ERROR, EXIT
}
 

Public Member Functions

 ResultRecord ()
 
void clear ()
 blank out everything More...
 
accessors
Kind kind () const
 
void kind (Kind a_in)
 
const map< string, IDebugger::Breakpoint > & breakpoints () const
 
map< string, IDebugger::Breakpoint > & breakpoints ()
 
map< UString, UString > & attrs ()
 
const map< UString, UString > & attrs () const
 
bool has_call_stack () const
 
void has_call_stack (bool a_flag)
 
const vector< IDebugger::Frame > & call_stack () const
 
vector< IDebugger::Frame > & call_stack ()
 
void call_stack (const vector< IDebugger::Frame > &a_in)
 
bool has_register_names () const
 
void has_register_names (bool a_flag)
 
const std::map< IDebugger::register_id_t, UString > & register_names () const
 
void register_names (const std::map< IDebugger::register_id_t, UString > &a_names)
 
bool has_changed_registers () const
 
void has_changed_registers (bool a_flag)
 
const std::list< IDebugger::register_id_t > & changed_registers () const
 
void changed_registers (const std::list< IDebugger::register_id_t > &a_regs)
 
bool has_register_values () const
 
void has_register_values (bool a_flag)
 
const std::map< IDebugger::register_id_t, UString > & register_values () const
 
void register_values (const std::map< IDebugger::register_id_t, UString > &a_regs)
 
bool has_memory_values () const
 
void has_memory_values (bool a_flag)
 
const std::vector< uint8_t > & memory_values () const
 
size_t memory_address () const
 
void memory_values (size_t a_address, const std::vector< uint8_t > &a_values)
 
bool has_asm_instruction_list () const
 
void has_asm_instruction_list (bool a)
 
const std::list< common::Asm > & asm_instruction_list () const
 
void asm_instruction_list (const std::list< common::Asm > &a_asms)
 
const map< int, list< IDebugger::VariableSafePtr > > & frames_parameters () const
 
void frames_parameters (const map< int, list< IDebugger::VariableSafePtr > > &a_in)
 
bool has_frames_parameters () const
 
void has_frames_parameters (bool a_yes)
 
const list< IDebugger::VariableSafePtr > & local_variables () const
 
void local_variables (const list< IDebugger::VariableSafePtr > &a_in)
 
bool has_local_variables () const
 
void has_local_variables (bool a_in)
 
const IDebugger::VariableSafePtrvariable_value () const
 
void variable_value (const IDebugger::VariableSafePtr &a_in)
 
bool has_variable_value () const
 
void has_variable_value (bool a_in)
 
bool has_thread_list () const
 
void has_thread_list (bool a_in)
 
const std::list< int > & thread_list () const
 
void thread_list (const std::list< int > &a_in)
 
bool thread_id_got_selected () const
 
void thread_id_got_selected (bool a_in)
 
int thread_id () const
 
const IDebugger::Frameframe_in_thread () const
 
void thread_id_selected_info (int a_thread_id, const IDebugger::Frame &a_frame_in_thread)
 
bool has_file_list () const
 
void has_file_list (bool a_in)
 
const std::vector< UString > & file_list () const
 
void file_list (const std::vector< UString > &a_in)
 
const IDebugger::Framecurrent_frame_in_core_stack_trace ()
 
void current_frame_in_core_stack_trace (const IDebugger::Frame &a_in)
 
bool has_current_frame_in_core_stack_trace ()
 
void has_current_frame_in_core_stack_trace (bool a_in)
 
bool has_variable ()
 
void has_variable (bool a_in)
 
IDebugger::VariableSafePtr variable () const
 
void variable (const IDebugger::VariableSafePtr a_var)
 
int number_of_variables_deleted () const
 
void number_of_variables_deleted (int a_nb)
 
bool has_variable_children () const
 
void has_variable_children (bool a_in)
 
const vector< IDebugger::VariableSafePtr > & variable_children () const
 
void variable_children (const vector< IDebugger::VariableSafePtr > &a_vars)
 
bool has_var_changes () const
 
void has_var_changes (bool a_in)
 
const list< VarChangePtr > & var_changes () const
 
void var_changes (const list< VarChangePtr > &a_in)
 
int new_num_children () const
 
void new_num_children (int a)
 
const UStringpath_expression () const
 
void path_expression (const UString &a_str)
 
bool has_path_expression () const
 
void has_path_expression (bool a)
 
IDebugger::Variable::Format variable_format () const
 
void variable_format (IDebugger::Variable::Format a_format)
 
bool has_variable_format () const
 
void has_variable_format (bool a_flag)
 

Detailed Description

\debugger result record

this is a notification of gdb that about the last operation he was asked to perform. This basically can be either "running" --> the operation was successfully started, the target is running. "done" --> the synchronous operation was successful. In this case, gdb also returns the result of the operation. "error" the operation failed. In this case, gdb returns the corresponding error message.

Member Enumeration Documentation

◆ Kind

Enumerator
UNDEFINED 
DONE 
RUNNING 
CONNECTED 
ERROR 
EXIT 

Constructor & Destructor Documentation

◆ ResultRecord()

nemiver::Output::ResultRecord::ResultRecord ( )
inline

Member Function Documentation

◆ asm_instruction_list() [1/2]

const std::list<common::Asm>& nemiver::Output::ResultRecord::asm_instruction_list ( ) const
inline

◆ asm_instruction_list() [2/2]

void nemiver::Output::ResultRecord::asm_instruction_list ( const std::list< common::Asm > &  a_asms)
inline

◆ attrs() [1/2]

map<UString, UString>& nemiver::Output::ResultRecord::attrs ( )
inline

◆ attrs() [2/2]

const map<UString, UString>& nemiver::Output::ResultRecord::attrs ( ) const
inline

◆ breakpoints() [1/2]

map<string, IDebugger::Breakpoint>& nemiver::Output::ResultRecord::breakpoints ( )
inline

◆ breakpoints() [2/2]

const map<string, IDebugger::Breakpoint>& nemiver::Output::ResultRecord::breakpoints ( ) const
inline

◆ call_stack() [1/3]

vector<IDebugger::Frame>& nemiver::Output::ResultRecord::call_stack ( )
inline

◆ call_stack() [2/3]

const vector<IDebugger::Frame>& nemiver::Output::ResultRecord::call_stack ( ) const
inline

◆ call_stack() [3/3]

void nemiver::Output::ResultRecord::call_stack ( const vector< IDebugger::Frame > &  a_in)
inline

◆ changed_registers() [1/2]

const std::list<IDebugger::register_id_t>& nemiver::Output::ResultRecord::changed_registers ( ) const
inline

◆ changed_registers() [2/2]

void nemiver::Output::ResultRecord::changed_registers ( const std::list< IDebugger::register_id_t > &  a_regs)
inline

◆ clear()

void nemiver::Output::ResultRecord::clear ( )
inline

◆ current_frame_in_core_stack_trace() [1/2]

const IDebugger::Frame& nemiver::Output::ResultRecord::current_frame_in_core_stack_trace ( )
inline

◆ current_frame_in_core_stack_trace() [2/2]

void nemiver::Output::ResultRecord::current_frame_in_core_stack_trace ( const IDebugger::Frame a_in)
inline

◆ file_list() [1/2]

const std::vector<UString>& nemiver::Output::ResultRecord::file_list ( ) const
inline

◆ file_list() [2/2]

void nemiver::Output::ResultRecord::file_list ( const std::vector< UString > &  a_in)
inline

◆ frame_in_thread()

const IDebugger::Frame& nemiver::Output::ResultRecord::frame_in_thread ( ) const
inline

◆ frames_parameters() [1/2]

const map<int, list<IDebugger::VariableSafePtr> >& nemiver::Output::ResultRecord::frames_parameters ( ) const
inline

◆ frames_parameters() [2/2]

void nemiver::Output::ResultRecord::frames_parameters ( const map< int, list< IDebugger::VariableSafePtr > > &  a_in)
inline

◆ has_asm_instruction_list() [1/2]

bool nemiver::Output::ResultRecord::has_asm_instruction_list ( ) const
inline

◆ has_asm_instruction_list() [2/2]

void nemiver::Output::ResultRecord::has_asm_instruction_list ( bool  a)
inline

◆ has_call_stack() [1/2]

bool nemiver::Output::ResultRecord::has_call_stack ( ) const
inline

◆ has_call_stack() [2/2]

void nemiver::Output::ResultRecord::has_call_stack ( bool  a_flag)
inline

◆ has_changed_registers() [1/2]

bool nemiver::Output::ResultRecord::has_changed_registers ( ) const
inline

◆ has_changed_registers() [2/2]

void nemiver::Output::ResultRecord::has_changed_registers ( bool  a_flag)
inline

◆ has_current_frame_in_core_stack_trace() [1/2]

bool nemiver::Output::ResultRecord::has_current_frame_in_core_stack_trace ( )
inline

◆ has_current_frame_in_core_stack_trace() [2/2]

void nemiver::Output::ResultRecord::has_current_frame_in_core_stack_trace ( bool  a_in)
inline

◆ has_file_list() [1/2]

bool nemiver::Output::ResultRecord::has_file_list ( ) const
inline

◆ has_file_list() [2/2]

void nemiver::Output::ResultRecord::has_file_list ( bool  a_in)
inline

◆ has_frames_parameters() [1/2]

bool nemiver::Output::ResultRecord::has_frames_parameters ( ) const
inline

◆ has_frames_parameters() [2/2]

void nemiver::Output::ResultRecord::has_frames_parameters ( bool  a_yes)
inline

◆ has_local_variables() [1/2]

bool nemiver::Output::ResultRecord::has_local_variables ( ) const
inline

◆ has_local_variables() [2/2]

void nemiver::Output::ResultRecord::has_local_variables ( bool  a_in)
inline

◆ has_memory_values() [1/2]

bool nemiver::Output::ResultRecord::has_memory_values ( ) const
inline

◆ has_memory_values() [2/2]

void nemiver::Output::ResultRecord::has_memory_values ( bool  a_flag)
inline

◆ has_path_expression() [1/2]

bool nemiver::Output::ResultRecord::has_path_expression ( ) const
inline

◆ has_path_expression() [2/2]

void nemiver::Output::ResultRecord::has_path_expression ( bool  a)
inline

◆ has_register_names() [1/2]

bool nemiver::Output::ResultRecord::has_register_names ( ) const
inline

◆ has_register_names() [2/2]

void nemiver::Output::ResultRecord::has_register_names ( bool  a_flag)
inline

◆ has_register_values() [1/2]

bool nemiver::Output::ResultRecord::has_register_values ( ) const
inline

◆ has_register_values() [2/2]

void nemiver::Output::ResultRecord::has_register_values ( bool  a_flag)
inline

◆ has_thread_list() [1/2]

bool nemiver::Output::ResultRecord::has_thread_list ( ) const
inline

◆ has_thread_list() [2/2]

void nemiver::Output::ResultRecord::has_thread_list ( bool  a_in)
inline

◆ has_var_changes() [1/2]

bool nemiver::Output::ResultRecord::has_var_changes ( ) const
inline

◆ has_var_changes() [2/2]

void nemiver::Output::ResultRecord::has_var_changes ( bool  a_in)
inline

◆ has_variable() [1/2]

bool nemiver::Output::ResultRecord::has_variable ( )
inline

◆ has_variable() [2/2]

void nemiver::Output::ResultRecord::has_variable ( bool  a_in)
inline

◆ has_variable_children() [1/2]

bool nemiver::Output::ResultRecord::has_variable_children ( ) const
inline

◆ has_variable_children() [2/2]

void nemiver::Output::ResultRecord::has_variable_children ( bool  a_in)
inline

◆ has_variable_format() [1/2]

bool nemiver::Output::ResultRecord::has_variable_format ( ) const
inline

◆ has_variable_format() [2/2]

void nemiver::Output::ResultRecord::has_variable_format ( bool  a_flag)
inline

◆ has_variable_value() [1/2]

bool nemiver::Output::ResultRecord::has_variable_value ( ) const
inline

◆ has_variable_value() [2/2]

void nemiver::Output::ResultRecord::has_variable_value ( bool  a_in)
inline

◆ kind() [1/2]

Kind nemiver::Output::ResultRecord::kind ( ) const
inline

◆ kind() [2/2]

void nemiver::Output::ResultRecord::kind ( Kind  a_in)
inline

◆ local_variables() [1/2]

const list<IDebugger::VariableSafePtr>& nemiver::Output::ResultRecord::local_variables ( ) const
inline

◆ local_variables() [2/2]

void nemiver::Output::ResultRecord::local_variables ( const list< IDebugger::VariableSafePtr > &  a_in)
inline

◆ memory_address()

size_t nemiver::Output::ResultRecord::memory_address ( ) const
inline

◆ memory_values() [1/2]

const std::vector<uint8_t>& nemiver::Output::ResultRecord::memory_values ( ) const
inline

◆ memory_values() [2/2]

void nemiver::Output::ResultRecord::memory_values ( size_t  a_address,
const std::vector< uint8_t > &  a_values 
)
inline

◆ new_num_children() [1/2]

int nemiver::Output::ResultRecord::new_num_children ( ) const
inline

◆ new_num_children() [2/2]

void nemiver::Output::ResultRecord::new_num_children ( int  a)
inline

◆ number_of_variables_deleted() [1/2]

int nemiver::Output::ResultRecord::number_of_variables_deleted ( ) const
inline

◆ number_of_variables_deleted() [2/2]

void nemiver::Output::ResultRecord::number_of_variables_deleted ( int  a_nb)
inline

◆ path_expression() [1/2]

const UString& nemiver::Output::ResultRecord::path_expression ( ) const
inline

◆ path_expression() [2/2]

void nemiver::Output::ResultRecord::path_expression ( const UString a_str)
inline

◆ register_names() [1/2]

const std::map<IDebugger::register_id_t, UString>& nemiver::Output::ResultRecord::register_names ( ) const
inline

◆ register_names() [2/2]

void nemiver::Output::ResultRecord::register_names ( const std::map< IDebugger::register_id_t, UString > &  a_names)
inline

◆ register_values() [1/2]

const std::map<IDebugger::register_id_t, UString>& nemiver::Output::ResultRecord::register_values ( ) const
inline

◆ register_values() [2/2]

void nemiver::Output::ResultRecord::register_values ( const std::map< IDebugger::register_id_t, UString > &  a_regs)
inline

◆ thread_id()

int nemiver::Output::ResultRecord::thread_id ( ) const
inline

◆ thread_id_got_selected() [1/2]

bool nemiver::Output::ResultRecord::thread_id_got_selected ( ) const
inline

◆ thread_id_got_selected() [2/2]

void nemiver::Output::ResultRecord::thread_id_got_selected ( bool  a_in)
inline

◆ thread_id_selected_info()

void nemiver::Output::ResultRecord::thread_id_selected_info ( int  a_thread_id,
const IDebugger::Frame a_frame_in_thread 
)
inline

◆ thread_list() [1/2]

const std::list<int>& nemiver::Output::ResultRecord::thread_list ( ) const
inline

◆ thread_list() [2/2]

void nemiver::Output::ResultRecord::thread_list ( const std::list< int > &  a_in)
inline

◆ var_changes() [1/2]

const list<VarChangePtr>& nemiver::Output::ResultRecord::var_changes ( ) const
inline

Returns a list of the changes that occurred on a given variable. Whenever a user issues IDebugger::list_changed_variables on a given variable, the result is this m_var_changes. Each element of the list represents a change in the value of the given variable (like a change in one of its scalar members, a new member, or removal of last N members), or a change in one of the children of the variables.

◆ var_changes() [2/2]

void nemiver::Output::ResultRecord::var_changes ( const list< VarChangePtr > &  a_in)
inline

Sets a list of the changes that occurred on a given variable. Whenever a user issues IDebugger::list_changed_variables on a given variable, the result is this m_var_changes. Each element of the list represents a change in the value of the given variable (like a change in one of its scalar members, a new member, or removal of last N members), or a change in one of the children of the variables.

◆ variable() [1/2]

IDebugger::VariableSafePtr nemiver::Output::ResultRecord::variable ( ) const
inline

◆ variable() [2/2]

void nemiver::Output::ResultRecord::variable ( const IDebugger::VariableSafePtr  a_var)
inline

◆ variable_children() [1/2]

const vector<IDebugger::VariableSafePtr>& nemiver::Output::ResultRecord::variable_children ( ) const
inline

◆ variable_children() [2/2]

void nemiver::Output::ResultRecord::variable_children ( const vector< IDebugger::VariableSafePtr > &  a_vars)
inline

◆ variable_format() [1/2]

IDebugger::Variable::Format nemiver::Output::ResultRecord::variable_format ( ) const
inline

◆ variable_format() [2/2]

void nemiver::Output::ResultRecord::variable_format ( IDebugger::Variable::Format  a_format)
inline

◆ variable_value() [1/2]

const IDebugger::VariableSafePtr& nemiver::Output::ResultRecord::variable_value ( ) const
inline

◆ variable_value() [2/2]

void nemiver::Output::ResultRecord::variable_value ( const IDebugger::VariableSafePtr a_in)
inline

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