From e5e6b6b14d81d691645114e414181e3681d3e6b4 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Tue, 22 Dec 1992 03:21:54 +0000 Subject: [PATCH] * tm-hppah.h: #define NEED_TEXT_START_END for target memory read/write routines for HPUX. --- gdb/ChangeLog | 3 +++ gdb/tm-hppah.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f050aa9605..8cf862f19a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Mon Dec 21 18:02:35 1992 Stu Grossman (grossman at cygnus.com) + * tm-hppah.h: #define NEED_TEXT_START_END for target memory + read/write routines for HPUX. + * hppa-pinsn.c (print_insn): Improve handling of be and ble branch targets to compute target address using const from previous instruction if necessary. diff --git a/gdb/tm-hppah.h b/gdb/tm-hppah.h index 130365daf9..42632ef8a0 100644 --- a/gdb/tm-hppah.h +++ b/gdb/tm-hppah.h @@ -37,3 +37,9 @@ extern CORE_ADDR millicode_start, millicode_end; && get_frame_pc (frame) < millicode_end) ? \ read_register (31) & ~3 \ : read_register (RP_REGNUM) & ~3) + +/* We need to figure out where the text region is so that we use the + appropriate ptrace operator to manipulate text. Simply reading/writing + user space will crap out HPUX. */ + +#define NEED_TEXT_START_END -- 2.34.1