Mercurial > octave
diff libinterp/parse-tree/pt-eval.h @ 27204:9a3e92d02a03
eliminate direct access to call stack in variables functions
* pt-eval.h, pt-eval.cc (tree_evaluator::caller_function,
tree_evaluator::curr_fcn_unwind_protect_frame): New functions.
* variables.cc (curr_fcn_unwind_protect_frame, Fmlock, Fmunlock,
Fmislocked, F__varval__): Eliminate direct access to call stack.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 01 Apr 2019 18:21:27 +0000 |
parents | 79065f9d5553 |
children | 6648d1ae05fe |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.h Mon Apr 01 18:00:15 2019 +0000 +++ b/libinterp/parse-tree/pt-eval.h Mon Apr 01 18:21:27 2019 +0000 @@ -488,19 +488,15 @@ octave_user_code * current_user_code (void) const; - // Line in user code caller. - int caller_user_code_line (void) const; - - // Column in user code caller. - int caller_user_code_column (void) const; - - octave_user_code * caller_user_code (size_t nskip = 0) const; + unwind_protect * curr_fcn_unwind_protect_frame (void) const; // Current function that we are debugging. octave_user_code * debug_user_code (void) const; octave_function * current_function (void) const; + octave_function * caller_function (void) const; + bool goto_frame (size_t n = 0, bool verbose = false); void restore_frame (size_t n);