Public Types | |
enum | execution_mode { EX_NORMAL = 0 , EX_CONTINUE = 1 , EX_QUIT = 2 , EX_QUIT_ALL = 3 } |
Public Member Functions | |
debugger (interpreter &interp, size_t level) | |
void | dbcont (void) |
void | dbquit (bool all=false) |
bool | in_debug_repl (void) const |
bool | quitting_debugger (void) const |
void | repl (const std::string &prompt="debug> ") |
Private Attributes | |
size_t | m_debug_frame |
execution_mode | m_execution_mode |
bool | m_in_debug_repl |
interpreter & | m_interpreter |
size_t | m_level |
Definition at line 97 of file pt-eval.cc.
Enumerator | |
---|---|
EX_NORMAL | |
EX_CONTINUE | |
EX_QUIT | |
EX_QUIT_ALL |
Definition at line 101 of file pt-eval.cc.
|
inline |
Definition at line 109 of file pt-eval.cc.
|
inline |
Definition at line 118 of file pt-eval.cc.
References EX_CONTINUE, and m_execution_mode.
|
inline |
Definition at line 123 of file pt-eval.cc.
References EX_QUIT, EX_QUIT_ALL, and m_execution_mode.
|
inline |
Definition at line 116 of file pt-eval.cc.
References m_in_debug_repl.
bool octave::debugger::quitting_debugger | ( | void | ) | const |
Definition at line 367 of file pt-eval.cc.
References EX_QUIT, EX_QUIT_ALL, octave::interpreter::in_top_level_repl(), m_execution_mode, m_interpreter, and m_level.
Referenced by repl().
void octave::debugger::repl | ( | const std::string & | prompt = "debug> " | ) |
Definition at line 143 of file pt-eval.cc.
References octave::action_container::add(), octave::action_container::add_method(), octave::quit_debug_exception::all(), octave::application::app(), octave::tree_evaluator::current_call_stack_frame_number(), octave::tree_evaluator::current_line(), octave::tree_evaluator::current_user_code(), octave::tree_evaluator::current_user_frame(), octave::tree_evaluator::dbstep_flag(), octave::tree_evaluator::debug_frame(), octave::command_editor::decode_prompt_string(), octave::error_system::display_exception(), octave::event_manager::enter_debugger_event(), octave::command_editor::erase_empty_line(), EX_CONTINUE, octave::event_manager::execute_in_debugger_event(), octave_user_code::fcn_file_name(), octave::application::forced_interactive(), octave_user_code::get_code_line(), octave::interpreter::get_error_system(), octave::interpreter::get_evaluator(), octave::interpreter::get_event_manager(), octave::input_reader::get_input(), octave::interpreter::get_input_system(), octave::tree_evaluator::goto_frame(), octave::input_system::gud_mode(), octave::interpreter::interactive(), octave::command_editor::interrupt(), m_execution_mode, m_in_debug_repl, m_interpreter, m_level, octave_function::name(), octave_completion_matches_called, octave::action_container::protect_var(), octave::input_system::PS1(), octave::input_system::PS2(), octave::tree_evaluator::quiet_breakpoint_flag(), quitting_debugger(), octave::interpreter::recover_from_exception(), octave::base_parser::reset(), octave::tree_evaluator::restore_frame(), retval, octave::push_parser::run(), octave::error_system::save_exception(), octave::input_system::set_PS1(), octave::event_manager::set_workspace(), and octave::base_parser::statement_list().
Referenced by octave::tree_evaluator::enter_debugger().
|
private |
Definition at line 138 of file pt-eval.cc.
|
private |
Definition at line 139 of file pt-eval.cc.
Referenced by dbcont(), dbquit(), quitting_debugger(), and repl().
|
private |
Definition at line 140 of file pt-eval.cc.
Referenced by in_debug_repl(), and repl().
|
private |
Definition at line 135 of file pt-eval.cc.
Referenced by quitting_debugger(), and repl().
|
private |
Definition at line 137 of file pt-eval.cc.
Referenced by quitting_debugger(), and repl().