Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: let gdbarch define FP0_REGNUM on rs6000
@ 2004-05-03 23:55 Jim Blandy
  2004-05-04 13:52 ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Blandy @ 2004-05-03 23:55 UTC (permalink / raw)
  To: gdb-patches


2004-05-03  Jim Blandy  <jimb@redhat.com>

	* config/rs6000/tm-rs6000.h (FP0_REGNUM): Delete.  Let gdbarch.h
	define this.
	* rs6000-tdep.c (rs6000_gdbarch_init): Set gdbarch_fp0_regnum.

diff -cr src.no-gplast-fplast/gdb/config/rs6000/tm-rs6000.h src/gdb/config/rs6000/tm-rs6000.h
*** gdb/config/rs6000/tm-rs6000.h	2004-05-03 17:32:42.000000000 -0500
--- gdb/config/rs6000/tm-rs6000.h	2004-05-03 17:39:34.000000000 -0500
***************
*** 64,78 ****
  #define	PROCESS_LINENUMBER_HOOK()	aix_process_linenos ()
  extern void aix_process_linenos (void);
  
- /* Register numbers of various important registers.
-    Note that some of these values are "real" register numbers,
-    and correspond to the general registers of the machine,
-    and some are "phony" register numbers which are too large
-    to be actual register numbers as far as the user is concerned
-    but do serve to get the desired values when passed to read_register.  */
- 
- #define FP0_REGNUM 32		/* Floating point register 0 */
- 
  /* Notice when a new child process is started. */
  
  #define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior
--- 64,69 ----
diff -cr src.no-gplast-fplast/gdb/rs6000-tdep.c src/gdb/rs6000-tdep.c
*** gdb/rs6000-tdep.c	2004-05-03 17:32:35.000000000 -0500
--- gdb/rs6000-tdep.c	2004-05-03 17:40:46.000000000 -0500
***************
*** 2718,2723 ****
--- 2718,2724 ----
    set_gdbarch_pc_regnum (gdbarch, 64);
    set_gdbarch_sp_regnum (gdbarch, 1);
    set_gdbarch_deprecated_fp_regnum (gdbarch, 1);
+   set_gdbarch_fp0_regnum (gdbarch, 32);
    if (sysv_abi && wordsize == 8)
      set_gdbarch_return_value (gdbarch, ppc64_sysv_abi_return_value);
    else if (sysv_abi && wordsize == 4)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-05  1:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 23:55 RFA: let gdbarch define FP0_REGNUM on rs6000 Jim Blandy
2004-05-04 13:52 ` Andrew Cagney
2004-05-04 15:20   ` Jim Blandy
2004-05-04 16:01     ` Kevin Buettner
2004-05-04 20:45       ` Jim Blandy
2004-05-04 22:03         ` Kevin Buettner
2004-05-05  1:47           ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox