* breakpoints.c (watch_command_1): Use internal breakpoint
authorKeith Seitz <keiths@redhat.com>
Tue, 20 Aug 2002 20:03:35 +0000 (20:03 +0000)
committerKeith Seitz <keiths@redhat.com>
Tue, 20 Aug 2002 20:03:35 +0000 (20:03 +0000)
        when setting a watchpoint_scope breakpoint.

gdb/ChangeLog
gdb/breakpoint.c

index c416a137b1412770c3666232727c2cc24121c2ad..a5163ab78e092b8033ac53d1858d9275d0fff121 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-20  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoints.c (watch_command_1): Use internal breakpoint
+       when setting a watchpoint_scope breakpoint.
+
 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
 
         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
index 283539061ca5dbf7e7fc657c57e9a95abf1a9dea..30b878d9d673ce326eb80e79b71e7a45734b99ba 100644 (file)
@@ -5331,16 +5331,8 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
       if (prev_frame)
        {
          struct breakpoint *scope_breakpoint;
-         struct symtab_and_line scope_sal;
-
-         INIT_SAL (&scope_sal);        /* initialize to zeroes */
-         scope_sal.pc = get_frame_pc (prev_frame);
-         scope_sal.section = find_pc_overlay (scope_sal.pc);
-
-         scope_breakpoint = set_raw_breakpoint (scope_sal,
-                                                bp_watchpoint_scope);
-         set_breakpoint_count (breakpoint_count + 1);
-         scope_breakpoint->number = breakpoint_count;
+         scope_breakpoint = create_internal_breakpoint (get_frame_pc (prev_frame),
+                                                        bp_watchpoint_scope);
 
          scope_breakpoint->enable_state = bp_enabled;
 
This page took 0.033872 seconds and 4 git commands to generate.