This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] make mips64_transfers_32bit_regs_p configurable
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [RFA] make mips64_transfers_32bit_regs_p configurable
- From: fnf at ninemoons dot com
- Date: Sun, 17 Sep 2000 19:10:35 -0700 (MST)
- Cc: fnf at cygnus dot com
- Reply-To: fnf at cygnus dot com
I'm working on a port where it makes sense to have the default setting
for mips64_transfers_32bit_regs_p be settable in a target
configuration file. Would the mips maintainer please review this
patch and either apply it or let me know how it needs fixing. Thanks.
-Fred
2000-09-16 Fred Fish <fnf@cygnus.com>
* mips-tdep.c (mips64_transfers_32bit_regs_p): Allow default for
this to be set by the config.
(MIPS64_TRANSFERS_32BIT_REGS_P): If not defined, use 0.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/mips-tdep.c,v
retrieving revision 1.243
diff -c -p -r1.243 mips-tdep.c
*** mips-tdep.c 2000/08/11 00:28:27 1.243
--- mips-tdep.c 2000/09/18 02:04:03
*************** mips_print_extra_frame_info (struct fram
*** 409,415 ****
/* Convert between RAW and VIRTUAL registers. The RAW register size
defines the remote-gdb packet. */
! static int mips64_transfers_32bit_regs_p = 0;
int
mips_register_raw_size (int reg_nr)
--- 409,418 ----
/* Convert between RAW and VIRTUAL registers. The RAW register size
defines the remote-gdb packet. */
! #ifndef MIPS64_TRANSFERS_32BIT_REGS_P
! #define MIPS64_TRANSFERS_32BIT_REGS_P 0
! #endif
! static int mips64_transfers_32bit_regs_p = MIPS64_TRANSFERS_32BIT_REGS_P;
int
mips_register_raw_size (int reg_nr)