* coredep.c: Add <sys/types.h> for SCOnix.
authorJohn Gilmore <gnu@cygnus>
Thu, 17 Oct 1991 05:57:51 +0000 (05:57 +0000)
committerJohn Gilmore <gnu@cygnus>
Thu, 17 Oct 1991 05:57:51 +0000 (05:57 +0000)
* dbxread.c (read_dbx_symntab):  Avoid coredump on malformed file.
* printcmd.c (print_formatted):  Flush output before disassembly.
* xm-mips.h:  Update KERNEL_U_ADDR for new scheme.  Cleanup a bit.

gdb/coredep.c
gdb/xm-mips.h

index 81fb3a42d50ec8a8e3eb251c4b37c5bf9c5b22f4..6eec85a1075f4427b2da4d7e7d5bf8c0ab076da5 100644 (file)
@@ -25,9 +25,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "gdbcore.h"
 #include <stdio.h>
 
-/* Some of these are needed on various systems, perhaps, to expand
-   REGISTER_U_ADDR appropriately?  */
-/* #include <sys/core.h> */
+/* These are needed on various systems to expand REGISTER_U_ADDR.  */
+#include <sys/types.h>
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <sys/file.h>
index 29d523e4823b6b766bd099a6a85a072bd7f41d19..4b5eb5fd8d7449a94d3d809a9aca2a9218ce642b 100644 (file)
@@ -23,18 +23,18 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define HOST_BYTE_ORDER LITTLE_ENDIAN
 #endif
 
-/* wait.h */
-#define HAVE_WAIT_STRUCT
-
 /* Get rid of any system-imposed stack limit if possible */
 
 #define        SET_STACK_LIMIT_HUGE
 
 /* This WOULD BE the amount to subtract from u.u_ar0
    to get the offset in the core file of the register values.
-   But Mips' ptrace works on regnums, not displacements */
+   But Mips' ptrace works on regnums, not displacements.  So since
+   REGISTER_U_ADDR is called for both core files and ptrace, use
+   BLOCKEND as a flag:  0 for core files, 1 for ptrace.  What a
+   kludge.  */
 
-#define KERNEL_U_ADDR (int)u.u_ar0
+#define KERNEL_U_ADDR (int)reg_ptr     /* Magic, causes a zero blockend */
 
 #define REGISTER_U_ADDR(addr, blockend, regno)                 \
    if (blockend == 0) {                                        \
@@ -55,7 +55,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* Kernel is a bit tenacious about sharing text segments, disallowing bpts.  */
 #define        ONE_PROCESS_WRITETEXT
-\f
-/* Interface definitions for kernel debugger KDB */
-
-/* I am not going to pretend I've done anything about this */
This page took 0.026193 seconds and 4 git commands to generate.