Go to the documentation of this file.
26 #ifndef __NMV_DEBUGGER_UTILS_H__
27 #define __NMV_DEBUGGER_UTILS_H__
32 NEMIVER_BEGIN_NAMESPACE (
nemiver)
33 NEMIVER_BEGIN_NAMESPACE (debugger_utils)
58 std::
string &a_ws_str);
60 template<class ostream_type>
64 bool a_print_var_name);
68 std::
string &a_out_str);
72 template<class ostream_type>
74 operator<< (ostream_type &a_out, const
IDebugger::Variable &a_var);
86 template<class ostream_type>
91 bool a_print_var_name)
93 LOG_FUNCTION_SCOPE_NORMAL_DD;
95 std::string ws_string;
100 if (a_print_var_name)
101 a_os << ws_string << a_var.name ();
103 if (!a_var.members ().empty ()) {
104 a_os <<
"\n" << ws_string <<
"{";
105 IDebugger::VariableList::const_iterator it;
106 for (it = a_var.members ().begin ();
107 it != a_var.members ().end ();
112 a_os <<
"\n" << ws_string <<
"}";
114 if (a_print_var_name)
116 a_os << a_var.value ();
120 template<
class ostream_type>
128 NEMIVER_END_NAMESPACE (debugger_utils)
129 NEMIVER_END_NAMESPACE (
nemiver)
131 #endif // __NMV_DEBUGGER_UTILS_H__
Definition: nmv-asm-instr.h:201
Definition: nmv-address.h:31
Definition: nmv-asm-instr.h:127
ostream_type & operator<<(ostream_type &a_out, const IDebugger::Variable &a_var)
Definition: nmv-debugger-utils.h:122
void null_const_ustring_slot(const UString &)
void null_disass_slot(const common::DisassembleInfo &, const std::list< common::Asm > &)
Definition: nmv-ustring.h:45
void dump_variable_value(const IDebugger::Variable &a_var)
void null_const_variable_list_slot(const IDebugger::VariableList &)
std::string variable_format_to_string(IDebugger::Variable::Format)
IDebuggerSafePtr load_debugger_iface_with_confmgr()
void null_breakpoints_slot(const map< string, IDebugger::Breakpoint > &)
Definition: nmv-i-debugger.h:465
void null_frame_vector_slot(const vector< IDebugger::Frame > &)
a debugger engine.
Definition: nmv-i-debugger.h:74
void gen_white_spaces(int a_nb_ws, std::string &a_ws_str)
void null_const_variable_slot(const IDebugger::VariableSafePtr &)
void null_frame_args_slot(const map< int, IDebugger::VariableList > &)
Definition: nmv-safe-ptr.h:71
IDebuggerSafePtr load_debugger_iface_with_gconf()
Definition: nmv-proc-list-dialog.h:32
IDebugger::Variable::Format string_to_variable_format(const std::string &)