From 255764a94666875d77f34a0caefc7341f16d1fd7 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Wed, 22 Nov 1995 04:26:03 +0000 Subject: [PATCH] * config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT. Also force HAVE_MMAP to be defined since autoconf is currently broken for detecting a working mmap under hpux. * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS): Tweak MMAP_BASE_ADDRESS to a better value suggested by Jeffrey A Law (law@cygnus.com). --- gdb/ChangeLog | 8 ++++++++ gdb/config/m68k/xm-hp300hpux.h | 16 ++++++++++++++++ gdb/config/pa/xm-hppah.h | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be7d049f5bd..e3f8d56bfb3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +Tue Nov 21 15:16:34 1995 Fred Fish + + * config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT. + Also force HAVE_MMAP to be defined since autoconf is currently broken + for detecting a working mmap under hpux. + * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS): Tweak MMAP_BASE_ADDRESS + to a better value suggested by Jeffrey A Law (law@cygnus.com). + Tue Nov 21 08:48:58 1995 Fred Fish * config/pa/xm-hppah.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT. diff --git a/gdb/config/m68k/xm-hp300hpux.h b/gdb/config/m68k/xm-hp300hpux.h index 2bddbbaf4fa..c84282e32ea 100644 --- a/gdb/config/m68k/xm-hp300hpux.h +++ b/gdb/config/m68k/xm-hp300hpux.h @@ -79,6 +79,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 0, 0, 0, 0, 0, 0, 0, 0, \ SIGILL } +/* If you expect to use the mmalloc package to obtain mapped symbol files, + for now you have to specify some parameters that determine how gdb places + the mappings in it's address space. See the comments in map_to_address() + for details. This is expected to only be a short term solution. Yes it + is a kludge. + FIXME: Make this more automatic. */ + +#define MMAP_BASE_ADDRESS 0xA0000000 /* First mapping here */ +#define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */ + +/* On hpux, autoconf 2.4 (and possibly others) does not properly detect that + mmap is available. Until this is fixed, we have to explicitly force + HAVE_MMAP. -fnf */ + +#define HAVE_MMAP 1 + #ifndef HPUX_ASM /* Start running with a stack stretching from BEG to END. diff --git a/gdb/config/pa/xm-hppah.h b/gdb/config/pa/xm-hppah.h index d427a651cfb..412bf03c7e5 100644 --- a/gdb/config/pa/xm-hppah.h +++ b/gdb/config/pa/xm-hppah.h @@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ is a kludge. FIXME: Make this more automatic. */ -#define MMAP_BASE_ADDRESS 0x60000000 /* First mapping here */ +#define MMAP_BASE_ADDRESS 0xA0000000 /* First mapping here */ #define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */ /* On hpux, autoconf 2.4 (and possibly others) does not properly detect that -- 2.30.2