aboutsummaryrefslogtreecommitdiff
path: root/value.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-29 18:50:17 +0100
committerPetr Machata <pmachata@redhat.com>2012-10-29 18:50:17 +0100
commit2b955a5cefeab9cd409f7973837bf1d25003d8e9 (patch)
tree77b97a6e336f2896527af22ec5ff15080c454a4f /value.h
parent43417844f6a8d26ae7388101f4eaf49d03be5cfc (diff)
downloadltrace-2b955a5cefeab9cd409f7973837bf1d25003d8e9.tar.gz
struct value should differentiate between inferior and private address
Diffstat (limited to 'value.h')
-rw-r--r--value.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/value.h b/value.h
index 1ba8a6c..b28dee7 100644
--- a/value.h
+++ b/value.h
@@ -22,6 +22,7 @@
#define VALUE_H
#include "forward.h"
+#include "sysdep.h"
/* Values are objects that capture data fetched from an inferior.
* Typically a value is attached to a single inferior where it was
@@ -49,8 +50,8 @@ struct value {
struct value *parent;
size_t size;
union {
- void *address; /* VAL_LOC_CLIENT, VAL_LOC_COPY,
- VAL_LOC_SHARED */
+ void *address; /* VAL_LOC_COPY, VAL_LOC_SHARED */
+ arch_addr_t inf_address; /* VAL_LOC_INFERIOR */
long value; /* VAL_LOC_WORD */
unsigned char buf[0];
} u;