This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb ChangeLog arch-utils.c arch-utils.h fi ...
- From: cagney at sources dot redhat dot com
- To: gdb-cvs at sources dot redhat dot com
- Date: 8 Jun 2003 22:14:42 -0000
- Subject: src/gdb ChangeLog arch-utils.c arch-utils.h fi ...
CVSROOT: /cvs/src
Module name: src
Branch: cagney_convert-20030606-branch
Changes by: cagney@sourceware.org 2003-06-08 22:14:42
Modified files:
gdb : ChangeLog arch-utils.c arch-utils.h findvar.c
gdbarch.c gdbarch.h gdbarch.sh mips-tdep.c
valops.c
Log message:
2003-06-06 Andrew Cagney <cagney@redhat.com>
* frame.h (put_frame_register): Declare.
* frame.c (put_frame_register): New function.
* arch-utils.c: Include "gdbcore.h".
(legacy_convert_register_p): Add "type" parameter.
(legacy_register_to_value): Rewrite, use "frame" to get the
register value.
(legacy_value_to_register): Rewrite, use "frame" to find the
register's location before storing.
* arch-utils.h (legacy_convert_register_p): Update.
(legacy_register_to_value, legacy_value_to_register): Update.
* Makefile.in (arch-utils.o): Update dependencies.
* findvar.c (value_from_register): Rewrite, eliminate use of
REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
"frame" to REGISTER_TO_VALUE.
* gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
(REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
parameter with "frame".
* gdbarch.h, gdbarch.c: Re-generate.
* mips-tdep.c (mips_convert_register_p): New function.
(mips_value_to_register): Replace mips_register_convert_from_type.
(mips_register_to_value): Replace mips_register_convert_to_type.
(mips_gdbarch_init): Set conver_register_p, value_to_register and
register_to_value.
* valops.c (value_assign): Move the CONVERT_REGISTER code to the
lval_reg_frame_relative + lval_register branch of the switch. Do
not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.4321.2.1&r2=1.4321.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/arch-utils.c.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.83.6.1&r2=1.83.6.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/arch-utils.h.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.46.6.1&r2=1.46.6.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/findvar.c.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.58.2.1&r2=1.58.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbarch.c.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.218.2.1&r2=1.218.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbarch.h.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.188.2.1&r2=1.188.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbarch.sh.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.240.2.1&r2=1.240.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/mips-tdep.c.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.207.2.1&r2=1.207.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/valops.c.diff?cvsroot=src&only_with_tag=cagney_convert-20030606-branch&r1=1.110.2.1&r2=1.110.2.2