# HG changeset patch # User Rik # Date 1390695313 28800 # Node ID ed1e63425f79b775a7284533abe4657ef05246c9 # Parent 5b7b12e16523c1c5c41d28e36204b943f925a7ba Error out of dbtype when start or end line number <= 0. * debug.cc (do_dbtype): Issue error message and then break out of case statement to end of function. diff -r 5b7b12e16523 -r ed1e63425f79 libinterp/corefcn/debug.cc --- a/libinterp/corefcn/debug.cc Sat Jan 25 01:38:15 2014 -0800 +++ b/libinterp/corefcn/debug.cc Sat Jan 25 16:15:13 2014 -0800 @@ -1007,7 +1007,10 @@ end = atoi (end_str.c_str ()); if (std::min (start, end) <= 0) - error ("dbtype: start and end lines must be >= 1\n"); + { + error ("dbtype: start and end lines must be >= 1\n"); + break; + } if (start <= end) do_dbtype (octave_stdout, dbg_fcn->fcn_file_name (),