aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-08-20 20:03:35 +0000
committerKeith Seitz <keiths@redhat.com>2002-08-20 20:03:35 +0000
commite86ae29ff5cf6686591618b56319f0d98ba00e1b (patch)
treecb5749420517e8ce1f8f5c23ed017fdf71a60fc4 /gdb/breakpoint.c
parent216b504fa7fde9c83d008a044046c8321fab4fb9 (diff)
downloadgdb-e86ae29ff5cf6686591618b56319f0d98ba00e1b.zip
gdb-e86ae29ff5cf6686591618b56319f0d98ba00e1b.tar.gz
gdb-e86ae29ff5cf6686591618b56319f0d98ba00e1b.tar.bz2
* breakpoints.c (watch_command_1): Use internal breakpoint
when setting a watchpoint_scope breakpoint.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2835390..30b878d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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;