Public Types | |
enum | execution_mode { EX_NORMAL = 0 , EX_CONTINUE = 1 , EX_QUIT = 2 , EX_QUIT_ALL = 3 } |
Public Member Functions | |
debugger (interpreter &interp, std::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> ") |
int | server_loop (void) |
Private Attributes | |
execution_mode | m_execution_mode |
bool | m_in_debug_repl |
interpreter & | m_interpreter |
std::size_t | m_level |
Definition at line 99 of file pt-eval.cc.
Enumerator | |
---|---|
EX_NORMAL | |
EX_CONTINUE | |
EX_QUIT | |
EX_QUIT_ALL |
Definition at line 103 of file pt-eval.cc.
|
inline |
Definition at line 111 of file pt-eval.cc.
|
inline |
Definition at line 122 of file pt-eval.cc.
References EX_CONTINUE, and m_execution_mode.
|
inline |
Definition at line 124 of file pt-eval.cc.
References EX_QUIT, EX_QUIT_ALL, and m_execution_mode.
|
inline |
Definition at line 120 of file pt-eval.cc.
References m_in_debug_repl.
bool debugger::quitting_debugger | ( | void | ) | const |
Definition at line 506 of file pt-eval.cc.
References EX_QUIT, EX_QUIT_ALL, interpreter::in_top_level_repl(), m_execution_mode, m_interpreter, m_level, and interpreter::server_mode().
Referenced by repl(), and server_loop().
void debugger::repl | ( | const std::string & | prompt = "debug> " | ) |
Definition at line 260 of file pt-eval.cc.
References action_container::add(), quit_debug_exception::all(), application::app(), tree_evaluator::current_call_stack_frame_number(), tree_evaluator::current_line(), tree_evaluator::current_user_code(), tree_evaluator::current_user_frame(), tree_evaluator::dbstep_flag(), tree_evaluator::debug_frame(), command_editor::decode_prompt_string(), error_system::display_exception(), event_manager::enter_debugger_event(), command_editor::erase_empty_line(), EX_CONTINUE, event_manager::execute_in_debugger_event(), octave_user_code::fcn_file_name(), application::forced_interactive(), octave_user_code::get_code_line(), interpreter::get_error_system(), interpreter::get_evaluator(), interpreter::get_event_manager(), input_reader::get_input(), interpreter::get_input_system(), tree_evaluator::get_parser(), tree_evaluator::goto_frame(), input_system::gud_mode(), interpreter::interactive(), command_editor::interrupt(), m_execution_mode, m_in_debug_repl, m_interpreter, m_level, octave_function::name(), octave_completion_matches_called, octave_stdout, event_manager::pop_event_queue(), action_container::protect_var(), input_system::PS1(), input_system::PS2(), event_manager::push_event_queue(), tree_evaluator::quiet_breakpoint_flag(), quitting_debugger(), interpreter::recover_from_exception(), base_parser::reset(), tree_evaluator::restore_frame(), push_parser::run(), error_system::save_exception(), server_loop(), interpreter::server_mode(), tree_evaluator::set_parser(), input_system::set_PS1(), event_manager::set_workspace(), and base_parser::statement_list().
Referenced by tree_evaluator::enter_debugger().
int debugger::server_loop | ( | void | ) |
Definition at line 147 of file pt-eval.cc.
References quit_debug_exception::all(), tree_evaluator::dbstep_flag(), error_system::display_exception(), EX_CONTINUE, interpreter::get_error_system(), interpreter::get_evaluator(), interpreter::interactive(), m_execution_mode, m_interpreter, octave_interrupt_state, octave_stdout, quitting_debugger(), interpreter::recover_from_exception(), release_unreferenced_dynamic_libraries(), command_editor::run_event_hooks(), error_system::save_exception(), tree_evaluator::server_mode(), and sleep().
Referenced by repl().
|
private |
Definition at line 139 of file pt-eval.cc.
Referenced by dbcont(), dbquit(), quitting_debugger(), repl(), and server_loop().
|
private |
Definition at line 140 of file pt-eval.cc.
Referenced by in_debug_repl(), and repl().
|
private |
Definition at line 136 of file pt-eval.cc.
Referenced by quitting_debugger(), repl(), and server_loop().
|
private |
Definition at line 138 of file pt-eval.cc.
Referenced by quitting_debugger(), and repl().