Mercurial > hg > octave-terminal
changeset 7539:3e107d73aeb4
debug.cc: use find_function instead of find_user_function
author | John Swensen |
---|---|
date | Thu, 28 Feb 2008 02:17:05 -0500 |
parents | 2c4b0cbda85a |
children | 3422f39573b1 |
files | src/ChangeLog src/debug.cc |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-02-27 John P. Swensen <jpswensen@gmail.com> + + * debug.cc (get_user_function): Call symtab::find_function instead + of symtab::find_user_function. + 2008-02-27 John W. Eaton <jwe@octave.org> * oct-stream.cc (do_read): Stop reading if seek fails.
--- a/src/debug.cc +++ b/src/debug.cc @@ -71,9 +71,10 @@ dbg_fcn = octave_call_stack::caller_user_function (); else { - octave_value fcn = symbol_table::find_user_function (fname); + octave_value fcn = symbol_table::find_function (fname); - dbg_fcn = fcn.user_function_value (); + if (fcn.is_defined ()) + dbg_fcn = fcn.user_function_value (); } return dbg_fcn;