# HG changeset patch # User John W. Eaton # Date 1232728105 18000 # Node ID 6adcafc70c321cc2299a98535d86840099be79e8 # Parent 188d38a553c73e5b99e3d1b7c338a6661e548c87 toplev.cc (octave_call_stack::do_goto_caller_frame): allow caller frame to be base frame diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-01-23 John W. Eaton + + * toplev.cc (octave_call_stack::do_goto_caller_frame): + Also allow caller frame to be base frame, not just user code. + 2009-01-23 Jaroslav Hajek * gripes.cc (gripe_indexed_cs_list, gripe_invalid_inquiry_subscript): diff --git a/src/toplev.cc b/src/toplev.cc --- a/src/toplev.cc +++ b/src/toplev.cc @@ -437,7 +437,7 @@ octave_function *f = elt.fcn; - if (f && f->is_user_code ()) + if (frame == 0 || (f && f->is_user_code ())) { if (! skipped) // We found the current user code frame, so skip it.