A ton of changes to improve C++ debugging. See ChangeLog.
[deliverable/binutils-gdb.git] / gdb / pyr-tdep.c
index 27192a3ea5b2ac2015c0f12e0d47072f92f5d363..69b84eb521330ae29e96c98ca8c679e9ade34f86 100644 (file)
@@ -1,5 +1,5 @@
-/* Low level interface to ptrace, for GDB when running under Unix.
-   Copyright (C) 1988, 1989 Free Software Foundation, Inc.
+/* Pyramid target-dependent code for GDB.
+   Copyright (C) 1988, 1989, 1991 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -17,6 +17,8 @@ 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.  */
 
+#include "defs.h"
+
 /*** Prettier register printing. ***/
 
 /* Print registers in the same format as pyramid's dbx, adb, sdb.  */
@@ -35,11 +37,11 @@ pyr_print_registers(reg_buf, regnum)
                     reg_names[regno+48], reg_buf[regno+48]);
   }
   usp = ptrace (3, inferior_pid,
-                     ((char *)&u.u_pcb.pcb_usp) -
-                     ((char *)&u), 0);
+               (PTRACE_ARG3_TYPE) ((char *)&u.u_pcb.pcb_usp) -
+               ((char *)&u), 0);
   ksp = ptrace (3, inferior_pid,
-                     ((char *)&u.u_pcb.pcb_ksp) -
-                     ((char *)&u), 0);
+               (PTRACE_ARG3_TYPE) ((char *)&u.u_pcb.pcb_ksp) -
+               ((char *)&u), 0);
   printf/*_filtered*/ ("\n%6.6s: %8x  %6.6s: %8x (%08x) %6.6s %8x\n",
                   reg_names[CSP_REGNUM],reg_buf[CSP_REGNUM],
                   reg_names[KSP_REGNUM], reg_buf[KSP_REGNUM], ksp,
@@ -74,7 +76,7 @@ pyr_do_registers_info (regnum, fpregs)
        if (val == 0)
          printf_filtered ("0");
        else
-         printf_filtered ("0x%08x  %d", val, val);
+         printf_filtered ("%s  %d", local_hex_string_custom(val,"08"), val);
        printf_filtered("\n");
       }
 }
This page took 0.023921 seconds and 4 git commands to generate.