This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
patch for breakpoint.c:can_use_hardware_watchpoint
- To: gdb-patches@sourceware.cygnus.com
- Subject: patch for breakpoint.c:can_use_hardware_watchpoint
- From: jtc@redback.com (J.T. Conklin)
- Date: 17 Aug 1999 23:35:53 -0700
- Reply-To: jtc@redback.com
As per discussion on the gdb development list, this patch changes
can_use_hardware_watchpoint to return 0 if a register variable is
part of the expression.
--jtc
1999-08-17 J.T. Conklin <jtc@redback.com>
* breakpoint.c (can_use_hardware_watchpoint): Return 0 if
expression contains a register varable.
Index: breakpoint.c
===================================================================
RCS file: /home/jtc/CVSROOT/gdb/gdb/breakpoint.c,v
retrieving revision 1.1.1.6
diff -c -r1.1.1.6 breakpoint.c
*** breakpoint.c 1999/07/08 23:30:20 1.1.1.6
--- breakpoint.c 1999/08/16 20:35:04
***************
*** 4505,4510 ****
--- 4505,4512 ----
if (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT (TYPE_LENGTH (VALUE_TYPE (v))))
found_memory_cnt++;
}
+ else if (v->lval == lval_register)
+ return 0;
else if (v->lval != not_lval && v->modifiable == 0)
return 0;
}
--
J.T. Conklin
RedBack Networks