aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-11-13 00:53:09 +0000
committerAndrew Cagney <cagney@redhat.com>2004-11-13 00:53:09 +0000
commit9ee8fc9d71a37137239836d8c2dbe1e87f999960 (patch)
treef6a42669e33dbf3c92154a9b1b2a109480e6ea25 /gdb/valops.c
parentb88f0b484e3cc50554b47f0ec82a612535e11eef (diff)
downloadgdb-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/valops.c')
-rw-r--r--gdb/valops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index a6a54e1..6fa1577 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -606,23 +606,23 @@ value_assign (struct value *toval, struct value *fromval)
if (VALUE_LVAL (toval) == lval_register)
{
frame = get_current_frame ();
- value_reg = VALUE_REGNO (toval);
+ value_reg = VALUE_REGNUM (toval);
}
else
{
frame = frame_find_by_id (VALUE_FRAME_ID (toval));
- value_reg = VALUE_FRAME_REGNUM (toval);
+ value_reg = VALUE_REGNUM (toval);
}
if (!frame)
error ("Value being assigned to is no longer active.");
if (VALUE_LVAL (toval) == lval_reg_frame_relative
- && CONVERT_REGISTER_P (VALUE_FRAME_REGNUM (toval), type))
+ && CONVERT_REGISTER_P (VALUE_REGNUM (toval), type))
{
/* If TOVAL is a special machine register requiring
conversion of program values to a special raw format. */
- VALUE_TO_REGISTER (frame, VALUE_FRAME_REGNUM (toval),
+ VALUE_TO_REGISTER (frame, VALUE_REGNUM (toval),
type, VALUE_CONTENTS (fromval));
}
else