comparison libinterp/interpfcn/debug.cc @ 16531:f3a63fdbd725

finish botched changeset 7ca7e7d5eb91
author John W. Eaton <jwe@octave.org>
date Wed, 17 Apr 2013 03:09:09 -0400
parents 7ca7e7d5eb91
children 645672f1c873
comparison
equal deleted inserted replaced
16530:7ca7e7d5eb91 16531:f3a63fdbd725
287 tree_statement_list *cmds = dbg_fcn->body (); 287 tree_statement_list *cmds = dbg_fcn->body ();
288 288
289 std::string file = dbg_fcn->fcn_file_name (); 289 std::string file = dbg_fcn->fcn_file_name ();
290 290
291 if (cmds) 291 if (cmds)
292 retval = cmds->add_breakpoint (file, line); 292 {
293 retval = cmds->add_breakpoint (file, line);
294
295 for (intmap_iterator p = retval.begin (); p != retval.end (); p++)
296 {
297 if (p->second != 0)
298 {
299 bp_set.insert (fname);
300 break;
301 }
302 }
303 }
293 } 304 }
294 else 305 else
295 error ("add_breakpoint: unable to find the requested function\n"); 306 error ("add_breakpoint: unable to find the requested function\n");
296 307
297 tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; 308 tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging;