# HG changeset patch # User Rik # Date 1390596502 28800 # Node ID bb162f81881d066f642be50fb4d52880bb2991db # Parent e33f706468bc8648aa4f3fda0383f9e92f5878dd Correctly return all breakpoints when called with no arguments (bug #41338). * debug.cc (Fdbstatus): Check whether debugging mode is on, and restrict list of breakpoints to current file if it is. diff -r e33f706468bc -r bb162f81881d libinterp/corefcn/debug.cc --- a/libinterp/corefcn/debug.cc Fri Jan 24 12:28:33 2014 -0800 +++ b/libinterp/corefcn/debug.cc Fri Jan 24 12:48:22 2014 -0800 @@ -752,11 +752,14 @@ } else { - octave_user_code *dbg_fcn = get_user_code (); - if (dbg_fcn) + if (Vdebugging) { - symbol_name = dbg_fcn->name (); - fcn_list(0) = symbol_name; + octave_user_code *dbg_fcn = get_user_code (); + if (dbg_fcn) + { + symbol_name = dbg_fcn->name (); + fcn_list(0) = symbol_name; + } } bp_list = bp_table::get_breakpoint_list (fcn_list);