1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / pyr-xdep.c
index b7f327ab23fa9835bf639a405fda43b28578ac33..dd6d9a92400e531626bcbb76a1473ca1f7d1a76a 100644 (file)
@@ -15,7 +15,7 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "frame.h"
@@ -50,13 +50,13 @@ fetch_inferior_registers (regno)
     
 #if defined(PYRAMID_CONTROL_FRAME_DEBUGGING)
     printf_unfiltered ("Fetching register %s, got %0x\n",
-           reg_names[regno],
+           REGISTER_NAME (regno),
            reg_buf[regno]);
 #endif /* PYRAMID_CONTROL_FRAME_DEBUGGING */
     
     if (reg_buf[regno] == -1 && errno == EIO) {
       printf_unfiltered("fetch_interior_registers: fetching register %s\n",
-            reg_names[regno]);
+            REGISTER_NAME (regno));
       errno = 0;
     }
     supply_register (regno, reg_buf+regno);
@@ -115,7 +115,7 @@ fetch_inferior_registers (regno)
   supply_register(CSP_REGNUM, reg_buf+CSP_REGNUM);
 #ifdef  PYRAMID_CONTROL_FRAME_DEBUGGING
   if (skipped_frames) {
-    fprintf_unfiltered (stderr,
+    fprintf_unfiltered (gdb_stderr,
             "skipped %d frames from %x to %x; cfp was %x, now %x\n",
             skipped_frames, reg_buf[CSP_REGNUM]);
   }
@@ -171,7 +171,7 @@ extern unsigned int last_frame_offset;
 
 #ifdef PYRAMID_CORE
 
-/* Can't make definitions here static, since core.c needs them
+/* Can't make definitions here static, since corefile.c needs them
    to do bounds checking on the core-file areas. O well. */
 
 /* have two stacks: one for data, one for register windows. */
@@ -192,7 +192,7 @@ extern int reg_stack_offset;
 
 \f
 /* Work with core dump and executable files, for GDB. 
-   This code would be in core.c if it weren't machine-dependent. */
+   This code would be in corefile.c if it weren't machine-dependent. */
 
 void
 core_file_command (filename, from_tty)
@@ -321,10 +321,10 @@ core_file_command (filename, from_tty)
              if (val < 0
                  || (val = myread (corechan, buf, sizeof buf)) < 0)
                {
-                 char * buffer = (char *) alloca (strlen (reg_names[regno])
+                 char * buffer = (char *) alloca (strlen (REGISTER_NAME (regno))
                                                   + 30);
                  strcpy (buffer, "Reading register ");
-                 strcat (buffer, reg_names[regno]);
+                 strcat (buffer, REGISTER_NAME (regno));
                                                   
                  perror_with_name (buffer);
                }
@@ -333,7 +333,7 @@ core_file_command (filename, from_tty)
                perror_with_name (filename);
 #ifdef PYRAMID_CONTROL_FRAME_DEBUGGING
       printf_unfiltered ("[reg %s(%d), offset in file %s=0x%0x, addr =0x%0x, =%0x]\n",
-             reg_names[regno], regno, filename,
+             REGISTER_NAME (regno), regno, filename,
              register_addr(regno, reg_offset),
              regno * 4 + last_frame_address,
              *((int *)buf));
This page took 0.0238 seconds and 4 git commands to generate.