GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "call-stack.h"
Classes | |
class | stack_frame |
Public Types | |
typedef std::deque < stack_frame > ::const_iterator | const_iterator |
typedef std::deque < stack_frame > ::const_reverse_iterator | const_reverse_iterator |
typedef std::deque < stack_frame >::iterator | iterator |
typedef std::deque < stack_frame > ::reverse_iterator | reverse_iterator |
Protected Member Functions | |
octave_call_stack (void) | |
Static Private Member Functions | |
static void | cleanup_instance (void) |
Private Attributes | |
std::deque< stack_frame > | cs |
size_t | curr_frame |
Static Private Attributes | |
static octave_call_stack * | instance = 0 |
Definition at line 39 of file call-stack.h.
typedef std::deque<stack_frame>::const_iterator octave_call_stack::const_iterator |
Definition at line 87 of file call-stack.h.
typedef std::deque<stack_frame>::const_reverse_iterator octave_call_stack::const_reverse_iterator |
Definition at line 90 of file call-stack.h.
typedef std::deque<stack_frame>::iterator octave_call_stack::iterator |
Definition at line 86 of file call-stack.h.
typedef std::deque<stack_frame>::reverse_iterator octave_call_stack::reverse_iterator |
Definition at line 89 of file call-stack.h.
|
inlineprotected |
Definition at line 45 of file call-stack.h.
Referenced by create_instance().
|
inlinestatic |
Definition at line 208 of file call-stack.h.
References do_all_scripts(), instance, and instance_ok().
Referenced by octave::tree_evaluator::visit_statement().
|
inlinestatic |
Definition at line 276 of file call-stack.h.
References do_backtrace(), instance, and instance_ok().
Referenced by file_editor_tab::exit_debug_and_clear(), and verror().
|
inlinestatic |
Definition at line 285 of file call-stack.h.
References do_backtrace(), instance, and instance_ok().
|
inlinestatic |
Definition at line 294 of file call-stack.h.
References do_backtrace_frames(), instance, and instance_ok().
Referenced by pr_where().
|
inlinestatic |
Definition at line 304 of file call-stack.h.
References do_backtrace_frames(), instance, and instance_ok().
|
inlinestatic |
Definition at line 126 of file call-stack.h.
References do_caller(), instance, and instance_ok().
Referenced by called_from_builtin(), and do_who().
|
inlinestatic |
Definition at line 172 of file call-stack.h.
References do_caller_user_code(), instance, and instance_ok().
Referenced by error_1(), get_debug_input(), local_functions(), maybe_enter_debugger(), verror(), and warning_1().
|
inlinestatic |
Definition at line 184 of file call-stack.h.
References do_caller_user_code_column(), instance, and instance_ok().
|
inlinestatic |
Definition at line 178 of file call-stack.h.
References do_caller_user_code_line(), instance, and instance_ok().
Referenced by get_debug_input().
|
inlinestaticprivate |
|
inlinestatic |
Definition at line 319 of file call-stack.h.
References do_clear(), instance, and instance_ok().
|
static |
Definition at line 83 of file call-stack.cc.
References singleton_cleanup_list::add(), cleanup_instance(), do_push(), instance, octave_call_stack(), and symbol_table::top_scope().
Referenced by instance_ok().
|
inlinestatic |
Definition at line 108 of file call-stack.h.
References do_current(), instance, and instance_ok().
Referenced by mex::function_name(), get_class_context(), octave_class::get_current_method_class(), get_current_shlib(), octave_class::in_class_method(), octave_classdef_superclass_ref::is_constructed_object(), is_method_executing(), octave_fcn_inline::octave_fcn_inline(), print_usage(), tree_anon_fcn_handle::rvalue1(), and verror().
|
inlinestatic |
Definition at line 120 of file call-stack.h.
References do_current_column(), instance, and instance_ok().
Referenced by octave::tree_evaluator::do_unwind_protect_cleanup_code().
|
inlinestatic |
Definition at line 152 of file call-stack.h.
References do_current_context(), instance, and instance_ok().
|
inlinestatic |
Definition at line 131 of file call-stack.h.
References do_current_frame(), instance, and instance_ok().
Referenced by octave::tree_evaluator::do_breakpoint(), maybe_enter_debugger(), octave::tree_evaluator::visit_return_command(), and warning_1().
|
inlinestatic |
Definition at line 114 of file call-stack.h.
References do_current_line(), instance, and instance_ok().
Referenced by octave::tree_evaluator::do_unwind_protect_cleanup_code(), and get_debug_input().
|
inlinestatic |
Definition at line 147 of file call-stack.h.
References do_current_scope(), instance, and instance_ok().
|
inlinestatic |
Definition at line 190 of file call-stack.h.
References do_debug_user_code(), instance, and instance_ok().
Referenced by get_user_code().
|
inlinestatic |
Definition at line 202 of file call-stack.h.
References do_debug_user_code_column(), instance, and instance_ok().
|
inlinestatic |
Definition at line 196 of file call-stack.h.
References do_debug_user_code_line(), instance, and instance_ok().
|
private |
Definition at line 332 of file call-stack.cc.
References cs, f, octave_base_value::is_user_script(), octave_call_stack::stack_frame::m_fcn, p, and retval.
Referenced by all_scripts().
|
private |
Definition at line 402 of file call-stack.cc.
References bt_fields, column, octave_map::contents(), context, do_backtrace_frames(), octave_call_stack::stack_frame::fcn_file_name(), octave_call_stack::stack_frame::fcn_name(), file, k, octave_call_stack::stack_frame::m_column, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_line, octave_call_stack::stack_frame::m_scope, name, p, and retval.
Referenced by backtrace().
|
private |
Definition at line 368 of file call-stack.cc.
References cs, do_num_user_code_frames(), f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_fcn, p, and retval.
Referenced by backtrace_frames(), and do_backtrace().
|
inlineprivate |
Definition at line 340 of file call-stack.h.
Referenced by caller().
|
private |
Definition at line 162 of file call-stack.cc.
References cs, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_fcn, p, and retval.
Referenced by caller_user_code().
|
private |
Definition at line 216 of file call-stack.cc.
References cs, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_column, octave_call_stack::stack_frame::m_fcn, p, and retval.
Referenced by caller_user_code_column().
|
private |
Definition at line 190 of file call-stack.cc.
References cs, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_fcn, octave_call_stack::stack_frame::m_line, p, and retval.
Referenced by caller_user_code_line().
|
inlineprivate |
Definition at line 475 of file call-stack.h.
Referenced by clear().
|
inlineprivate |
Definition at line 404 of file call-stack.h.
References curr_frame, octave_call_stack::stack_frame::m_fcn, and retval.
Referenced by current().
|
private |
Definition at line 110 of file call-stack.cc.
References cs, curr_frame, octave_call_stack::stack_frame::m_column, and retval.
Referenced by current_column().
|
inlineprivate |
Definition at line 357 of file call-stack.h.
References curr_frame.
Referenced by current_context().
|
inlineprivate |
|
private |
Definition at line 96 of file call-stack.cc.
References cs, curr_frame, octave_call_stack::stack_frame::m_line, and retval.
Referenced by current_line().
|
inlineprivate |
|
private |
Definition at line 242 of file call-stack.cc.
References cs, curr_frame, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_fcn, and retval.
Referenced by debug_user_code().
|
private |
Definition at line 301 of file call-stack.cc.
References cs, curr_frame, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_column, octave_call_stack::stack_frame::m_fcn, and retval.
Referenced by debug_user_code_column().
|
private |
Definition at line 270 of file call-stack.cc.
References cs, curr_frame, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_fcn, octave_call_stack::stack_frame::m_line, and retval.
Referenced by debug_user_code_line().
|
inlineprivate |
Definition at line 372 of file call-stack.h.
References octave_call_stack::stack_frame::m_fcn, and retval.
Referenced by element().
|
private |
Definition at line 577 of file call-stack.cc.
References cs, curr_frame, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_prev, octave_call_stack::stack_frame::m_scope, symbol_table::set_scope_and_context(), and tmp.
Referenced by goto_base_frame().
|
private |
Definition at line 539 of file call-stack.cc.
References cs, curr_frame, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_fcn, octave_call_stack::stack_frame::m_prev, octave_call_stack::stack_frame::m_scope, symbol_table::set_scope_and_context(), and tmp.
Referenced by goto_caller_frame().
Definition at line 441 of file call-stack.cc.
References cs, curr_frame, octave_call_stack::stack_frame::fcn_file_name(), octave_call_stack::stack_frame::fcn_name(), octave_call_stack::stack_frame::m_column, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_line, octave_call_stack::stack_frame::m_scope, octave_stdout, retval, and symbol_table::set_scope_and_context().
Referenced by goto_frame().
Definition at line 469 of file call-stack.cc.
References cs, curr_frame, f, octave_call_stack::stack_frame::fcn_file_name(), octave_call_stack::stack_frame::fcn_name(), octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_fcn, octave_call_stack::stack_frame::m_line, octave_call_stack::stack_frame::m_scope, octave_stdout, retval, and symbol_table::set_scope_and_context().
Referenced by goto_frame_relative().
|
private |
Definition at line 125 of file call-stack.cc.
References cs, curr_frame, f, found, octave_base_value::is_user_code(), k, p, and retval.
Referenced by do_backtrace_frames(), and num_user_code_frames().
|
inlineprivate |
Definition at line 463 of file call-stack.h.
References curr_frame, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_prev, octave_call_stack::stack_frame::m_scope, and symbol_table::set_scope_and_context().
Referenced by pop().
|
inlineprivate |
Definition at line 395 of file call-stack.h.
References curr_frame, and symbol_table::set_scope_and_context().
Referenced by create_instance(), and push().
|
inlineprivate |
Definition at line 438 of file call-stack.h.
References c, and octave_call_stack::stack_frame::m_column.
Referenced by set_column().
|
inlineprivate |
Definition at line 428 of file call-stack.h.
References octave_call_stack::stack_frame::m_line.
Referenced by set_line().
Definition at line 417 of file call-stack.h.
References c, octave_call_stack::stack_frame::m_column, and octave_call_stack::stack_frame::m_line.
Referenced by set_location().
|
inlineprivate |
Definition at line 347 of file call-stack.h.
Referenced by size().
|
inlinestatic |
Definition at line 166 of file call-stack.h.
References do_element(), instance, and instance_ok().
|
static |
Definition at line 362 of file call-stack.cc.
References bt_fields.
Referenced by initialize_last_error_stack().
|
inlinestatic |
Definition at line 270 of file call-stack.h.
References do_goto_base_frame(), instance, and instance_ok().
Referenced by mexGetVariable(), and mexPutVariable().
|
inlinestatic |
Definition at line 264 of file call-stack.h.
References do_goto_caller_frame(), instance, and instance_ok().
Definition at line 248 of file call-stack.h.
References do_goto_frame(), instance, instance_ok(), and verbose.
Referenced by restore_frame().
Definition at line 258 of file call-stack.h.
References do_goto_frame_relative(), instance, instance_ok(), and verbose.
|
inlinestatic |
Definition at line 94 of file call-stack.h.
References create_instance(), error(), instance, and retval.
Referenced by all_scripts(), backtrace(), backtrace_frames(), caller(), caller_user_code(), caller_user_code_column(), caller_user_code_line(), clear(), current(), current_column(), current_context(), current_frame(), current_line(), current_scope(), debug_user_code(), debug_user_code_column(), debug_user_code_line(), element(), goto_base_frame(), goto_caller_frame(), goto_frame(), goto_frame_relative(), num_user_code_frames(), pop(), push(), set_column(), set_line(), set_location(), and size().
|
inlinestatic |
Definition at line 141 of file call-stack.h.
References do_num_user_code_frames(), instance, and instance_ok().
|
inlinestatic |
Definition at line 313 of file call-stack.h.
References do_pop(), instance, and instance_ok().
Referenced by octave_builtin::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_user_function::do_multi_index_op(), do_who(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), octave_fcn_handle::load_hdf5(), mexGetVariable(), mexPutVariable(), and read_mat5_binary_element().
|
inlinestatic |
Definition at line 214 of file call-stack.h.
References context, do_push(), instance, and instance_ok().
Referenced by octave_builtin::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_user_function::do_multi_index_op(), do_who(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), octave_fcn_handle::load_hdf5(), and read_mat5_binary_element().
|
inlinestatic |
Definition at line 223 of file call-stack.h.
References context, do_push(), instance, and instance_ok().
|
inlinestatic |
Definition at line 253 of file call-stack.h.
References goto_frame().
|
inlinestatic |
Definition at line 242 of file call-stack.h.
References do_set_column(), instance, and instance_ok().
Referenced by octave::tree_evaluator::do_unwind_protect_cleanup_code().
|
inlinestatic |
Definition at line 236 of file call-stack.h.
References do_set_line(), instance, and instance_ok().
Referenced by octave::tree_evaluator::do_unwind_protect_cleanup_code().
Definition at line 230 of file call-stack.h.
References do_set_location(), instance, and instance_ok().
Referenced by octave_user_function::do_multi_index_op(), octave::tree_evaluator::visit_do_until_command(), octave::tree_evaluator::visit_if_command_list(), and octave::tree_evaluator::visit_statement().
|
inlinestatic |
Definition at line 136 of file call-stack.h.
References do_size(), instance, and instance_ok().
|
private |
Definition at line 328 of file call-stack.h.
Referenced by do_all_scripts(), do_backtrace_frames(), do_caller_user_code(), do_caller_user_code_column(), do_caller_user_code_line(), do_current_column(), do_current_line(), do_debug_user_code(), do_debug_user_code_column(), do_debug_user_code_line(), do_goto_base_frame(), do_goto_caller_frame(), do_goto_frame(), do_goto_frame_relative(), and do_num_user_code_frames().
|
private |
Definition at line 330 of file call-stack.h.
Referenced by do_current(), do_current_column(), do_current_context(), do_current_frame(), do_current_line(), do_current_scope(), do_debug_user_code(), do_debug_user_code_column(), do_debug_user_code_line(), do_goto_base_frame(), do_goto_caller_frame(), do_goto_frame(), do_goto_frame_relative(), do_num_user_code_frames(), do_pop(), and do_push().
|
staticprivate |
Definition at line 332 of file call-stack.h.
Referenced by all_scripts(), backtrace(), backtrace_frames(), caller(), caller_user_code(), caller_user_code_column(), caller_user_code_line(), cleanup_instance(), clear(), create_instance(), current(), current_column(), current_context(), current_frame(), current_line(), current_scope(), debug_user_code(), debug_user_code_column(), debug_user_code_line(), element(), goto_base_frame(), goto_caller_frame(), goto_frame(), goto_frame_relative(), instance_ok(), num_user_code_frames(), pop(), push(), set_column(), set_line(), set_location(), and size().