diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-11-13 00:53:09 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-11-13 00:53:09 +0000 |
commit | 9ee8fc9d71a37137239836d8c2dbe1e87f999960 (patch) | |
tree | f6a42669e33dbf3c92154a9b1b2a109480e6ea25 /gdb/value.h | |
parent | b88f0b484e3cc50554b47f0ec82a612535e11eef (diff) | |
download | gdb-9ee8fc9d71a37137239836d8c2dbe1e87f999960.zip gdb-9ee8fc9d71a37137239836d8c2dbe1e87f999960.tar.gz gdb-9ee8fc9d71a37137239836d8c2dbe1e87f999960.tar.bz2 |
2004-11-12 Andrew Cagney <cagney@gnu.org>
Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
* value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
(VALUE_REGNUM): Define.
(struct value): Delete location.regnum, rename "regno" to
"regnum".
* value.c, valops.c, valarith.c, findvar.c: Update.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/value.h b/gdb/value.h index fc556ac..0feddbf 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -58,9 +58,6 @@ struct value /* Pointer to internal variable. */ struct internalvar *internalvar; - - /* Number of register. Only used with lval_reg_frame_relative. */ - int regnum; } location; /* Describes offset of a value within lval of a structure in bytes. @@ -139,7 +136,7 @@ struct value struct value *next; /* Register number if the value is from a register. */ - short regno; + short regnum; /* If zero, contents of this value are in the contents field. If nonzero, contents are in inferior memory at address in the @@ -218,9 +215,8 @@ extern int value_fetch_lazy (struct value *val); #define VALUE_LVAL(val) (val)->lval #define VALUE_ADDRESS(val) (val)->location.address #define VALUE_INTERNALVAR(val) (val)->location.internalvar -#define VALUE_FRAME_REGNUM(val) ((val)->location.regnum) #define VALUE_FRAME_ID(val) ((val)->frame_id) -#define VALUE_REGNO(val) (val)->regno +#define VALUE_REGNUM(val) (val)->regnum #define VALUE_OPTIMIZED_OUT(val) ((val)->optimized_out) #define VALUE_EMBEDDED_OFFSET(val) ((val)->embedded_offset) #define VALUE_POINTED_TO_OFFSET(val) ((val)->pointed_to_offset) |