From: John Gilmore Date: Mon, 9 Sep 1991 20:49:08 +0000 (+0000) Subject: * breakpoint.c (insert_breakpoints): Restore warning about X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62853f8052a6089e12c7fd6184abb8696ad9c850;p=binutils-gdb.git * 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. --- diff --git a/gdb/xm-hp300bsd.h b/gdb/xm-hp300bsd.h index fbbef6ffb5b..db06dbc7ce8 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 8709a88b164..caebda5e5f3 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 28df3cd63b0..9da7306216b 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.