Mercurial > octave-nkf
changeset 18373:73f81a7509a2
Fix dblist problems when used in subfunctions.
* debug.cc (Fdblist): Use fcn_file_name as input to do_dbtype.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 24 Jan 2014 11:46:00 -0800 |
parents | f9bc7b7125e3 |
children | 12eb4eb90486 |
files | libinterp/corefcn/debug.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/debug.cc Fri Jan 24 04:20:09 2014 -0500 +++ b/libinterp/corefcn/debug.cc Fri Jan 24 11:46:00 2014 -0800 @@ -1096,13 +1096,13 @@ { int l_min = std::max (l - n/2, 0); int l_max = l + n/2; - do_dbtype (octave_stdout, dbg_fcn->name (), l_min, l-1); + do_dbtype (octave_stdout, name, l_min, l-1); std::string line = get_file_line (name, l); if (! line.empty ()) octave_stdout << l << "-->\t" << line << std::endl; - do_dbtype (octave_stdout, dbg_fcn->name (), l+1, l_max); + do_dbtype (octave_stdout, name, l+1, l_max); } } else