* value.h (struct value) <lazy>: Add a comment about its use for
watchpoints.
This commit is contained in:
parent
31612ca61a
commit
d7491b3f51
2 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
|
* value.h (struct value) <lazy>: Add a comment about its use for
|
||||||
|
watchpoints.
|
||||||
|
|
||||||
2000-08-12 Kevin Buettner <kevinb@redhat.com>
|
2000-08-12 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* cxux-nat.c (fetch_inferior_registers): Protoize.
|
* cxux-nat.c (fetch_inferior_registers): Protoize.
|
||||||
|
|
13
gdb/value.h
13
gdb/value.h
|
@ -97,7 +97,18 @@ struct value
|
||||||
/* If zero, contents of this value are in the contents field.
|
/* If zero, contents of this value are in the contents field.
|
||||||
If nonzero, contents are in inferior memory at address
|
If nonzero, contents are in inferior memory at address
|
||||||
in the location.address field plus the offset field
|
in the location.address field plus the offset field
|
||||||
(and the lval field should be lval_memory). */
|
(and the lval field should be lval_memory).
|
||||||
|
|
||||||
|
WARNING: This field is used by the code which handles
|
||||||
|
watchpoints (see breakpoint.c) to decide whether a particular
|
||||||
|
value can be watched by hardware watchpoints. If the lazy flag
|
||||||
|
is set for some member of a value chain, it is assumed that
|
||||||
|
this member of the chain doesn't need to be watched as part of
|
||||||
|
watching the value itself. This is how GDB avoids watching the
|
||||||
|
entire struct or array when the user wants to watch a single
|
||||||
|
struct member or array element. If you ever change the way
|
||||||
|
lazy flag is set and reset, be sure to consider this use as
|
||||||
|
well! */
|
||||||
char lazy;
|
char lazy;
|
||||||
/* If nonzero, this is the value of a variable which does not
|
/* If nonzero, this is the value of a variable which does not
|
||||||
actually exist in the program. */
|
actually exist in the program. */
|
||||||
|
|
Loading…
Reference in a new issue