changeset 18376:bb162f81881d

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.
author Rik <rik@octave.org>
date Fri, 24 Jan 2014 12:48:22 -0800
parents e33f706468bc
children 7cb745caaab5
files libinterp/corefcn/debug.cc
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);