aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-mips.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-17 05:57:51 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-17 05:57:51 +0000
commitb53d3945ed0a220074dcad48477b32565ed426b6 (patch)
treee6072ecdfe934ab928dc5bc8672f2d29ef262c20 /gdb/xm-mips.h
parentc5a475c86d9c3b9263514915d25702eff2734bd8 (diff)
downloadgdb-b53d3945ed0a220074dcad48477b32565ed426b6.zip
gdb-b53d3945ed0a220074dcad48477b32565ed426b6.tar.gz
gdb-b53d3945ed0a220074dcad48477b32565ed426b6.tar.bz2
* coredep.c: Add <sys/types.h> for SCOnix.
* 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.
Diffstat (limited to 'gdb/xm-mips.h')
-rw-r--r--gdb/xm-mips.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h
index 29d523e..4b5eb5f 100644
--- a/gdb/xm-mips.h
+++ b/gdb/xm-mips.h
@@ -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
-
-/* Interface definitions for kernel debugger KDB */
-
-/* I am not going to pretend I've done anything about this */