Mercurial > hg > octave-lyh
diff src/debug.cc @ 7923:c3d21b9b94b6
eliminate octave_call_stack member functions caller_user_script and caller_user_function, and unused difference_type args
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Jul 2008 15:43:10 -0400 |
parents | 3e4c9b69069d |
children | 0ef13e15319b |
line wrap: on
line diff
--- a/src/debug.cc +++ b/src/debug.cc @@ -67,7 +67,7 @@ octave_user_code *dbg_fcn = 0; if (fname.empty ()) - dbg_fcn = octave_call_stack::caller_user_function (); + dbg_fcn = octave_call_stack::caller_user_code (); else { octave_value fcn = symbol_table::find_function (fname); @@ -881,10 +881,8 @@ tree::last_line = -1; - // Next to skip 2 here. One for the oct-file dbstep and - // another for the function we actually want to step out of. tree::break_function = - octave_call_stack::caller_user_code (2); + octave_call_stack::caller_user_code (1); tree::last_break_function = octave_call_stack::caller_user_code ();