* Makefile.in (INTERNAL_CFLAGS): Add ENABLE_CFLAGS.
* fork-child.c (fork_inferior): Add call to TARGET_CREATE_INFERIOR_HOOK to allow target specific code to get control just before the new process executes it's first instruction. * remote-mips.c (mips_initialize): Cleanup a bit. Don't try to receive a packet at first. This speeds up initialization a lot. Use TARGET_MONITOR_PROMPT instead of "<IDT>". (common_breakpoint): Use rresponse instead of rerrflg to inspect error code. * symfile.c (syms_from_objfile reread_symbols): Call TARGET_SYMFILE_POSTREAD to allow target specific code to get control after reading new symbols. * target.h: New macros TARGET_SYMFILE_POSTREAD, and TARGET_CREATE_INFERIOR_HOOK. See above for descriptions. * config/mips/{irix5.mh nm-irix5.h}: Delete nm-irix5.h. Make NAT_FILE point directly at ../nm-sysv4.h. * config/mips/{mipsm3.mh nm-m3.h}: Delete nm-m3.h. Make NAT_FILE point directly at ../nm-m3.h. * config/mips/{mipsv4.mh nm-sysv4.h}: Delete nm-sysv4.h. Make NAT_FILE point directly at ../nm-sysv4.h. * config/mips/nm-mips.h: Improve comment at top of file. * config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Change definition into a proper string. start-sanitize-gm * configure configure.in: Add support for --enable-gm. (mips*-*-magic*): Change target from magic to idt. * eval.c expprint.c expression.h parse.c remote-mips.c utils.c: Change GENERAL_MAGIC_HACKS to GENERAL_MAGIC. * magic.c magic.h: Update files from GM. * config/mips/magic.mt: Delete. No longer necessary now that we use --enable mechanism. * config/mips/tm-idt.h: Add GM stuff needed for remote GM box. * config/mips/tm-irix5.h: Add GM stuff needed for native Irix box. * config/mips/tm-magic.h: Move up to config/tm-magic.h. Move all platform specific stuff into tm-irix.h and tm-idt.h. Add defs for TARGET_SYMFILE_POSTREAD and TARGET_CREATE_INFERIOR_HOOK. end-sanitize-gm
This commit is contained in:
parent
536a7a1618
commit
188c635fbb
@ -1,3 +1,43 @@
|
||||
Sat Nov 4 10:21:58 1995 Stu Grossman (grossman@cygnus.com)
|
||||
|
||||
* Makefile.in (INTERNAL_CFLAGS): Add ENABLE_CFLAGS.
|
||||
* fork-child.c (fork_inferior): Add call to
|
||||
TARGET_CREATE_INFERIOR_HOOK to allow target specific code to get
|
||||
control just before the new process executes it's first instruction.
|
||||
* remote-mips.c (mips_initialize): Cleanup a bit. Don't try to
|
||||
receive a packet at first. This speeds up initialization a lot.
|
||||
Use TARGET_MONITOR_PROMPT instead of "<IDT>".
|
||||
(common_breakpoint): Use rresponse instead of rerrflg to inspect
|
||||
error code.
|
||||
* symfile.c (syms_from_objfile reread_symbols): Call
|
||||
TARGET_SYMFILE_POSTREAD to allow target specific code to get
|
||||
control after reading new symbols.
|
||||
* target.h: New macros TARGET_SYMFILE_POSTREAD, and
|
||||
TARGET_CREATE_INFERIOR_HOOK. See above for descriptions.
|
||||
* config/mips/{irix5.mh nm-irix5.h}: Delete nm-irix5.h. Make
|
||||
NAT_FILE point directly at ../nm-sysv4.h.
|
||||
* config/mips/{mipsm3.mh nm-m3.h}: Delete nm-m3.h. Make
|
||||
NAT_FILE point directly at ../nm-m3.h.
|
||||
* config/mips/{mipsv4.mh nm-sysv4.h}: Delete nm-sysv4.h. Make
|
||||
NAT_FILE point directly at ../nm-sysv4.h.
|
||||
* config/mips/nm-mips.h: Improve comment at top of file.
|
||||
* config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Change
|
||||
definition into a proper string.
|
||||
start-sanitize-gm
|
||||
* configure configure.in: Add support for --enable-gm.
|
||||
(mips*-*-magic*): Change target from magic to idt.
|
||||
* eval.c expprint.c expression.h parse.c remote-mips.c utils.c:
|
||||
Change GENERAL_MAGIC_HACKS to GENERAL_MAGIC.
|
||||
* magic.c magic.h: Update files from GM.
|
||||
* config/mips/magic.mt: Delete. No longer necessary now that we
|
||||
use --enable mechanism.
|
||||
* config/mips/tm-idt.h: Add GM stuff needed for remote GM box.
|
||||
* config/mips/tm-irix5.h: Add GM stuff needed for native Irix box.
|
||||
* config/mips/tm-magic.h: Move up to config/tm-magic.h. Move all
|
||||
platform specific stuff into tm-irix.h and tm-idt.h. Add defs for
|
||||
TARGET_SYMFILE_POSTREAD and TARGET_CREATE_INFERIOR_HOOK.
|
||||
end-sanitize-gm
|
||||
|
||||
Wed Nov 1 20:18:08 1995 Fred Fish <fnf@cygnus.com>
|
||||
|
||||
* config/i386/tm-i386.h: New file containing generic i*86 target
|
||||
|
@ -174,7 +174,7 @@ CXXFLAGS = -g -O
|
||||
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
|
||||
INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
|
||||
$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
|
||||
$(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS)
|
||||
$(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) $(ENABLE_CFLAGS)
|
||||
|
||||
# LDFLAGS is specifically reserved for setting from the command line
|
||||
# when running make.
|
||||
|
@ -21,6 +21,20 @@ else
|
||||
lose_these_too="arc ${lose_these_too}"
|
||||
fi
|
||||
|
||||
gm_files="tm-magic.h"
|
||||
|
||||
if ( echo $* | grep keep\-gm > /dev/null ) ; then
|
||||
keep_these_too="${gm_files} ${keep_these_too}"
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping ${gm_files}
|
||||
fi
|
||||
else
|
||||
lose_these_too="${gm_files} ${lose_these_too}"
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Deleting ${gm_files}
|
||||
fi
|
||||
fi
|
||||
|
||||
# All files listed between the "Things-to-keep:" line and the
|
||||
# "Files-to-sed:" line will be kept. All other files will be removed.
|
||||
# Directories listed in this section will have their own Sanitize
|
||||
|
@ -15,20 +15,6 @@
|
||||
|
||||
Do-first:
|
||||
|
||||
gm_files="magic.mt tm-magic.h"
|
||||
|
||||
if ( echo $* | grep keep\-gm > /dev/null ) ; then
|
||||
keep_these_too="${gm_files} ${keep_these_too}"
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping ${gm_files}
|
||||
fi
|
||||
else
|
||||
lose_these_too="${gm_files} ${lose_these_too}"
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Deleting ${gm_files}
|
||||
fi
|
||||
fi
|
||||
|
||||
# All files listed between the "Things-to-keep:" line and the
|
||||
# "Files-to-sed:" line will be kept. All other files will be removed.
|
||||
# Directories listed in this section will have their own Sanitize
|
||||
@ -97,4 +83,31 @@ Things-to-lose:
|
||||
|
||||
Do-last:
|
||||
|
||||
if ( echo $* | grep keep\-gm > /dev/null ) ; then
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping gm stuff in $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in * ; do
|
||||
if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Removing traces of \"gm\" from $i...
|
||||
fi
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
|
||||
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Caching $i in .Recover...
|
||||
fi
|
||||
mv $i .Recover
|
||||
fi
|
||||
mv new $i
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# End of file.
|
||||
|
@ -1,3 +0,0 @@
|
||||
# Target: Big-endian IDT board running MagiCAP
|
||||
TDEPFILES= mips-tdep.o remote-mips.o magic.o
|
||||
TM_FILE= tm-magic.h
|
@ -4,7 +4,7 @@
|
||||
XDEPFILES= coredep.o
|
||||
NATDEPFILES= mipsm3-nat.o m3-nat.o
|
||||
XM_FILE= xm-mipsm3.h
|
||||
NAT_FILE= nm-m3.h
|
||||
NAT_FILE= ../nm-m3.h
|
||||
|
||||
# Don't use the mmalloc library in Mach 3.
|
||||
MMALLOC =
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Host: Mips running SVR4
|
||||
XM_FILE= xm-mipsv4.h
|
||||
NAT_FILE= nm-sysv4.h
|
||||
NAT_FILE= ../nm-sysv4.h
|
||||
NATDEPFILES= fork-child.o procfs.o mipsv4-nat.o corelow.o core-svr4.o solib.o
|
||||
|
@ -1,22 +0,0 @@
|
||||
/* Native-dependent definitions for mips running Mach 3.
|
||||
Copyright 1994 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* Include the generic Mach 3 definitions. */
|
||||
|
||||
#include "nm-m3.h"
|
@ -1,4 +1,4 @@
|
||||
/* Definitions for GDB on mips.
|
||||
/* Native definitions for GDB on DECstations, Sony News. and MIPS Riscos systems
|
||||
Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
|
||||
Contributed by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin
|
||||
and by Alessandro Forin(af@cs.cmu.edu) at CMU
|
||||
|
@ -1,22 +0,0 @@
|
||||
/* Native-dependent definitions for mips running SVR4.
|
||||
Copyright 1994 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* Include the generic SVR4 definitions. */
|
||||
|
||||
#include "nm-sysv4.h"
|
@ -22,3 +22,39 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#undef DEFAULT_MIPS_TYPE
|
||||
#define DEFAULT_MIPS_TYPE "r3051"
|
||||
|
||||
/* start-sanitize-gm */
|
||||
#ifdef GENERAL_MAGIC
|
||||
|
||||
#include "tm-magic.h" /* Include generic stuff */
|
||||
|
||||
/* For some reason GM can't hack this... */
|
||||
|
||||
#undef GET_LONGJMP_TARGET
|
||||
|
||||
/* Watchpoint support */
|
||||
|
||||
#define TARGET_HAS_HARDWARE_WATCHPOINTS
|
||||
|
||||
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
|
||||
(1 == 1) /* We allow all types of hardware watchpoints */
|
||||
|
||||
/* Use these macros for watchpoint insertion/deletion. */
|
||||
/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */
|
||||
|
||||
#define target_insert_watchpoint(addr, len, type) \
|
||||
remote_mips_set_watchpoint (addr, len, type)
|
||||
|
||||
#define target_remove_watchpoint(addr, len, type) \
|
||||
remote_mips_remove_watchpoint (addr, len, type)
|
||||
|
||||
/* We need to remove watchpoints when stepping, else we hit them again! */
|
||||
|
||||
#define HAVE_NONSTEPPABLE_WATCHPOINT
|
||||
|
||||
#define STOPPED_BY_WATCHPOINT(w) remote_mips_stopped_by_watchpoint ()
|
||||
|
||||
#define FLUSH_CACHED_MEMORY() flush_cached_memory()
|
||||
|
||||
#endif /* GENERAL_MAGIC */
|
||||
/* end-sanitize-gm */
|
||||
|
@ -44,3 +44,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
#undef SIGFRAME_FPREGSAVE_OFF
|
||||
#define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 2 * 4 + 8 + 32 * 8 + 4)
|
||||
#define SIGFRAME_REG_SIZE 8
|
||||
|
||||
/* start-sanitize-gm */
|
||||
#ifdef GENERAL_MAGIC
|
||||
#include "tm-magic.h"
|
||||
#endif /* GENERAL_MAGIC */
|
||||
/* end-sanitize-gm */
|
||||
|
@ -1,53 +0,0 @@
|
||||
/* Definitions for General Magic MIPS target.
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include "mips/tm-idt.h"
|
||||
|
||||
/* For some reason GM can't hack this... */
|
||||
|
||||
#undef GET_LONGJMP_TARGET
|
||||
|
||||
#define GENERAL_MAGIC_HACKS
|
||||
|
||||
#define SEND_BREAK_ON_QUIT
|
||||
|
||||
|
||||
/* Watchpoint support */
|
||||
|
||||
#define TARGET_HAS_HARDWARE_WATCHPOINTS
|
||||
|
||||
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
|
||||
(1 == 1) /* We allow all types of hardware watchpoints */
|
||||
|
||||
/* Use these macros for watchpoint insertion/deletion. */
|
||||
/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */
|
||||
|
||||
#define target_insert_watchpoint(addr, len, type) \
|
||||
remote_mips_set_watchpoint (addr, len, type)
|
||||
|
||||
#define target_remove_watchpoint(addr, len, type) \
|
||||
remote_mips_remove_watchpoint (addr, len, type)
|
||||
|
||||
/* We need to remove watchpoints when stepping, else we hit them again! */
|
||||
|
||||
#define HAVE_NONSTEPPABLE_WATCHPOINT
|
||||
|
||||
#define STOPPED_BY_WATCHPOINT(w) remote_mips_stopped_by_watchpoint ()
|
||||
|
||||
#define FLUSH_CACHED_MEMORY() flush_cached_memory()
|
@ -33,7 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
#endif
|
||||
|
||||
#if !defined (TARGET_MONITOR_PROMPT)
|
||||
#define TARGET_MONITOR_PROMPT { '<', 'I', 'D', 'T', '>' }
|
||||
#define TARGET_MONITOR_PROMPT "<IDT>"
|
||||
#endif
|
||||
|
||||
/* Floating point is IEEE compliant */
|
||||
|
40
gdb/config/tm-magic.h
Normal file
40
gdb/config/tm-magic.h
Normal file
@ -0,0 +1,40 @@
|
||||
/* Definitions for General Magic target.
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include "magic.h"
|
||||
|
||||
#define TARGET_SYMFILE_POSTREAD(OBJFILE) init_magic ()
|
||||
|
||||
#define TARGET_CREATE_INFERIOR_HOOK(PID) magic_create_inferior_hook ()
|
||||
|
||||
/* Magic Cap method stepping support.
|
||||
We use the shared library trampoline support to implement stepping over
|
||||
the method dispatcher. We consider the entire dispatcher to be one big
|
||||
trampoline, and use SKIP_TRAMPOLINE_CODE() to skip from a dispatcher
|
||||
entry point to the dispatcher exit site, or from the exit site to the
|
||||
first instruction of the dispatched-to method. */
|
||||
|
||||
#define SKIP_TRAMPOLINE_CODE(pc) \
|
||||
magic_skip_dispatcher(pc)
|
||||
|
||||
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
|
||||
magic_in_dispatcher(pc, name)
|
||||
|
||||
#define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \
|
||||
magic_in_dispatcher(pc, name)
|
291
gdb/configure
vendored
291
gdb/configure
vendored
@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated automatically using autoconf version 2.4
|
||||
# Generated automatically using autoconf version 2.4.2
|
||||
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
#
|
||||
# This configure script is free software; the Free Software Foundation
|
||||
@ -13,6 +13,8 @@ ac_default_prefix=/usr/local
|
||||
# Any additions from configure.in:
|
||||
ac_help="$ac_help
|
||||
--enable-netrom "
|
||||
ac_help="$ac_help
|
||||
--enable-gm "
|
||||
ac_help="$ac_help
|
||||
--enable-gdbtk "
|
||||
ac_help="$ac_help
|
||||
@ -39,6 +41,18 @@ target=NONE
|
||||
verbose=
|
||||
x_includes=NONE
|
||||
x_libraries=NONE
|
||||
bindir='${exec_prefix}/bin'
|
||||
sbindir='${exec_prefix}/sbin'
|
||||
libexecdir='${exec_prefix}/libexec'
|
||||
datadir='${prefix}/share'
|
||||
sysconfdir='${prefix}/etc'
|
||||
sharedstatedir='${prefix}/com'
|
||||
localstatedir='${prefix}/var'
|
||||
libdir='${exec_prefix}/lib'
|
||||
includedir='${prefix}/include'
|
||||
oldincludedir='/usr/include'
|
||||
infodir='${prefix}/info'
|
||||
mandir='${prefix}/man'
|
||||
|
||||
# Initialize some other variables.
|
||||
subdirs=
|
||||
@ -63,9 +77,14 @@ do
|
||||
|
||||
case "$ac_option" in
|
||||
|
||||
-build | --build | --buil | --bui | --bu | --b)
|
||||
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
||||
ac_prev=bindir ;;
|
||||
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
||||
bindir="$ac_optarg" ;;
|
||||
|
||||
-build | --build | --buil | --bui | --bu)
|
||||
ac_prev=build ;;
|
||||
-build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
|
||||
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
||||
build="$ac_optarg" ;;
|
||||
|
||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||
@ -75,6 +94,12 @@ do
|
||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||
cache_file="$ac_optarg" ;;
|
||||
|
||||
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
||||
ac_prev=datadir ;;
|
||||
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
||||
| --da=*)
|
||||
datadir="$ac_optarg" ;;
|
||||
|
||||
-disable-* | --disable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
@ -125,12 +150,26 @@ Configuration:
|
||||
Directory and file names:
|
||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||
[$ac_default_prefix]
|
||||
--exec-prefix=PREFIX install architecture-dependent files in PREFIX
|
||||
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
||||
[same as prefix]
|
||||
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
||||
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
||||
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
||||
--datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
|
||||
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
||||
--sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
|
||||
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
||||
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
||||
--includedir=DIR C header files in DIR [PREFIX/include]
|
||||
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
||||
--infodir=DIR info documentation in DIR [PREFIX/info]
|
||||
--mandir=DIR man documentation in DIR [PREFIX/man]
|
||||
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
||||
EOF
|
||||
cat << EOF
|
||||
Host type:
|
||||
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
||||
--host=HOST configure for HOST [guessed]
|
||||
@ -151,6 +190,44 @@ EOF
|
||||
-host=* | --host=* | --hos=* | --ho=*)
|
||||
host="$ac_optarg" ;;
|
||||
|
||||
-includedir | --includedir | --includedi | --included | --include \
|
||||
| --includ | --inclu | --incl | --inc)
|
||||
ac_prev=includedir ;;
|
||||
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
||||
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
||||
includedir="$ac_optarg" ;;
|
||||
|
||||
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
||||
ac_prev=infodir ;;
|
||||
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
||||
infodir="$ac_optarg" ;;
|
||||
|
||||
-libdir | --libdir | --libdi | --libd)
|
||||
ac_prev=libdir ;;
|
||||
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
||||
libdir="$ac_optarg" ;;
|
||||
|
||||
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
||||
| --libexe | --libex | --libe)
|
||||
ac_prev=libexecdir ;;
|
||||
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
||||
| --libexe=* | --libex=* | --libe=*)
|
||||
libexecdir="$ac_optarg" ;;
|
||||
|
||||
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
||||
| --localstate | --localstat | --localsta | --localst \
|
||||
| --locals | --local | --loca | --loc | --lo)
|
||||
ac_prev=localstatedir ;;
|
||||
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
||||
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
||||
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
||||
localstatedir="$ac_optarg" ;;
|
||||
|
||||
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
||||
ac_prev=mandir ;;
|
||||
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
||||
mandir="$ac_optarg" ;;
|
||||
|
||||
-nfp | --nfp | --nf)
|
||||
# Obsolete; use --without-fp.
|
||||
with_fp=no ;;
|
||||
@ -163,6 +240,15 @@ EOF
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
||||
no_recursion=yes ;;
|
||||
|
||||
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
||||
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
||||
| --oldin | --oldi | --old | --ol | --o)
|
||||
ac_prev=oldincludedir ;;
|
||||
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
||||
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
||||
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
||||
oldincludedir="$ac_optarg" ;;
|
||||
|
||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
||||
ac_prev=prefix ;;
|
||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
||||
@ -203,6 +289,23 @@ EOF
|
||||
| -silent | --silent | --silen | --sile | --sil)
|
||||
silent=yes ;;
|
||||
|
||||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
||||
ac_prev=sbindir ;;
|
||||
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
||||
| --sbi=* | --sb=*)
|
||||
sbindir="$ac_optarg" ;;
|
||||
|
||||
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
||||
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
||||
| --sharedst | --shareds | --shared | --share | --shar \
|
||||
| --sha | --sh)
|
||||
ac_prev=sharedstatedir ;;
|
||||
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
||||
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
||||
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
||||
| --sha=* | --sh=*)
|
||||
sharedstatedir="$ac_optarg" ;;
|
||||
|
||||
-site | --site | --sit)
|
||||
ac_prev=site ;;
|
||||
-site=* | --site=* | --sit=*)
|
||||
@ -213,6 +316,13 @@ EOF
|
||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||
srcdir="$ac_optarg" ;;
|
||||
|
||||
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
||||
| --syscon | --sysco | --sysc | --sys | --sy)
|
||||
ac_prev=sysconfdir ;;
|
||||
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
||||
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
||||
sysconfdir="$ac_optarg" ;;
|
||||
|
||||
-target | --target | --targe | --targ | --tar | --ta | --t)
|
||||
ac_prev=target ;;
|
||||
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
||||
@ -222,7 +332,7 @@ EOF
|
||||
verbose=yes ;;
|
||||
|
||||
-version | --version | --versio | --versi | --vers)
|
||||
echo "configure generated by autoconf version 2.4"
|
||||
echo "configure generated by autoconf version 2.4.2"
|
||||
exit 0 ;;
|
||||
|
||||
-with-* | --with-*)
|
||||
@ -387,9 +497,12 @@ fi
|
||||
|
||||
ac_ext=c
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
|
||||
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
|
||||
ac_cpp='echo $CPP $CPPFLAGS 1>&5;
|
||||
$CPP $CPPFLAGS'
|
||||
ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
|
||||
${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
|
||||
ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
|
||||
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
|
||||
|
||||
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
||||
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
||||
@ -416,7 +529,7 @@ else
|
||||
ac_cv_prog_CC="$CC" # Let the user override the test.
|
||||
else
|
||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||
for ac_dir in $PATH; do
|
||||
for ac_dir in cc; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if test -f $ac_dir/$ac_word; then
|
||||
ac_cv_prog_CC="gcc"
|
||||
@ -450,6 +563,7 @@ else
|
||||
ac_cv_prog_gcc=no
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
||||
if test $ac_cv_prog_gcc = yes; then
|
||||
GCC=yes
|
||||
@ -467,7 +581,8 @@ fi
|
||||
rm -f conftest*
|
||||
|
||||
fi
|
||||
echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
|
||||
|
||||
echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
|
||||
if test $ac_cv_prog_gcc_g = yes; then
|
||||
CFLAGS="-g -O"
|
||||
else
|
||||
@ -494,7 +609,7 @@ else
|
||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||
# not just through cpp.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 498 "configure"
|
||||
#line 613 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
@ -508,7 +623,7 @@ else
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -E -traditional-cpp"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 512 "configure"
|
||||
#line 627 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
@ -535,7 +650,7 @@ echo "$ac_t""$CPP" 1>&6
|
||||
|
||||
echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 539 "configure"
|
||||
#line 654 "configure"
|
||||
#include "confdefs.h"
|
||||
#ifdef _AIX
|
||||
yes
|
||||
@ -562,7 +677,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 566 "configure"
|
||||
#line 681 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <minix/config.h>
|
||||
EOF
|
||||
@ -680,10 +795,17 @@ else
|
||||
esac
|
||||
done
|
||||
IFS="$ac_save_ifs"
|
||||
# As a last resort, use the slow shell script.
|
||||
test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
|
||||
|
||||
fi
|
||||
INSTALL="$ac_cv_path_install"
|
||||
if test "${ac_cv_path_install+set}" = set; then
|
||||
INSTALL="$ac_cv_path_install"
|
||||
else
|
||||
# As a last resort, use the slow shell script. We don't cache a
|
||||
# path for INSTALL within a source directory, because that will
|
||||
# break other packages using the cache if that directory is
|
||||
# removed, or if the path is relative.
|
||||
INSTALL="$ac_install_sh"
|
||||
fi
|
||||
fi
|
||||
echo "$ac_t""$INSTALL" 1>&6
|
||||
|
||||
@ -703,7 +825,7 @@ else
|
||||
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
||||
else
|
||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||
for ac_dir in $PATH; do
|
||||
for ac_dir in :; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if test -f $ac_dir/$ac_word; then
|
||||
ac_cv_prog_RANLIB="ranlib"
|
||||
@ -887,7 +1009,7 @@ else
|
||||
ac_cv_c_cross=yes
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 891 "configure"
|
||||
#line 1013 "configure"
|
||||
#include "confdefs.h"
|
||||
main(){return(0);}
|
||||
EOF
|
||||
@ -900,15 +1022,16 @@ fi
|
||||
fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
cross_compiling=$ac_cv_c_cross
|
||||
|
||||
echo "$ac_t""$ac_cv_c_cross" 1>&6
|
||||
cross_compiling=$ac_cv_c_cross
|
||||
|
||||
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 912 "configure"
|
||||
#line 1035 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
@ -930,7 +1053,7 @@ rm -f conftest*
|
||||
if test $ac_cv_header_stdc = yes; then
|
||||
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 934 "configure"
|
||||
#line 1057 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <string.h>
|
||||
EOF
|
||||
@ -948,7 +1071,7 @@ fi
|
||||
if test $ac_cv_header_stdc = yes; then
|
||||
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 952 "configure"
|
||||
#line 1075 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdlib.h>
|
||||
EOF
|
||||
@ -969,7 +1092,7 @@ if test "$cross_compiling" = yes; then
|
||||
ac_cv_header_stdc=no
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 973 "configure"
|
||||
#line 1096 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <ctype.h>
|
||||
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
||||
@ -990,6 +1113,7 @@ fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
||||
if test $ac_cv_header_stdc = yes; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
@ -1006,7 +1130,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1010 "configure"
|
||||
#line 1134 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$ac_hdr>
|
||||
EOF
|
||||
@ -1024,7 +1148,7 @@ rm -f conftest*
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
|
||||
ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
|
||||
cat >> confdefs.h <<EOF
|
||||
#define $ac_tr_hdr 1
|
||||
EOF
|
||||
@ -1039,7 +1163,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1043 "configure"
|
||||
#line 1167 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@ -1080,6 +1204,7 @@ fi
|
||||
rm -f conftest*
|
||||
|
||||
fi
|
||||
|
||||
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
|
||||
if test $ac_cv_header_stat_broken = yes; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
@ -1097,7 +1222,7 @@ else
|
||||
ac_cv_func_mmap=no
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1101 "configure"
|
||||
#line 1226 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
/* Thanks to Mike Haertel and Jim Avera for this test. */
|
||||
@ -1181,6 +1306,7 @@ fi
|
||||
fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
|
||||
echo "$ac_t""$ac_cv_func_mmap" 1>&6
|
||||
if test $ac_cv_func_mmap = yes; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
@ -1195,8 +1321,8 @@ ENABLE_CLIBS=
|
||||
ENABLE_OBS=
|
||||
|
||||
# Check whether --enable-netrom or --disable-netrom was given.
|
||||
enableval="$enable_netrom"
|
||||
if test -n "$enableval"; then
|
||||
if test "${enable_netrom+set}" = set; then
|
||||
enableval="$enable_netrom"
|
||||
case "${enableval}" in
|
||||
yes) enable_netrom=yes ;;
|
||||
no) enable_netrom=no ;;
|
||||
@ -1209,12 +1335,30 @@ if test "${enable_netrom}" = "yes"; then
|
||||
ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
|
||||
fi
|
||||
|
||||
# start-sanitize-gm
|
||||
ENABLE_GM=
|
||||
|
||||
# Check whether --enable-gm or --disable-gm was given.
|
||||
if test "${enable_gm+set}" = set; then
|
||||
enableval="$enable_gm"
|
||||
case "${enableval}" in
|
||||
yes) ENABLE_OBS="${ENABLE_OBS} magic.o"
|
||||
ENABLE_CFLAGS=-DGENERAL_MAGIC
|
||||
;;
|
||||
no) ;;
|
||||
*) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
# end-sanitize-gm
|
||||
|
||||
# start-sanitize-gdbtk
|
||||
ENABLE_GDBTK=
|
||||
|
||||
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
||||
enableval="$enable_gdbtk"
|
||||
if test -n "$enableval"; then
|
||||
if test "${enable_gdbtk+set}" = set; then
|
||||
enableval="$enable_gdbtk"
|
||||
case "${enableval}" in
|
||||
yes) enable_gdbtk=yes ;;
|
||||
no) enable_gdbtk=no ;;
|
||||
@ -1231,8 +1375,8 @@ if test "${enable_gdbtk}" = "yes"; then
|
||||
echo $ac_n "checking for X""... $ac_c" 1>&6
|
||||
|
||||
# Check whether --with-x or --without-x was given.
|
||||
withval="$with_x"
|
||||
if test -n "$withval"; then
|
||||
if test "${with_x+set}" = set; then
|
||||
withval="$with_x"
|
||||
:
|
||||
fi
|
||||
|
||||
@ -1285,7 +1429,7 @@ test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
||||
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
||||
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1289 "configure"
|
||||
#line 1433 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$x_direct_test_include>
|
||||
EOF
|
||||
@ -1348,7 +1492,7 @@ rm -f conftest*
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-l$x_direct_test_library $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1352 "configure"
|
||||
#line 1496 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1460,13 +1604,14 @@ else
|
||||
# libraries we check for below, so use a different variable.
|
||||
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
||||
echo $ac_n "checking for -lICE""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
|
||||
ac_lib_var=`echo ICE | tr '+./' 'p__'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lICE $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1470 "configure"
|
||||
#line 1615 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1476,16 +1621,16 @@ IceConnectionNumber()
|
||||
EOF
|
||||
if eval $ac_link; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_ICE=yes"
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_ICE=no"
|
||||
eval "ac_cv_lib_$ac_lib_var=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
|
||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
||||
else
|
||||
@ -1503,13 +1648,14 @@ fi
|
||||
# libraries were built with DECnet support. And karl@cs.umb.edu says
|
||||
# the Alpha needs dnet_stub (dnet does not exist).
|
||||
echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
|
||||
ac_lib_var=`echo dnet | tr '+./' 'p__'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-ldnet $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1513 "configure"
|
||||
#line 1659 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1519,16 +1665,16 @@ dnet_ntoa()
|
||||
EOF
|
||||
if eval $ac_link; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_dnet=yes"
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_dnet=no"
|
||||
eval "ac_cv_lib_$ac_lib_var=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
|
||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
||||
else
|
||||
@ -1537,13 +1683,14 @@ fi
|
||||
|
||||
if test $ac_cv_lib_dnet = no; then
|
||||
echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
|
||||
ac_lib_var=`echo dnet_stub | tr '+./' 'p__'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-ldnet_stub $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1547 "configure"
|
||||
#line 1694 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1553,16 +1700,16 @@ dnet_ntoa()
|
||||
EOF
|
||||
if eval $ac_link; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_dnet_stub=yes"
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_dnet_stub=no"
|
||||
eval "ac_cv_lib_$ac_lib_var=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
|
||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
||||
else
|
||||
@ -1576,13 +1723,14 @@ fi
|
||||
# Not sure which flavor of 386 UNIX this is, but it seems harmless to
|
||||
# check for it.
|
||||
echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
|
||||
ac_lib_var=`echo nsl | tr '+./' 'p__'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lnsl $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1586 "configure"
|
||||
#line 1734 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1592,16 +1740,16 @@ t_accept()
|
||||
EOF
|
||||
if eval $ac_link; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_nsl=yes"
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_nsl=no"
|
||||
eval "ac_cv_lib_$ac_lib_var=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
|
||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
||||
else
|
||||
@ -1614,13 +1762,14 @@ fi
|
||||
# But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
|
||||
if test "`(uname) 2>/dev/null`" != IRIX; then
|
||||
echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
|
||||
ac_lib_var=`echo socket | tr '+./' 'p__'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lsocket $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1624 "configure"
|
||||
#line 1773 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() { return 0; }
|
||||
@ -1630,16 +1779,16 @@ socket()
|
||||
EOF
|
||||
if eval $ac_link; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_socket=yes"
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_socket=no"
|
||||
eval "ac_cv_lib_$ac_lib_var=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
|
||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
|
||||
else
|
||||
@ -1677,7 +1826,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1681 "configure"
|
||||
#line 1830 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <tk.h>
|
||||
EOF
|
||||
@ -1779,7 +1928,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1783 "configure"
|
||||
#line 1932 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <tclInt.h>
|
||||
EOF
|
||||
@ -2208,7 +2357,7 @@ mips64*-*-elf*) gdb_target=idt64 ;;
|
||||
mips*el-*-ecoff*) gdb_target=idtl ;;
|
||||
mips*-*-ecoff*) gdb_target=idt ;;
|
||||
# start-sanitize-gm
|
||||
mips*-*-magic*) gdb_target=magic ;;
|
||||
mips*-*-magic*) gdb_target=idt ;;
|
||||
# end-sanitize-gm
|
||||
mips*el-*-elf*) gdb_target=idtl ;;
|
||||
mips*-*-elf*) gdb_target=idt ;;
|
||||
@ -2438,7 +2587,7 @@ do
|
||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.4"
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
|
||||
exit 0 ;;
|
||||
-help | --help | --hel | --he | --h)
|
||||
echo "\$ac_cs_usage"; exit 0 ;;
|
||||
@ -2465,6 +2614,18 @@ s%@LIBS@%$LIBS%g
|
||||
s%@exec_prefix@%$exec_prefix%g
|
||||
s%@prefix@%$prefix%g
|
||||
s%@program_transform_name@%$program_transform_name%g
|
||||
s%@bindir@%$bindir%g
|
||||
s%@sbindir@%$sbindir%g
|
||||
s%@libexecdir@%$libexecdir%g
|
||||
s%@datadir@%$datadir%g
|
||||
s%@sysconfdir@%$sysconfdir%g
|
||||
s%@sharedstatedir@%$sharedstatedir%g
|
||||
s%@localstatedir@%$localstatedir%g
|
||||
s%@libdir@%$libdir%g
|
||||
s%@includedir@%$includedir%g
|
||||
s%@oldincludedir@%$oldincludedir%g
|
||||
s%@infodir@%$infodir%g
|
||||
s%@mandir@%$mandir%g
|
||||
s%@CC@%$CC%g
|
||||
s%@CPP@%$CPP%g
|
||||
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
||||
|
@ -39,6 +39,21 @@ if test "${enable_netrom}" = "yes"; then
|
||||
ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
|
||||
fi
|
||||
|
||||
# start-sanitize-gm
|
||||
ENABLE_GM=
|
||||
|
||||
AC_ARG_ENABLE(gm,
|
||||
[ --enable-gm ],
|
||||
[case "${enableval}" in
|
||||
yes) ENABLE_OBS="${ENABLE_OBS} magic.o"
|
||||
ENABLE_CFLAGS=-DGENERAL_MAGIC
|
||||
;;
|
||||
no) ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} given for gm option) ;;
|
||||
esac])
|
||||
|
||||
# end-sanitize-gm
|
||||
|
||||
# start-sanitize-gdbtk
|
||||
ENABLE_GDBTK=
|
||||
|
||||
@ -418,7 +433,7 @@ mips64*-*-elf*) gdb_target=idt64 ;;
|
||||
mips*el-*-ecoff*) gdb_target=idtl ;;
|
||||
mips*-*-ecoff*) gdb_target=idt ;;
|
||||
# start-sanitize-gm
|
||||
mips*-*-magic*) gdb_target=magic ;;
|
||||
mips*-*-magic*) gdb_target=idt ;;
|
||||
# end-sanitize-gm
|
||||
mips*el-*-elf*) gdb_target=idtl ;;
|
||||
mips*-*-elf*) gdb_target=idt ;;
|
||||
|
@ -238,6 +238,12 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
|
||||
/* We are now in the child process of interest, having exec'd the
|
||||
correct program, and are poised at the first instruction of the
|
||||
new program. */
|
||||
|
||||
/* Allow target dependant code to play with the new process. This might be
|
||||
used to have target-specific code initialize a variable in the new process
|
||||
prior to executing the first instruction. */
|
||||
TARGET_CREATE_INFERIOR_HOOK (pid);
|
||||
|
||||
#ifdef SOLIB_CREATE_INFERIOR_HOOK
|
||||
SOLIB_CREATE_INFERIOR_HOOK (pid);
|
||||
#endif
|
||||
|
1458
gdb/magic.c
1458
gdb/magic.c
File diff suppressed because it is too large
Load Diff
34
gdb/magic.h
34
gdb/magic.h
@ -1,6 +1,32 @@
|
||||
/* magic.h - Interface to the General Magic debugger extras */
|
||||
|
||||
extern void init_magic();
|
||||
extern CORE_ADDR deal_with_dispatch(CORE_ADDR pc);
|
||||
extern struct type *type_of_object(CORE_ADDR object);
|
||||
extern CORE_ADDR baseptr_of_object(CORE_ADDR object);
|
||||
/* object framework definitions, from FrameworkDefines.asm.h and Generic.h */
|
||||
|
||||
#define kIDBitObject 31 /* set for valid object IDs */
|
||||
#define kIDBitUsable 26 /* set if objectID is usable */
|
||||
|
||||
/* Return nonzero if <object> is a valid ObjectID */
|
||||
|
||||
#define IsObjectID(object) (((unsigned long)(object) & 0x80000000) != 0)
|
||||
|
||||
#define kSizeOfObjectHeader 12 /* size of object header in bytes */
|
||||
|
||||
/* public interfaces */
|
||||
|
||||
extern void
|
||||
init_magic PARAMS ((void));
|
||||
|
||||
extern void
|
||||
magic_create_inferior_hook PARAMS ((void));
|
||||
|
||||
extern struct type *
|
||||
type_of_object PARAMS ((CORE_ADDR object));
|
||||
|
||||
extern CORE_ADDR
|
||||
baseptr_of_object PARAMS ((CORE_ADDR object));
|
||||
|
||||
extern int
|
||||
magic_in_dispatcher PARAMS ((CORE_ADDR stop_pc, char *name));
|
||||
|
||||
extern CORE_ADDR
|
||||
magic_skip_dispatcher PARAMS ((CORE_ADDR stop_pc));
|
||||
|
@ -600,9 +600,9 @@ length_of_subexp (expr, endpos)
|
||||
case STRUCTOP_STRUCT:
|
||||
case STRUCTOP_PTR:
|
||||
/* start-sanitize-gm */
|
||||
#ifdef GENERAL_MAGIC_HACKS
|
||||
#ifdef GENERAL_MAGIC
|
||||
case STRUCTOP_FIELD:
|
||||
#endif /* GENERAL_MAGIC_HACKS */
|
||||
#endif /* GENERAL_MAGIC */
|
||||
/* end-sanitize-gm */
|
||||
args = 1;
|
||||
/* fall through */
|
||||
|
@ -1016,14 +1016,15 @@ mips_initialize_cleanups (arg)
|
||||
static void
|
||||
mips_initialize ()
|
||||
{
|
||||
char cr, cc;
|
||||
char buff[DATA_MAXLEN + 1];
|
||||
int err;
|
||||
struct cleanup *old_cleanups = make_cleanup (mips_initialize_cleanups, NULL);
|
||||
int j;
|
||||
|
||||
/* What is this code doing here? I don't see any way it can happen, and
|
||||
it might mean mips_initializing didn't get cleared properly.
|
||||
So I'll make it a warning. */
|
||||
|
||||
if (mips_initializing)
|
||||
{
|
||||
warning ("internal error: mips_initialize called twice");
|
||||
@ -1036,50 +1037,50 @@ mips_initialize ()
|
||||
mips_send_seq = 0;
|
||||
mips_receive_seq = 0;
|
||||
|
||||
if (mips_receive_packet (buff, 0, 3) < 0)
|
||||
/* At this point, the packit protocol isn't responding. We'll try getting
|
||||
into the monitor, and restarting the protocol. */
|
||||
|
||||
/* Force the system into the IDT monitor. After this we *should* be at the
|
||||
<IDT> prompt. */
|
||||
|
||||
for (j = 1; j <= 4; j++)
|
||||
{
|
||||
char cc;
|
||||
int i, j;
|
||||
char srec[10];
|
||||
|
||||
/* We did not receive the packet we expected; try resetting the
|
||||
board and trying again. */
|
||||
|
||||
/* Force the system into the IDT monitor. After this we *should* be at
|
||||
the <IDT> prompt. */
|
||||
|
||||
for (j = 1; j <= 4; j++)
|
||||
switch (j)
|
||||
{
|
||||
switch (j)
|
||||
{
|
||||
case 1: /* First, try sending a break */
|
||||
SERIAL_SEND_BREAK (mips_desc);
|
||||
break;
|
||||
case 2: /* Then, try a ^C */
|
||||
SERIAL_WRITE (mips_desc, "\003", 1); /* Send a ^C to wake up the monitor */
|
||||
break;
|
||||
case 3: /* Then, try escaping from download */
|
||||
/* We are possibly in binary download mode, having aborted in the middle
|
||||
of an S-record. ^C won't work because of binary mode. The only
|
||||
reliable way out is to send enough termination packets (8 bytes) to
|
||||
fill up and then overflow the largest size S-record (255 bytes in this
|
||||
case). This amounts to 256/8 + 1 packets. */
|
||||
case 1: /* First, try sending a break */
|
||||
SERIAL_SEND_BREAK (mips_desc);
|
||||
break;
|
||||
case 2: /* Then, try a ^C */
|
||||
SERIAL_WRITE (mips_desc, "\003", 1);
|
||||
break;
|
||||
case 3: /* Then, try escaping from download */
|
||||
{
|
||||
int i;
|
||||
char srec[10];
|
||||
|
||||
mips_make_srec (srec, '7', 0, NULL, 0);
|
||||
/* We are possibly in binary download mode, having aborted in the
|
||||
middle of an S-record. ^C won't work because of binary mode.
|
||||
The only reliable way out is to send enough termination packets
|
||||
(8 bytes) to fill up and then overflow the largest size S-record
|
||||
(255 bytes in this case). This amounts to 256/8 + 1 packets.
|
||||
*/
|
||||
|
||||
for (i = 1; i <= 33; i++)
|
||||
{
|
||||
SERIAL_WRITE (mips_desc, srec, 8);
|
||||
mips_make_srec (srec, '7', 0, NULL, 0);
|
||||
|
||||
if (SERIAL_READCHAR (mips_desc, 0) >= 0)
|
||||
break; /* Break immediatly if we get something from
|
||||
for (i = 1; i <= 33; i++)
|
||||
{
|
||||
SERIAL_WRITE (mips_desc, srec, 8);
|
||||
|
||||
if (SERIAL_READCHAR (mips_desc, 0) >= 0)
|
||||
break; /* Break immediatly if we get something from
|
||||
the board. */
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
mips_error ("Failed to initialize.");
|
||||
}
|
||||
if (mips_expect ("\015\012<IDT>"))
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
mips_error ("Failed to initialize.");
|
||||
}
|
||||
|
||||
if (mips_expect (TARGET_MONITOR_PROMPT))
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1101,6 +1102,7 @@ mips_initialize ()
|
||||
|
||||
/* If this doesn't call error, we have connected; we don't care if
|
||||
the request itself succeeds or fails. */
|
||||
|
||||
mips_request ('r', (unsigned int) 0, (unsigned int) 0, &err,
|
||||
mips_receive_wait, NULL);
|
||||
set_current_frame (create_new_frame (read_fp (), read_pc ()));
|
||||
@ -1219,12 +1221,12 @@ mips_resume (pid, step, siggnal)
|
||||
{
|
||||
|
||||
/* start-sanitize-gm */
|
||||
#ifndef GENERAL_MAGIC_HACKS
|
||||
#ifndef GENERAL_MAGIC
|
||||
if (siggnal != TARGET_SIGNAL_0)
|
||||
warning
|
||||
("Can't send signals to a remote system. Try `handle %s ignore'.",
|
||||
target_signal_to_name (siggnal));
|
||||
#endif /* GENERAL_MAGIC_HACKS */
|
||||
#endif /* GENERAL_MAGIC */
|
||||
/* end-sanitize-gm */
|
||||
|
||||
mips_request (step ? 's' : 'c',
|
||||
@ -1677,14 +1679,14 @@ Can't pass arguments to remote MIPS board; arguments ignored.");
|
||||
/* FIXME: Should we set inferior_pid here? */
|
||||
|
||||
/* start-sanitize-gm */
|
||||
#ifdef GENERAL_MAGIC_HACKS
|
||||
#ifdef GENERAL_MAGIC
|
||||
magic_create_inferior_hook ();
|
||||
proceed (entry_pt, TARGET_SIGNAL_PWR, 0);
|
||||
#else
|
||||
/* end-sanitize-gm */
|
||||
proceed (entry_pt, TARGET_SIGNAL_DEFAULT, 0);
|
||||
/* start-sanitize-gm */
|
||||
#endif
|
||||
#endif /* GENERAL_MAGIC */
|
||||
/* end-sanitize-gm */
|
||||
}
|
||||
|
||||
@ -1863,7 +1865,7 @@ common_breakpoint (cmd, addr, mask, flags)
|
||||
|
||||
if (rerrflg != 0)
|
||||
{
|
||||
if (rerrflg != EINVAL)
|
||||
if (rresponse != EINVAL)
|
||||
fprintf_unfiltered (stderr, "common_breakpoint (0x%x): Got error: 0x%x\n",
|
||||
addr, rresponse);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user