* rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
authorJim Blandy <jimb@codesourcery.com>
Mon, 9 Aug 2004 18:43:21 +0000 (18:43 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 9 Aug 2004 18:43:21 +0000 (18:43 +0000)
rs6000_register_sim_regno): Doc fixes.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 62a5b482c363f4803793fedae984106c2a59357c..f8e98ee3a282470c534479c18cc5f3fc27c7b65a 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-09  Jim Blandy  <jimb@redhat.com>
+
+       * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
+       rs6000_register_sim_regno): Doc fixes.
+
 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
 
        * mips-tdep.c: Include "floatformat.h".
index fcd14635938e79128d93c784c9bda5bfa0502a24..36741c5e5e27aba928f66552483a86398b8d569f 100644 (file)
@@ -192,6 +192,14 @@ ppc_floating_point_unit_p (struct gdbarch *gdbarch)
           && tdep->ppc_fpscr_regnum >= 0);
 }
 
+
+/* Check that TABLE[GDB_REGNO] is not already initialized, and then
+   set it to SIM_REGNO.
+
+   This is a helper function for init_sim_regno_table, constructing
+   the table mapping GDB register numbers to sim register numbers; we
+   initialize every element in that table to -1 before we start
+   filling it in.  */
 static void
 set_sim_regno (int *table, int gdb_regno, int sim_regno)
 {
@@ -201,6 +209,10 @@ set_sim_regno (int *table, int gdb_regno, int sim_regno)
   table[gdb_regno] = sim_regno;
 }
 
+
+/* Initialize ARCH->tdep->sim_regno, the table mapping GDB register
+   numbers to simulator register numbers, based on the values placed
+   in the ARCH->tdep->ppc_foo_regnum members.  */
 static void
 init_sim_regno_table (struct gdbarch *arch)
 {
@@ -281,6 +293,9 @@ init_sim_regno_table (struct gdbarch *arch)
   tdep->sim_regno = sim_regno;
 }
 
+
+/* Given a GDB register number REG, return the corresponding SIM
+   register number.  */
 static int
 rs6000_register_sim_regno (int reg)
 {
This page took 0.045057 seconds and 4 git commands to generate.