summaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-12-07 03:56:43 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-12-07 03:56:43 +0000
commitecd8390290ac2bf41f22122ea01924dcd108af34 (patch)
treefc8310b6f500d05013970d228f2993a81dd6b14b /gdb/value.h
parentc13f725cbfef435a3cbc607745a9b917a756c101 (diff)
downloadgdb-ecd8390290ac2bf41f22122ea01924dcd108af34.tar.gz
import gdb-1999-12-06 snapshot
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 5a92882bc08..d1b68911379 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -38,7 +38,9 @@ struct value
/* Location of value (if lval). */
union
{
- /* Address in inferior or byte of registers structure. */
+ /* If lval == lval_memory, this is the address in the inferior.
+ If lval == lval_register, this is the byte offset into the
+ registers structure. */
CORE_ADDR address;
/* Pointer to internal variable. */
struct internalvar *internalvar;
@@ -48,8 +50,10 @@ struct value
}
location;
/* Describes offset of a value within lval of a structure in bytes.
- This is used in retrieving contents from target memory. [Note also
- the member embedded_offset below.] */
+ If lval == lval_memory, this is an offset to the address.
+ If lval == lval_register, this is a further offset from
+ location.address within the registers structure.
+ Note also the member embedded_offset below. */
int offset;
/* Only used for bitfields; number of bits contained in them. */
int bitsize;