Mercurial > hg > octave-max
comparison src/debug.cc @ 10194:d4f813c3f5ed
more debug mode fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 23 Jan 2010 11:19:46 -0500 |
parents | 095a1e670e68 |
children | 0efd486813fe |
comparison
equal
deleted
inserted
replaced
10193:1a4074e277fe | 10194:d4f813c3f5ed |
---|---|
285 } | 285 } |
286 } | 286 } |
287 else | 287 else |
288 error ("add_breakpoint: unable to find the function requested\n"); | 288 error ("add_breakpoint: unable to find the function requested\n"); |
289 | 289 |
290 tree_evaluator::debug_mode = bp_table::have_breakpoints (); | 290 tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; |
291 | 291 |
292 return retval; | 292 return retval; |
293 } | 293 } |
294 | 294 |
295 | 295 |
341 } | 341 } |
342 else | 342 else |
343 error ("remove_breakpoint: unable to find the function requested\n"); | 343 error ("remove_breakpoint: unable to find the function requested\n"); |
344 } | 344 } |
345 | 345 |
346 tree_evaluator::debug_mode = bp_table::have_breakpoints (); | 346 tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; |
347 | 347 |
348 return retval; | 348 return retval; |
349 } | 349 } |
350 | 350 |
351 | 351 |
380 } | 380 } |
381 else if (! silent) | 381 else if (! silent) |
382 error ("remove_all_breakpoint_in_file: " | 382 error ("remove_all_breakpoint_in_file: " |
383 "unable to find the function requested\n"); | 383 "unable to find the function requested\n"); |
384 | 384 |
385 tree_evaluator::debug_mode = bp_table::have_breakpoints (); | 385 tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; |
386 | 386 |
387 return retval; | 387 return retval; |
388 } | 388 } |
389 | 389 |
390 void | 390 void |
392 { | 392 { |
393 for (const_bp_set_iterator it = bp_set.begin (); it != bp_set.end (); it++) | 393 for (const_bp_set_iterator it = bp_set.begin (); it != bp_set.end (); it++) |
394 remove_all_breakpoints_in_file (*it); | 394 remove_all_breakpoints_in_file (*it); |
395 | 395 |
396 | 396 |
397 tree_evaluator::debug_mode = bp_table::have_breakpoints (); | 397 tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; |
398 } | 398 } |
399 | 399 |
400 std::string | 400 std::string |
401 do_find_bkpt_list (octave_value_list slist, | 401 do_find_bkpt_list (octave_value_list slist, |
402 std::string match) | 402 std::string match) |