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 | c6e27b4a6e9ecf37628abe35922fe50a6aec27f3 (patch) | |
tree | 58f55adbea204b71b465e21e21e4bb0d5cd22b0b /gdb/value.h | |
parent | 21cc9cd78a6b50758b802d421c1617927dbafca3 (diff) | |
download | gdb-c6e27b4a6e9ecf37628abe35922fe50a6aec27f3.tar.gz |
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 fc556ac2546..0feddbf105e 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) |