diff libinterp/corefcn/fcn-info.cc @ 29458:c0f86150aa6c

begin allowing breakpoints to be set using file name * file-editor-tab.h, file-editor-tab.cc (file_editor_tab::bp_info): Delete struct and all uses. (file_editor_tab::handle_request_add_breakpoint): Use bp_table::remove_breakpoint_from_file instead of asking bp_info to parse file name. (file_editor_tab::remove_all_breakpoints): Use bp_table::remove_all_breakpoints_from_file instead of asking bp_info to parse file name. (file_editor_tab::add_breakpoint_event): Use bp_table::add_breakpint instead of asking bp_info to parse file name. (Fdbclear): Use bp_table::remove_breakpoints_from_function instead of bp_table::remove_breakpoint. * debug.cc (Fdbstop): Use bp_table::add_breakpoints_in_function instead of bp_table::add_breakpoint. * fcn-info.cc (out_of_date_check): Use bp_table::remove_all_breakpoints_from_function instead of bp_table::remove_all_breakpoints_in_file. * bp-table.h, bp-table.cc (bp_file_info): New class, adapted from file_editor_tab::bp_info struct. (bp_table::add_breakpoint_in_function, bp_table::add_breakpoints_in_function): Rename from add_breakpoint. (bp_table::remove_breakpoint_from_function, bp_table::remove_breakpoints_from_function): Rename from remove_breakpoint. Update all uses. (bp_table::remove_all_breakpoints_from_function): Rename from remove_all_breakpoints_in_file. Update all uses. (bp_table::add_breakpoint_in_file, bp_table::add_breakpoints_in_file, bp_table::remove_breakpoint_from_file, bp_table::remove_breakpoints_from_file, bp_table::remove_all_breakpoints_from_file): New functions. (bp_table::add_breakpoint, bp_table::remove_breakpoint, bp_table::remove_all_breakpoints_in_file): Deprecate.
author John W. Eaton <jwe@octave.org>
date Mon, 22 Mar 2021 00:34:38 -0400
parents 7854d5752dd2
children aef11bb4e6d1
line wrap: on
line diff
--- a/libinterp/corefcn/fcn-info.cc	Wed Mar 03 23:57:31 2021 -0500
+++ b/libinterp/corefcn/fcn-info.cc	Mon Mar 22 00:34:38 2021 -0400
@@ -651,8 +651,8 @@
                         bp_table& bptab
                           = __get_bp_table__ ("out_of_date_check");
 
-                        bptab.remove_all_breakpoints_in_file (canonical_nm,
-                                                              true);
+                        bptab.remove_all_breakpoints_from_function (canonical_nm,
+                                                                    true);
                       }
                   }
               }