diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-12 16:51:13 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-12 16:51:13 +0000 |
commit | c1afe53dd0ad0474a838e84cd0d98f8830c3d9ef (patch) | |
tree | 3085f21c5fd97e175e756c369e246516cd81d7c8 /gdb/valops.c | |
parent | 474c1661763ea406e7b76ba49718330a6b8ade94 (diff) | |
download | gdb-c1afe53dd0ad0474a838e84cd0d98f8830c3d9ef.zip gdb-c1afe53dd0ad0474a838e84cd0d98f8830c3d9ef.tar.gz gdb-c1afe53dd0ad0474a838e84cd0d98f8830c3d9ef.tar.bz2 |
2007-06-12 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
* findvar.c (value_from_register): Likewise.
* gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
* valops.c (value_assign): Likewise.
* gdbarch.sh (CONVERT_REGISTER_P): Replace by
gdbarch_convert_register_p.
* findvar.c (value_from_register): Likewise.
* valops.c (value_assign): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 8cbda26..1163756 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -636,12 +636,14 @@ value_assign (struct value *toval, struct value *fromval) if (!frame) error (_("Value being assigned to is no longer active.")); - if (CONVERT_REGISTER_P (VALUE_REGNUM (toval), type)) + if (gdbarch_convert_register_p + (current_gdbarch, 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_REGNUM (toval), - type, value_contents (fromval)); + gdbarch_value_to_register (current_gdbarch, + frame, VALUE_REGNUM (toval), + type, value_contents (fromval)); } else { |