Bug 7349

Summary: RFE: Can't refer to previous watchpoint value in condition
Product: gdb Reporter: Alex Oliva <aoliva>
Component: breakpointsAssignee: Not yet assigned to anyone <unassigned>
Status: ASSIGNED ---    
Severity: enhancement CC: cebtenzzre, dimhen, gdb-prs, tromey, vries
Priority: P3    
Version: unknown   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Alex Oliva 2001-11-17 03:38:01 UTC
[Converted from Gnats 244]

It woudl be very nice if we could reference the current and previous values of a watchpoint in the watchpoint condition.  Say:

watch *bitmask_ptr
cond # ($ ^ $$) & 1

this would only stop if bit 0 changed in the bitmask.

Release:
unknown
Comment 2 Tom de Vries 2024-07-31 10:24:41 UTC
*** Bug 29480 has been marked as a duplicate of this bug. ***