From 62853f8052a6089e12c7fd6184abb8696ad9c850 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Mon, 9 Sep 1991 20:49:08 +0000 Subject: [PATCH] * breakpoint.c (insert_breakpoints): Restore warning about the program might be running in another process, but only for systems with this brain death (#ifdef ONE_PROCESS_WRITETEXT). * xm-hp300bsd.h, xm-mips.h, xm-vax.h: Define it. --- gdb/xm-hp300bsd.h | 2 ++ gdb/xm-mips.h | 3 +++ gdb/xm-vax.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/gdb/xm-hp300bsd.h b/gdb/xm-hp300bsd.h index fbbef6f..db06dbc 100644 --- a/gdb/xm-hp300bsd.h +++ b/gdb/xm-hp300bsd.h @@ -64,6 +64,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Compensate for lack of `vprintf' function. */ #define MISSING_VPRINTF +/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ +#define ONE_PROCESS_WRITETEXT /* Interface definitions for kernel debugger KDB. */ diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h index 8709a88..caebda5 100644 --- a/gdb/xm-mips.h +++ b/gdb/xm-mips.h @@ -38,6 +38,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ #define FETCH_INFERIOR_REGISTERS + +/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ +#define ONE_PROCESS_WRITETEXT /* Interface definitions for kernel debugger KDB */ diff --git a/gdb/xm-vax.h b/gdb/xm-vax.h index 28df3cd..9da7306 100644 --- a/gdb/xm-vax.h +++ b/gdb/xm-vax.h @@ -36,6 +36,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ if (regno == AP_REGNUM) addr = blockend - 0124; \ if (regno == SP_REGNUM) addr = blockend - 20; } +/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ +#define ONE_PROCESS_WRITETEXT + /* Interface definitions for kernel debugger KDB. */ /* Map machine fault codes into signal numbers. -- 2.7.4