1996-01-05 17:11:45 +00:00
|
|
|
dnl Autoconf configure script for GDB, the GNU debugger.
|
1998-10-06 22:24:40 +00:00
|
|
|
dnl Copyright 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
1996-01-05 17:11:45 +00:00
|
|
|
dnl
|
|
|
|
dnl This file is part of GDB.
|
|
|
|
dnl
|
|
|
|
dnl This program is free software; you can redistribute it and/or modify
|
|
|
|
dnl it under the terms of the GNU General Public License as published by
|
|
|
|
dnl the Free Software Foundation; either version 2 of the License, or
|
|
|
|
dnl (at your option) any later version.
|
|
|
|
dnl
|
|
|
|
dnl This program is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
dnl GNU General Public License for more details.
|
|
|
|
dnl
|
|
|
|
dnl You should have received a copy of the GNU General Public License
|
|
|
|
dnl along with this program; if not, write to the Free Software
|
1996-02-21 17:38:36 +00:00
|
|
|
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1996-01-05 17:11:45 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-01-05 17:11:45 +00:00
|
|
|
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
Use autoconf set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
* nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
* nlm/configure: Rebuilt.
* gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1996-06-25 13:08:00 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_INIT(main.c)
|
1996-03-21 15:59:01 +00:00
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_AIX
|
|
|
|
AC_ISC_POSIX
|
|
|
|
|
1997-03-13 20:39:56 +00:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
|
1996-08-27 11:32:34 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
1998-04-22 21:56:04 +00:00
|
|
|
dnl gdb doesn't use gettext, but bfd does. We call this to ensure we
|
|
|
|
dnl link with the correct libraries.
|
|
|
|
ALL_LINGUAS=
|
|
|
|
CY_GNU_GETTEXT
|
|
|
|
|
1997-02-27 17:46:18 +00:00
|
|
|
dnl List of object files added by configure.
|
|
|
|
|
|
|
|
CONFIG_OBS=
|
* tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
the directory name
* Merge (lots) with foundry-971118-build
* Makefile.in (install-only): install the new gdbtk, not the old
* top.h: add declaration of get_prompt
* top.c (get_prompt): new function
* gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
commands
(gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
"gdb_get_function", "gdb_get_line", "gdb_get_file",
"gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
and "gdb_prompt"
(gdb_get_vars_command): new function
(gdb_get_line_command): new function
(gdb_get_file_command): new function
(gdb_get_function_command): new function
(gdb_get_tracepoint_info): new function
(gdbtk_create_tracepoint): new function
(gdbtk_delete_tracepoint): new function
(tracepoint_notify): new function
(tracepoint_exists): new function
(gdb_actions_command): new function
(gdb_tracepoint_exists_command): new function
(gdb_prompt_command): new function
* main.tcl: initialize gdbtk_state(readline)
* console.tcl (invoke): get realine working
(activate): add prompt argument for readline
(setprompt): add prompt argument for readline
* interface.tcl (gdbtk_tcl_readline): hack to get readline working
* lots: Merge with foundry-971118-build
* console.tcl (setprompt): get prompt from gdb
* prefs.tcl (pref_set_defaults): add tracepoint defaults
* interface.tcl (gdbtk_tcl_tracepoint): new function
* src.tcl (constructor): set default behavior of left click, make
a tracepoint dot, too
(fill_files): "new" function: ripped out of "location"
(location): use fill_files instead
(do_bp): add support for tracepoints
(bp_line): add support for tracepoints
(set_tracepoint): new function
(config_win): add "Set tracepoint here" to right-click menu
* actiondlg.tcl: new file to help with tracepoint data collection actions
* tracedlg.tcl: new file to help with tracepoints
1997-11-26 22:38:10 +00:00
|
|
|
CONFIG_DEPS=
|
1998-02-05 01:47:26 +00:00
|
|
|
CONFIG_SRCS=
|
1997-02-27 17:46:18 +00:00
|
|
|
|
|
|
|
configdirs="doc testsuite"
|
|
|
|
|
|
|
|
dnl
|
|
|
|
changequote(,)dnl
|
|
|
|
|
|
|
|
. ${srcdir}/configure.host
|
|
|
|
|
|
|
|
. ${srcdir}/configure.tgt
|
|
|
|
|
|
|
|
dnl
|
|
|
|
changequote([,])dnl
|
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_PROG_INSTALL
|
1996-04-12 06:14:46 +00:00
|
|
|
AC_CHECK_TOOL(AR, ar)
|
|
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
1995-10-10 20:19:37 +00:00
|
|
|
AC_PROG_YACC
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
|
1997-05-08 01:00:39 +00:00
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
|
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
|
|
|
AC_HEADER_STDC
|
1998-10-13 03:15:07 +00:00
|
|
|
AC_CHECK_HEADERS(ctype.h curses.h endian.h libintl.h link.h \
|
1998-08-18 23:04:24 +00:00
|
|
|
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
|
1998-10-13 03:15:07 +00:00
|
|
|
string.h sys/procfs.h sys/ptrace.h sys/reg.h \
|
1998-08-18 23:04:24 +00:00
|
|
|
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
|
1998-10-13 00:35:48 +00:00
|
|
|
wchar.h wctype.h asm/debugreg.h)
|
1998-06-10 21:08:38 +00:00
|
|
|
|
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
|
|
|
AC_HEADER_STAT
|
|
|
|
|
1996-08-13 00:01:37 +00:00
|
|
|
AC_C_CONST
|
|
|
|
|
1998-10-13 03:15:07 +00:00
|
|
|
AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc)
|
1998-05-13 22:38:55 +00:00
|
|
|
AC_FUNC_ALLOCA
|
1996-04-05 04:22:08 +00:00
|
|
|
|
1998-10-06 22:24:40 +00:00
|
|
|
BFD_NEED_DECLARATION(malloc)
|
|
|
|
BFD_NEED_DECLARATION(realloc)
|
|
|
|
BFD_NEED_DECLARATION(free)
|
|
|
|
BFD_NEED_DECLARATION(strerror)
|
|
|
|
BFD_NEED_DECLARATION(strdup)
|
|
|
|
|
1998-04-22 01:44:38 +00:00
|
|
|
# If we are configured native on GNU/Linux, work around problems with sys/procfs.h
|
1996-09-27 06:13:24 +00:00
|
|
|
if test "${target}" = "${host}"; then
|
|
|
|
case "${host}" in
|
1998-01-02 18:53:05 +00:00
|
|
|
i[[3456]]86-*-linux*)
|
* configure.in (--with-mmalloc): Add new configure arg to use the
mmalloc package. Default is to not use it.
(START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
the string "2".
* acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
* configure: Regenerated.
* config.in: Regenerated.
* Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
(MMALLOC): Set using configure.
(MMALLOC_CFLAGS): Set using configure.
* config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
than just defining it.
* mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
* utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
* objfiles.c: ditto.
* defs.h: ditto.
* config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
* config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
* config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
* gdbserver/Makefile.in (MMALLOC_*): Remove.
* config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
* config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
1998-01-14 04:28:29 +00:00
|
|
|
AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,2)
|
1996-09-27 06:13:24 +00:00
|
|
|
AC_DEFINE(sys_quotactl)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
1996-01-27 18:51:09 +00:00
|
|
|
AC_MSG_CHECKING([for gregset_t type])
|
1996-03-31 01:04:37 +00:00
|
|
|
AC_CACHE_VAL(gdb_cv_have_gregset_t,
|
1996-01-27 18:51:09 +00:00
|
|
|
[AC_TRY_LINK([#include <sys/procfs.h>],[gregset_t *gregsetp = 0],
|
1996-03-31 01:04:37 +00:00
|
|
|
gdb_cv_have_gregset_t=yes, gdb_cv_have_gregset_t=no)])
|
|
|
|
AC_MSG_RESULT($gdb_cv_have_gregset_t)
|
|
|
|
if test $gdb_cv_have_gregset_t = yes; then
|
1996-01-27 18:51:09 +00:00
|
|
|
AC_DEFINE(HAVE_GREGSET_T)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for fpregset_t type])
|
1996-03-31 01:04:37 +00:00
|
|
|
AC_CACHE_VAL(gdb_cv_have_fpregset_t,
|
1996-01-27 18:51:09 +00:00
|
|
|
[AC_TRY_LINK([#include <sys/procfs.h>],[fpregset_t *fpregsetp = 0],
|
1996-03-31 01:04:37 +00:00
|
|
|
gdb_cv_have_fpregset_t=yes, gdb_cv_have_fpregset_t=no)])
|
|
|
|
AC_MSG_RESULT($gdb_cv_have_fpregset_t)
|
|
|
|
if test $gdb_cv_have_fpregset_t = yes; then
|
1996-01-27 18:51:09 +00:00
|
|
|
AC_DEFINE(HAVE_FPREGSET_T)
|
|
|
|
fi
|
|
|
|
|
1997-01-22 01:12:19 +00:00
|
|
|
dnl See if host has libm. This is usually needed by simulators.
|
|
|
|
AC_CHECK_LIB(m, main)
|
|
|
|
|
1998-10-14 23:44:13 +00:00
|
|
|
dnl Solaris puts wctype in /usr/lib/libw.a before Solaris 2.6.
|
|
|
|
dnl
|
|
|
|
dnl A bug in GNU ld 2.9.1 causes a problem if we link in -lw
|
|
|
|
dnl under Solaris 2.6 because it is some funky empty library.
|
|
|
|
dnl So only link in libw if we have to.
|
|
|
|
AC_CHECK_LIB(c, wctype,: ,AC_CHECK_LIB(w, wctype))
|
|
|
|
|
1996-07-28 06:32:48 +00:00
|
|
|
dnl See if compiler supports "long long" type.
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long long support in compiler)
|
|
|
|
AC_CACHE_VAL(gdb_cv_c_long_long,
|
1996-07-30 04:26:25 +00:00
|
|
|
[AC_TRY_COMPILE(, [
|
1996-08-23 00:47:10 +00:00
|
|
|
extern long long foo;
|
|
|
|
switch (foo & 2) { case 0: return 1; }
|
|
|
|
],
|
1996-07-28 06:32:48 +00:00
|
|
|
gdb_cv_c_long_long=yes, gdb_cv_c_long_long=no)])
|
|
|
|
AC_MSG_RESULT($gdb_cv_c_long_long)
|
|
|
|
if test $gdb_cv_c_long_long = yes; then
|
|
|
|
AC_DEFINE(CC_HAS_LONG_LONG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl See if the compiler and runtime support printing long long
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long long support in printf)
|
|
|
|
AC_CACHE_VAL(gdb_cv_printf_has_long_long,
|
|
|
|
[AC_TRY_RUN([
|
|
|
|
int main () {
|
1997-11-24 06:50:12 +00:00
|
|
|
char buf[32];
|
|
|
|
long long l = 0;
|
|
|
|
l = (l << 16) + 0x0123;
|
|
|
|
l = (l << 16) + 0x4567;
|
|
|
|
l = (l << 16) + 0x89ab;
|
|
|
|
l = (l << 16) + 0xcdef;
|
|
|
|
sprintf (buf, "0x%016llx", l);
|
|
|
|
return (strcmp ("0x0123456789abcdef", buf));
|
1996-07-28 06:32:48 +00:00
|
|
|
}],
|
|
|
|
gdb_cv_printf_has_long_long=yes,
|
|
|
|
gdb_cv_printf_has_long_long=no,
|
|
|
|
gdb_cv_printf_has_long_long=no)])
|
|
|
|
if test $gdb_cv_printf_has_long_long = yes; then
|
|
|
|
AC_DEFINE(PRINTF_HAS_LONG_LONG)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($gdb_cv_printf_has_long_long)
|
|
|
|
|
* Add native support for long double data type.
* c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
to store actual data. Change types of INT and FLOAT tokens to
typed_val_int and typed_val_float respectively. Create new token
DOUBLE_KEYWORD to specify the string `double'. Make production
for FLOAT use type determined by parse_number. Add production for
"long double" data type.
* (parse_number): Use sscanf to parse numbers as float, double or
long double depending upon the type of typed_val_float.dval. Also
allow user to specify `f' or `l' suffix to explicitly specify
float or long double constants. Change typed_val to
typed_val_int.
* (yylex): Change typed_val to typed_val_int. Also, scan for
"double" keyword.
* coffread.c (decode_base_type): Add support for T_LNGDBL basic
type.
* configure, configure.in: Add check for long double support in
the host compiler.
* defs.h: Define DOUBLEST appropriatly depending on whether
HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
for functions that handle this type.
* expression.h (union exp_element): doubleconst is now type
DOUBLEST.
* m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
* findvar.c (extract_floating): Make return value be DOUBLEST.
Also, add support for numbers with size of long double.
* (store_floating): Arg `val' is now type DOUBLEST. Handle all
floating types.
* parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
DOUBLEST.
* valarith.c (value_binop): Change temp variables v1, v2 and v to
type DOUBLEST. Coerce type of result to long double if either op
was of that type.
* valops.c (value_arg_coerce): If argument type is bigger than
double, coerce to long double.
* (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
arg type is float and > 8 bytes, then use pointer-to-object
calling conventions.
* valprint.c (print_floating): Arg doub is now type DOUBLEST.
Use appropriate format and precision to print out floating point
values.
* value.h: Fixup prototypes for value_as_double,
value_from_double, and unpack_double to use DOUBLEST.
* values.c (record_latest_value): Remove check for invalid
floats. Allow history to store them so that people may examine
them in hex if they want.
* (value_as_double unpack_double): Change return value to DOUBLEST.
* (value_from_double): Arg `num' is now DOUBLEST.
* (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
specific) to expect certain types to always be returned on the stack.
1996-02-17 00:07:35 +00:00
|
|
|
dnl See if compiler supports "long double" type. Can't use AC_C_LONG_DOUBLE
|
|
|
|
dnl because autoconf complains about cross-compilation issues. However, this
|
|
|
|
dnl code uses the same variables as the macro for compatibility.
|
|
|
|
|
1996-03-31 01:04:37 +00:00
|
|
|
AC_MSG_CHECKING(for long double support in compiler)
|
* Add native support for long double data type.
* c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
to store actual data. Change types of INT and FLOAT tokens to
typed_val_int and typed_val_float respectively. Create new token
DOUBLE_KEYWORD to specify the string `double'. Make production
for FLOAT use type determined by parse_number. Add production for
"long double" data type.
* (parse_number): Use sscanf to parse numbers as float, double or
long double depending upon the type of typed_val_float.dval. Also
allow user to specify `f' or `l' suffix to explicitly specify
float or long double constants. Change typed_val to
typed_val_int.
* (yylex): Change typed_val to typed_val_int. Also, scan for
"double" keyword.
* coffread.c (decode_base_type): Add support for T_LNGDBL basic
type.
* configure, configure.in: Add check for long double support in
the host compiler.
* defs.h: Define DOUBLEST appropriatly depending on whether
HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
for functions that handle this type.
* expression.h (union exp_element): doubleconst is now type
DOUBLEST.
* m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
* findvar.c (extract_floating): Make return value be DOUBLEST.
Also, add support for numbers with size of long double.
* (store_floating): Arg `val' is now type DOUBLEST. Handle all
floating types.
* parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
DOUBLEST.
* valarith.c (value_binop): Change temp variables v1, v2 and v to
type DOUBLEST. Coerce type of result to long double if either op
was of that type.
* valops.c (value_arg_coerce): If argument type is bigger than
double, coerce to long double.
* (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
arg type is float and > 8 bytes, then use pointer-to-object
calling conventions.
* valprint.c (print_floating): Arg doub is now type DOUBLEST.
Use appropriate format and precision to print out floating point
values.
* value.h: Fixup prototypes for value_as_double,
value_from_double, and unpack_double to use DOUBLEST.
* values.c (record_latest_value): Remove check for invalid
floats. Allow history to store them so that people may examine
them in hex if they want.
* (value_as_double unpack_double): Change return value to DOUBLEST.
* (value_from_double): Arg `num' is now DOUBLEST.
* (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
specific) to expect certain types to always be returned on the stack.
1996-02-17 00:07:35 +00:00
|
|
|
AC_CACHE_VAL(ac_cv_c_long_double,
|
|
|
|
[AC_TRY_COMPILE(, [long double foo;],
|
|
|
|
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)])
|
|
|
|
AC_MSG_RESULT($ac_cv_c_long_double)
|
|
|
|
if test $ac_cv_c_long_double = yes; then
|
|
|
|
AC_DEFINE(HAVE_LONG_DOUBLE)
|
|
|
|
fi
|
|
|
|
|
1996-03-31 01:04:37 +00:00
|
|
|
dnl See if the compiler and runtime support printing long doubles
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long double support in printf)
|
|
|
|
AC_CACHE_VAL(gdb_cv_printf_has_long_double,
|
|
|
|
[AC_TRY_RUN([
|
|
|
|
int main () {
|
|
|
|
char buf[16];
|
|
|
|
long double f = 3.141592653;
|
|
|
|
sprintf (buf, "%Lg", f);
|
|
|
|
return (strncmp ("3.14159", buf, 7));
|
|
|
|
}],
|
|
|
|
gdb_cv_printf_has_long_double=yes,
|
|
|
|
gdb_cv_printf_has_long_double=no,
|
|
|
|
gdb_cv_printf_has_long_double=no)])
|
|
|
|
if test $gdb_cv_printf_has_long_double = yes; then
|
|
|
|
AC_DEFINE(PRINTF_HAS_LONG_DOUBLE)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($gdb_cv_printf_has_long_double)
|
|
|
|
|
1997-11-24 06:50:12 +00:00
|
|
|
dnl See if the compiler and runtime support scanning long doubles
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for long double support in scanf)
|
|
|
|
AC_CACHE_VAL(gdb_cv_scanf_has_long_double,
|
|
|
|
[AC_TRY_RUN([
|
|
|
|
int main () {
|
|
|
|
char *buf = "3.141592653";
|
|
|
|
long double f = 0;
|
|
|
|
sscanf (buf, "%Lg", &f);
|
|
|
|
return !(f > 3.14159 && f < 3.14160);
|
|
|
|
}],
|
|
|
|
gdb_cv_scanf_has_long_double=yes,
|
|
|
|
gdb_cv_scanf_has_long_double=no,
|
|
|
|
gdb_cv_scanf_has_long_double=no)])
|
|
|
|
if test $gdb_cv_scanf_has_long_double = yes; then
|
|
|
|
AC_DEFINE(SCANF_HAS_LONG_DOUBLE)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($gdb_cv_scanf_has_long_double)
|
|
|
|
|
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.
* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.
* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.
* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.
* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
|
|
|
AC_FUNC_MMAP
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1996-06-11 19:21:42 +00:00
|
|
|
dnl See if thread_db library is around for Solaris thread debugging. Note that
|
|
|
|
dnl we must explicitly test for version 1 of the library because version 0
|
|
|
|
dnl (present on Solaris 2.4 or earlier) doesn't have the same API.
|
|
|
|
|
1996-07-04 00:49:25 +00:00
|
|
|
dnl Note that we only want this if we are both native (host == target), and
|
|
|
|
dnl not doing a canadian cross build (build == host).
|
|
|
|
|
|
|
|
if test ${build} = ${host} -a ${host} = ${target} ; then
|
1998-01-28 00:17:53 +00:00
|
|
|
case ${host_os} in
|
|
|
|
hpux*)
|
|
|
|
AC_MSG_CHECKING(for HPUX/OSF thread support)
|
|
|
|
if test -f /usr/include/dce/cma_config.h ; then
|
|
|
|
if test "$GCC" = "yes" ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
|
|
|
|
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
|
1998-02-05 01:47:26 +00:00
|
|
|
CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
|
1998-01-28 00:17:53 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no (suppressed because you are not using GCC))
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
solaris*)
|
|
|
|
AC_MSG_CHECKING(for Solaris thread debugging library)
|
|
|
|
if test -f /usr/lib/libthread_db.so.1 ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_THREAD_DB_LIB)
|
|
|
|
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
|
1998-02-05 01:47:26 +00:00
|
|
|
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
|
1998-01-28 00:17:53 +00:00
|
|
|
AC_CHECK_LIB(dl, dlopen)
|
|
|
|
if test "$GCC" = "yes" ; then
|
|
|
|
# The GNU linker requires the -export-dynamic option to make
|
|
|
|
# all symbols visible in the dynamic symbol table.
|
|
|
|
hold_ldflags=$LDFLAGS
|
|
|
|
AC_MSG_CHECKING(for the ld -export-dynamic flag)
|
|
|
|
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
|
|
|
|
AC_TRY_LINK(, [int i;], found=yes, found=no)
|
|
|
|
LDFLAGS=$hold_ldflags
|
|
|
|
AC_MSG_RESULT($found)
|
|
|
|
if test $found = yes; then
|
|
|
|
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
|
|
|
|
fi
|
|
|
|
fi
|
1998-10-14 01:15:01 +00:00
|
|
|
# Sun randomly tweaked the prototypes in <proc_service.h>
|
|
|
|
# at one point.
|
|
|
|
AC_MSG_CHECKING(if <proc_service.h> is old)
|
|
|
|
AC_CACHE_VAL(gdb_cv_proc_service_is_old,[
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <proc_service.h>
|
|
|
|
ps_err_e ps_pdwrite
|
|
|
|
(struct ps_prochandle*, psaddr_t, const void*, size_t);
|
|
|
|
],, gdb_cv_proc_service_is_old=no,
|
|
|
|
gdb_cv_proc_service_is_old=yes)
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT($gdb_cv_proc_service_is_old)
|
|
|
|
if test $gdb_cv_proc_service_is_old = yes; then
|
|
|
|
AC_DEFINE(PROC_SERVICE_IS_OLD)
|
|
|
|
fi
|
1998-01-28 00:17:53 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(CONFIG_LDFLAGS)
|
1996-07-04 00:49:25 +00:00
|
|
|
fi
|
1996-05-14 07:02:56 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
dnl Handle optional features that can be enabled.
|
|
|
|
ENABLE_CFLAGS=
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(netrom,
|
|
|
|
[ --enable-netrom ],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) enable_netrom=yes ;;
|
|
|
|
no) enable_netrom=no ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} given for netrom option) ;;
|
|
|
|
esac])
|
|
|
|
|
|
|
|
if test "${enable_netrom}" = "yes"; then
|
1997-01-04 00:25:53 +00:00
|
|
|
CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
|
1998-02-05 01:47:26 +00:00
|
|
|
CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
fi
|
|
|
|
|
1998-10-28 02:01:32 +00:00
|
|
|
AC_ARG_ENABLE(build-warnings,
|
|
|
|
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
|
|
|
|
[build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
|
|
|
|
case "${enableval}" in
|
|
|
|
yes) ;;
|
|
|
|
no) build_warnings="-w";;
|
1998-11-25 22:13:53 +00:00
|
|
|
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
|
|
build_warnings="${build_warnings} ${t}";;
|
|
|
|
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
|
|
build_warnings="${t} ${build_warnings}";;
|
|
|
|
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
1998-10-28 02:01:32 +00:00
|
|
|
esac],[build_warnings=""])dnl
|
|
|
|
|
|
|
|
if test "x${build_warnings}" != x -a "x$GCC" = xyes
|
1998-09-25 01:27:47 +00:00
|
|
|
then
|
1998-10-28 02:01:32 +00:00
|
|
|
WARN_CFLAGS="${build_warnings}"
|
1998-09-25 01:27:47 +00:00
|
|
|
else
|
|
|
|
WARN_CFLAGS=""
|
|
|
|
fi
|
|
|
|
AC_SUBST(WARN_CFLAGS)
|
|
|
|
|
* configure.in (--with-mmalloc): Add new configure arg to use the
mmalloc package. Default is to not use it.
(START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
the string "2".
* acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
* configure: Regenerated.
* config.in: Regenerated.
* Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
(MMALLOC): Set using configure.
(MMALLOC_CFLAGS): Set using configure.
* config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
than just defining it.
* mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
* utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
* objfiles.c: ditto.
* defs.h: ditto.
* config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
* config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
* config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
* gdbserver/Makefile.in (MMALLOC_*): Remove.
* config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
* config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
1998-01-14 04:28:29 +00:00
|
|
|
MMALLOC_CFLAGS=
|
|
|
|
MMALLOC=
|
|
|
|
AC_SUBST(MMALLOC_CFLAGS)
|
|
|
|
AC_SUBST(MMALLOC)
|
|
|
|
|
|
|
|
AC_ARG_WITH(mmalloc,
|
1998-09-25 01:27:47 +00:00
|
|
|
[ --with-mmalloc Use memory mapped malloc package],
|
* configure.in (--with-mmalloc): Add new configure arg to use the
mmalloc package. Default is to not use it.
(START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
the string "2".
* acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
* configure: Regenerated.
* config.in: Regenerated.
* Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
(MMALLOC): Set using configure.
(MMALLOC_CFLAGS): Set using configure.
* config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
than just defining it.
* mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
* utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
* objfiles.c: ditto.
* defs.h: ditto.
* config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
* config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
* config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
* gdbserver/Makefile.in (MMALLOC_*): Remove.
* config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
* config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
1998-01-14 04:28:29 +00:00
|
|
|
[case "${withval}" in
|
|
|
|
yes) want_mmalloc=true ;;
|
|
|
|
no) want_mmalloc=false;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${withval} for GDB with-mmalloc option) ;;
|
|
|
|
esac],[want_mmalloc=false])dnl
|
|
|
|
|
|
|
|
if test x$want_mmalloc = xtrue; then
|
|
|
|
AC_DEFINE(USE_MMALLOC)
|
1998-02-17 22:42:02 +00:00
|
|
|
AC_DEFINE(MMCHECK_FORCE)
|
* configure.in (--with-mmalloc): Add new configure arg to use the
mmalloc package. Default is to not use it.
(START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
the string "2".
* acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
* configure: Regenerated.
* config.in: Regenerated.
* Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
(MMALLOC): Set using configure.
(MMALLOC_CFLAGS): Set using configure.
* config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
than just defining it.
* mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
* utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
* objfiles.c: ditto.
* defs.h: ditto.
* config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
* config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
* config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
* gdbserver/Makefile.in (MMALLOC_*): Remove.
* config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
* config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
* config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
1998-01-14 04:28:29 +00:00
|
|
|
MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
|
|
|
|
MMALLOC='../mmalloc/libmmalloc.a'
|
|
|
|
fi
|
|
|
|
|
1998-10-08 05:35:49 +00:00
|
|
|
# start-sanitize-carp
|
|
|
|
# The below takes an educated guess at the targets that
|
|
|
|
# should be built. It is an interum version that provides
|
|
|
|
# significant backward compatibility.
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(carp,
|
|
|
|
[ --enable-carp Configure alternative readaptive paradigm ],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) enable_carp=yes ;;
|
|
|
|
no) enable_carp=no ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${enableval} for carp option]) ;;
|
|
|
|
esac],[enable_carp=no])dnl
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(targets,
|
|
|
|
[ --enable-targets alternative target configurations],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
|
|
|
|
;;
|
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets="$enableval" ;;
|
|
|
|
esac])dnl
|
|
|
|
|
|
|
|
# Canonicalize the secondary target names.
|
|
|
|
all_targets=false
|
|
|
|
if test -n "$enable_targets" ; then
|
|
|
|
if test "$enable_targets" = all ; then
|
|
|
|
all_targets=true
|
|
|
|
else
|
|
|
|
for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|
|
|
do
|
|
|
|
result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
|
|
|
|
if test -n "$result" ; then
|
|
|
|
canon_targets="$canon_targets $result"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Convert the target names into GDB [*]-tdep.c names
|
|
|
|
changequote(,)dnl
|
|
|
|
selarchs=
|
|
|
|
for targ in $target $canon_targets
|
|
|
|
do
|
|
|
|
if test "x$targ" = "xall" ; then
|
|
|
|
all_targets=true
|
|
|
|
else
|
1998-10-13 03:15:07 +00:00
|
|
|
t_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1998-10-08 05:35:49 +00:00
|
|
|
t_vendor=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1998-10-13 03:15:07 +00:00
|
|
|
t_os=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1998-10-08 05:35:49 +00:00
|
|
|
mt=`
|
|
|
|
target=$targ
|
|
|
|
target_cpu=$t_cpu
|
|
|
|
target_vendor=$t_vendor
|
|
|
|
target_os=$t_os
|
|
|
|
. ${srcdir}/configure.tgt
|
|
|
|
echo ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
|
|
|
|
if test -r ${mt} ; then
|
|
|
|
# This gets confused over .mt files that have multiple -tdep.o
|
|
|
|
tdep=`sed -n '
|
|
|
|
s/^.*[ =]\([^ ]*\)-tdep.o.*/\1/p
|
|
|
|
' $mt`
|
|
|
|
selarchs="$selarchs $tdep"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
changequote([,])dnl
|
|
|
|
|
|
|
|
# We don't do any links based on the target system, just makefile config.
|
|
|
|
|
|
|
|
if test x${all_targets} = xfalse ; then
|
|
|
|
|
|
|
|
# Target architecture .o files.
|
|
|
|
ta=
|
|
|
|
|
|
|
|
for arch in $selarchs
|
|
|
|
do
|
|
|
|
archdefs="$archdefs -DARCH_$arch"
|
|
|
|
ta="$ta ${arch}-tdep.o"
|
|
|
|
# Special cases
|
|
|
|
case "$arch" in
|
1998-10-13 03:15:07 +00:00
|
|
|
dvp) ta="$ta mips-tdep.o dvp-tdep.o" ;;
|
1998-10-08 05:35:49 +00:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
# Weed out duplicate .o files.
|
|
|
|
f=""
|
|
|
|
for i in $ta ; do
|
|
|
|
case " $f " in
|
1998-10-13 03:15:07 +00:00
|
|
|
*" $i "*) ;;
|
|
|
|
*) f="$f $i" ;;
|
1998-10-08 05:35:49 +00:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
ta="$f"
|
|
|
|
|
|
|
|
# And duplicate -D flags.
|
|
|
|
f=""
|
|
|
|
for i in $archdefs ; do
|
|
|
|
case " $f " in
|
1998-10-13 03:15:07 +00:00
|
|
|
*" $i "*) ;;
|
|
|
|
*) f="$f $i" ;;
|
1998-10-08 05:35:49 +00:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
archdefs="$f"
|
|
|
|
|
|
|
|
MACHINE_OBS="$ta"
|
|
|
|
|
|
|
|
else # all_targets is true
|
|
|
|
archdefs=-DARCH_all
|
|
|
|
MACHINE_OBS='$(ALL_MACHINES)'
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Don't define an archdefs list
|
|
|
|
dnl AC_SUBST(archdefs)
|
|
|
|
dnl XXXX this name will change several more times
|
|
|
|
if test "${enable_carp}" = yes ; then
|
|
|
|
gdb_target=carp
|
|
|
|
gdb_target_cpu=carp
|
|
|
|
else
|
|
|
|
MACHINE_OBS="# $MACHINE_OBS"
|
|
|
|
fi
|
|
|
|
AC_SUBST(MACHINE_OBS)
|
|
|
|
|
|
|
|
# end-sanitize-carp
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# start-sanitize-gdbtk
|
1998-09-21 18:37:32 +00:00
|
|
|
# start-sanitize-ide
|
1997-07-10 07:15:26 +00:00
|
|
|
ENABLE_IDE=
|
|
|
|
AC_ARG_ENABLE(ide, [ --enable-ide Enable IDE support])
|
|
|
|
if test "$enable_ide" = yes; then
|
|
|
|
enable_ide=yes
|
|
|
|
ENABLE_IDE=1
|
|
|
|
else
|
|
|
|
enable_ide=no
|
|
|
|
fi
|
|
|
|
AC_SUBST(ENABLE_IDE)
|
|
|
|
|
1998-08-13 20:24:45 +00:00
|
|
|
AC_ARG_WITH(foundry-libs,
|
1998-09-25 01:27:47 +00:00
|
|
|
[ --with-foundry-libs=DIR Use the Foundry SDK in DIR],
|
1998-08-13 20:24:45 +00:00
|
|
|
[FOUNDRY_LIB_BASE=${withval}])
|
|
|
|
AC_SUBST(FOUNDRY_LIB_BASE)
|
|
|
|
|
|
|
|
#
|
|
|
|
# This is the Foundry SDK
|
|
|
|
#
|
|
|
|
# These variables are used to determine where the Foundry libs and
|
|
|
|
# header files are located.
|
|
|
|
#
|
|
|
|
if test "$FOUNDRY_LIB_BASE" != ""; then
|
|
|
|
LIBGUI="${FOUNDRY_LIB_BASE}/lib/libgui.a"
|
|
|
|
GUI_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
|
|
|
|
if test x$enable_ide = xyes; then
|
|
|
|
IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include -DIDE"
|
|
|
|
IDE_X="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
|
|
|
|
else
|
|
|
|
IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
|
|
|
|
fi
|
|
|
|
LIBIDETCL="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
|
|
|
|
LIBIDE="${FOUNDRY_LIB_BASE}/lib/libide.a"
|
|
|
|
IDE_DEPS="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
|
|
|
|
else
|
|
|
|
LIBGUI="../libgui/src/libgui.a"
|
|
|
|
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
|
|
|
|
if test x$enable_ide = xyes; then
|
|
|
|
IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
|
|
|
|
IDE_X="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
|
|
|
|
else
|
|
|
|
IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
|
|
|
|
fi
|
|
|
|
LIBIDETCL="../libidetcl/src/libidetcl.a"
|
|
|
|
LIBIDE="../libide/src/libide.a"
|
|
|
|
IDE_DEPS="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBGUI)
|
|
|
|
AC_SUBST(GUI_CFLAGS_X)
|
|
|
|
AC_SUBST(IDE_CFLAGS_X)
|
|
|
|
AC_SUBST(IDE_X)
|
|
|
|
AC_SUBST(LIBIDETCL)
|
|
|
|
AC_SUBST(LIBIDE)
|
|
|
|
AC_SUBST(IDE_DEPS)
|
1998-09-21 18:37:32 +00:00
|
|
|
# end-sanitize-ide
|
1998-08-13 20:24:45 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
ENABLE_GDBTK=
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(gdbtk,
|
1998-09-25 01:27:47 +00:00
|
|
|
[ --enable-gdbtk Enable GDBTK GUI front end],
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
[case "${enableval}" in
|
1996-01-05 00:42:36 +00:00
|
|
|
yes)
|
|
|
|
case "$host" in
|
|
|
|
*go32*)
|
|
|
|
AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.])
|
|
|
|
enable_gdbtk=no ;;
|
1997-03-19 23:39:20 +00:00
|
|
|
*windows*)
|
1996-06-20 00:29:38 +00:00
|
|
|
AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.])
|
|
|
|
enable_gdbtk=no ;;
|
1996-01-05 00:42:36 +00:00
|
|
|
*)
|
|
|
|
enable_gdbtk=yes ;;
|
|
|
|
esac ;;
|
|
|
|
no)
|
|
|
|
enable_gdbtk=no ;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
|
|
|
|
esac],
|
|
|
|
[
|
1998-11-02 23:28:59 +00:00
|
|
|
# Default is on for everything but go32 and Cygwin
|
1996-01-05 00:42:36 +00:00
|
|
|
case "$host" in
|
1997-03-19 23:39:20 +00:00
|
|
|
*go32* | *windows*)
|
1996-06-20 00:29:38 +00:00
|
|
|
;;
|
1996-01-05 00:42:36 +00:00
|
|
|
*)
|
|
|
|
enable_gdbtk=yes ;;
|
|
|
|
esac
|
|
|
|
])
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1998-11-02 23:28:59 +00:00
|
|
|
# In the Cygwin environment, we need some additional flags.
|
Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
Changes to account for name change from cygwin32 to cygwin and
clean up Win32-related ifdefs.
* configure.tgt: check for cygwin* instead of cygwin32.
New cygwin gdb_target variable loses the "32".
* configure.host: check for cygwin* instead of cygwin32.
New cygwin gdb_host variable loses the "32".
* configure.in: test __CYGWIN__ instead of __CYGWIN32__,
rename gdb_cv_os_cygwin32 variable to drop the "32". Call
AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
autoconf yet.
* configure: regenerate.
* main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h
where
cygwin path conv protos live, instead of adding a proto here
for
them here.
* {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
instead of __CYGWIN32__.
* source.c: thoughout, check _WIN32 instead of WIN32.
* config/i386/cygwin32.mh: delete.
* config/i386/cygwin.mh: new file, was cygwin32.mh.
* config/i386/cygwin32.mt: delete.
* config/i386/cygwin.mt: new file, was cygwin32.mt.
* config/i386/tm-cygwin32.h: delete.
* config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/i386/xm-cygwin32.h: delete.
* config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
* config/i386/xm-windows.h: #include xm-cygwin.h now.
* config/powerpc/cygwin32.mh: delete.
* config/powerpc/cygwin.mh: new file, was cygwin32.mh.
* config/powerpc/cygwin32.mt: delete.
* config/powerpc/cygwin.mt: new file, was cygwin32.mt.
* config/powerpc/tm-cygwin32.h: delete.
* config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/powerpc/xm-cygwin32.h: delete.
* config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
* rdi-share/aclocal.m4: regenerate with aclocal.
* rdi-share/configure: regenerate with autoconf.
* rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c,
* serpardr.c,
unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 08:16:08 +00:00
|
|
|
AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin,
|
1997-08-01 19:24:55 +00:00
|
|
|
[AC_EGREP_CPP(lose, [
|
1998-11-19 22:44:42 +00:00
|
|
|
#ifdef __CYGWIN32__
|
1997-08-01 19:24:55 +00:00
|
|
|
lose
|
Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
Changes to account for name change from cygwin32 to cygwin and
clean up Win32-related ifdefs.
* configure.tgt: check for cygwin* instead of cygwin32.
New cygwin gdb_target variable loses the "32".
* configure.host: check for cygwin* instead of cygwin32.
New cygwin gdb_host variable loses the "32".
* configure.in: test __CYGWIN__ instead of __CYGWIN32__,
rename gdb_cv_os_cygwin32 variable to drop the "32". Call
AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
autoconf yet.
* configure: regenerate.
* main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h
where
cygwin path conv protos live, instead of adding a proto here
for
them here.
* {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
instead of __CYGWIN32__.
* source.c: thoughout, check _WIN32 instead of WIN32.
* config/i386/cygwin32.mh: delete.
* config/i386/cygwin.mh: new file, was cygwin32.mh.
* config/i386/cygwin32.mt: delete.
* config/i386/cygwin.mt: new file, was cygwin32.mt.
* config/i386/tm-cygwin32.h: delete.
* config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/i386/xm-cygwin32.h: delete.
* config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
* config/i386/xm-windows.h: #include xm-cygwin.h now.
* config/powerpc/cygwin32.mh: delete.
* config/powerpc/cygwin.mh: new file, was cygwin32.mh.
* config/powerpc/cygwin32.mt: delete.
* config/powerpc/cygwin.mt: new file, was cygwin32.mt.
* config/powerpc/tm-cygwin32.h: delete.
* config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/powerpc/xm-cygwin32.h: delete.
* config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
* rdi-share/aclocal.m4: regenerate with aclocal.
* rdi-share/configure: regenerate with autoconf.
* rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c,
* serpardr.c,
unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 08:16:08 +00:00
|
|
|
#endif],[gdb_cv_os_cygwin=yes],[gdb_cv_os_cygwin=no])])
|
1997-08-01 19:24:55 +00:00
|
|
|
|
|
|
|
WIN32LIBS=
|
|
|
|
WIN32LDAPP=
|
|
|
|
AC_SUBST(WIN32LIBS)
|
|
|
|
AC_SUBST(WIN32LDAPP)
|
|
|
|
|
1998-10-13 03:15:07 +00:00
|
|
|
DLLTOOL=${DLLTOOL-dlltool}
|
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
merged changes from Foundry (list follows by file/author):
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* ser-unix.c
- Keith Seitz <keiths@onions.cygnus.com>
(wait_for): Don't reset the timeout_remaining for CYGWIN32,
since we now effectively poll the serial port.
Don't reset the current_timeout, either, since this member is used
by hardwire_readchar to track the timeout and call the ui_loop_hook.
(hardwire_readchar): Poll the serial port for Cygwin32. We timeout every
second, update the UI, and loop around doing this until we have hit the real
timeout or we get data or an error. This will allow the UI to stay active
while gdb is "blocked" talking to the target.
- Martin M. Hunt <hunt@cygnus.com>
(wait_for): Do reset current_timeout
because it is only used to keep track of what the
current timeout for the scb is.
* top.c
- Martin M. Hunt <hunt@cygnus.com>
(quit_confirm): Change exit message again
for GUI.
(pc_changed_hook): Add prototype.
- Tom Tromey <tromey@cygnus.com>
(quit_confirm): Added missing `else'.
(quit_confirm): Special-case message if init_ui_hook is
set.
* symtab.c
- Martin M. Hunt <hunt@cygnus.com>
(find_pc_sect_line): If no symbol information
is found, return correct pc anyway.
(find_methods): Comment out an apparently
bogus error message because it messes up Foundry.
* serial.c
- Martin M. Hunt <hunt@cygnus.com>
(_initialize_serial): Add a description of
"set remotelogbase".
* findvar.c
- Martin M. Hunt <hunt@cygnus.com>
(write_register_gen): Add call to
pc_changed_hook if the PC is being changed.
* defs.h
- Martin M. Hunt <hunt@cygnus.com>
(pc_changed_hook): Define.
* command.c
- Martin M. Hunt <hunt@cygnus.com>
(do_setshow_command): If no arguments are supplied,
don't dump core, instead print out an error message.
* breakpoint.c
- Martin M. Hunt <hunt@cygnus.com>
Make set_raw_breakpoint, set_breakpoint_count,
and breakpoint_count non-static so they are accessible from
gdbtk.c.
(enable_breakpoint): Enable breakpoint
with same disposition instead of changing all breakpoints
to donttouch.
* annotate.h
- Keith Seitz <keiths@onions.cygnus.com>
Add declarations for annotation hooks.
* annotate.c
- Keith Seitz <keiths@onions.cygnus.com>
Add hooks: annotate_starting_hook, annotate_stopped_hook,
annotate_signalled_hook, annotate_exited_hook.
(annotate_starting): If hook exists, call it instead.
(annotate_stopped): If hook exists, call it instead.
(annotate_exited): If hook exists, call it instead.
(annotate_signalled): If hook exists, call it instead.
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Merged changes from Foundry: list follows by author:
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
(gdbtk_cleanup): Call ide_interface_deregister_all.
(gdbtk_init): Pass event handle to cleanup.
(TclDebug): Use Tcl_Merge to construct command.
(gdbtk_init): Call ide_create_cygwin_path_command.
- Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_set_bp): Set addr_string for bp.
(gdb_get_breakpoint_info): Demangle function
names in breakpoint info.
Include "demangle.h".
(gdb_loc, gdb_listfuncs): Demangle C++
function names.
(gdb_set_bp): Properly quote filename to fix
problems with spaces. Send pc back as a hex string.
(gdb_listfuncs): Remove debugging line.
Turn off some debugging lines.
(breakpoint_notify): Return correct line number.
(gdb_get_breakpoint_info): Return correct line number.
(gdb_set_bp): New function to provide a better way to
set breakpoints.
(gdbtk_readline, gdbtk_readline_begin): Memory
allocated by tcl needs to be freed by Tcl_Free().
(find_file_in_dir): Deleted.
(gdb_find_file_command): Call full_lookup_symtab().
(gdb_listfuncs): Call full_lookup_symtab().
(full_lookup_symtab): New function. Like lookup_symtab
except handles multiple files with the same basename,
full pathnames, and always sets symtab->fullname.
(gdb_loadfile): Call full_lookup_symtab(). Clear
realloc'd memory.
(gdb_loadfile): Don't tag lines without source.
Tag source lines with source_tag.
(gdb_find_file_command, find_file_in_dir):
Rewrite. Now searches symtabs and psymtabs for a match
on the partial or full filename. Returns the full pathname.
(gdb_loadfile): Realloc additional memory
if someone loads in a file with more than 160,000
lines. I don't know if this really works because
I don't have enough memory to test it.
(gdb_sourcelines): Deleted.
(gdb_loadfile): New function. Takes a text widget
and loads it with the contents of a file. Marks
and tags source lines.
(pc_changed): New function.
(get_pc_register): Returns the value of
the PC to GDB.
(gdb_loc): If looking on the stack, return
real pc along with calling source line.
(gdb_loc): Return "" instead of "N/A" if
filename is not found.
(gdb_get_breakpoint_info): Same.
(get_register): For Natural mode, set format to 0.
Minor bugfixes from keiths.
(TclDebug): New function for debugging use.
(gdb_loc): Return correct PC for frames
that are not the innermost frame.
(gdb_listfiles): Rewritten to use object
API. Now takes an optional dirname which will cause
only files in that directory or its subdirectories
to be returned. Now returns basenames instead of
full pathnames.
(gdb_cmd): Set/reset load_in_progress flag.
(call_wrapper): Don't pop up dialog for errors in
downloads; just abort download.
(gdbtk_load_hash): Set return value correctly.
- Keith Seitz <keiths@onions.cygnus.com>
* gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
called by routines which might block, allowing us to update the GUI.
(gdbtk_wait): Move timer calls to annotation hooks.
(gdbtk_init): Define the annotation hooks.
(gdbtk_annotate_starting): New function for cygwin32 hosts.
(gdbtk_annotate_stopped): New function for cygwin32 hosts.
(gdbtk_annotate_exited): New function for cygwin32 hosts.
(gdbtk_annotate_signalled): New function. for cygwin32 hosts.
(gdbtk_init): Use gdbtk_print_frame_info hook.
(gdbtk_print_frame_info): New function which sets current_source_symtab
based on the given symtab and line info.
(gdb_immediate_command): New function which does
not buffer any
output. (Contrast to gdb_cmd.)
(gdb_prompt_command): New function to return gdb's prompt.
(find_file_in_dir): New functon which searches source paths
for a given filename.
(gdb_find_file): New function which returns path to given file -- uses
find_file_in_dir.
(gdbtk_init): Install "gdb_immediate", "gdb_find_file", and
"gdb_prompt"
commands into interpreter.
- Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
variable.
(gdb_cmd): If __CYGWIN32__, if executing the load command, call
gdbtk_start_timer and gdbtk_stop_timer.
(call_wrapper): If __CYGWIN32__, if the timer is going, turn it
off. Clear load_in_progress.
(x_event): If load_in_progress, quit if download_cancel_ok.
(gdbtk_start_timer): Set gdbtk_timer_going.
(gdbtk_stop_timer): Clear gdbtk_timer_going.
(gdbtk_wait): Call x_event.
(gdbtk_init): Call ide_create_win_grab_command if
__CYGIN32__.
(gdb_clear_file): Clear stop_pc.
1998-03-22 23:02:10 +00:00
|
|
|
WINDRES=${WINDRES-windres}
|
1998-10-13 03:15:07 +00:00
|
|
|
AC_SUBST(DLLTOOL)
|
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
merged changes from Foundry (list follows by file/author):
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* ser-unix.c
- Keith Seitz <keiths@onions.cygnus.com>
(wait_for): Don't reset the timeout_remaining for CYGWIN32,
since we now effectively poll the serial port.
Don't reset the current_timeout, either, since this member is used
by hardwire_readchar to track the timeout and call the ui_loop_hook.
(hardwire_readchar): Poll the serial port for Cygwin32. We timeout every
second, update the UI, and loop around doing this until we have hit the real
timeout or we get data or an error. This will allow the UI to stay active
while gdb is "blocked" talking to the target.
- Martin M. Hunt <hunt@cygnus.com>
(wait_for): Do reset current_timeout
because it is only used to keep track of what the
current timeout for the scb is.
* top.c
- Martin M. Hunt <hunt@cygnus.com>
(quit_confirm): Change exit message again
for GUI.
(pc_changed_hook): Add prototype.
- Tom Tromey <tromey@cygnus.com>
(quit_confirm): Added missing `else'.
(quit_confirm): Special-case message if init_ui_hook is
set.
* symtab.c
- Martin M. Hunt <hunt@cygnus.com>
(find_pc_sect_line): If no symbol information
is found, return correct pc anyway.
(find_methods): Comment out an apparently
bogus error message because it messes up Foundry.
* serial.c
- Martin M. Hunt <hunt@cygnus.com>
(_initialize_serial): Add a description of
"set remotelogbase".
* findvar.c
- Martin M. Hunt <hunt@cygnus.com>
(write_register_gen): Add call to
pc_changed_hook if the PC is being changed.
* defs.h
- Martin M. Hunt <hunt@cygnus.com>
(pc_changed_hook): Define.
* command.c
- Martin M. Hunt <hunt@cygnus.com>
(do_setshow_command): If no arguments are supplied,
don't dump core, instead print out an error message.
* breakpoint.c
- Martin M. Hunt <hunt@cygnus.com>
Make set_raw_breakpoint, set_breakpoint_count,
and breakpoint_count non-static so they are accessible from
gdbtk.c.
(enable_breakpoint): Enable breakpoint
with same disposition instead of changing all breakpoints
to donttouch.
* annotate.h
- Keith Seitz <keiths@onions.cygnus.com>
Add declarations for annotation hooks.
* annotate.c
- Keith Seitz <keiths@onions.cygnus.com>
Add hooks: annotate_starting_hook, annotate_stopped_hook,
annotate_signalled_hook, annotate_exited_hook.
(annotate_starting): If hook exists, call it instead.
(annotate_stopped): If hook exists, call it instead.
(annotate_exited): If hook exists, call it instead.
(annotate_signalled): If hook exists, call it instead.
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Merged changes from Foundry: list follows by author:
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
(gdbtk_cleanup): Call ide_interface_deregister_all.
(gdbtk_init): Pass event handle to cleanup.
(TclDebug): Use Tcl_Merge to construct command.
(gdbtk_init): Call ide_create_cygwin_path_command.
- Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_set_bp): Set addr_string for bp.
(gdb_get_breakpoint_info): Demangle function
names in breakpoint info.
Include "demangle.h".
(gdb_loc, gdb_listfuncs): Demangle C++
function names.
(gdb_set_bp): Properly quote filename to fix
problems with spaces. Send pc back as a hex string.
(gdb_listfuncs): Remove debugging line.
Turn off some debugging lines.
(breakpoint_notify): Return correct line number.
(gdb_get_breakpoint_info): Return correct line number.
(gdb_set_bp): New function to provide a better way to
set breakpoints.
(gdbtk_readline, gdbtk_readline_begin): Memory
allocated by tcl needs to be freed by Tcl_Free().
(find_file_in_dir): Deleted.
(gdb_find_file_command): Call full_lookup_symtab().
(gdb_listfuncs): Call full_lookup_symtab().
(full_lookup_symtab): New function. Like lookup_symtab
except handles multiple files with the same basename,
full pathnames, and always sets symtab->fullname.
(gdb_loadfile): Call full_lookup_symtab(). Clear
realloc'd memory.
(gdb_loadfile): Don't tag lines without source.
Tag source lines with source_tag.
(gdb_find_file_command, find_file_in_dir):
Rewrite. Now searches symtabs and psymtabs for a match
on the partial or full filename. Returns the full pathname.
(gdb_loadfile): Realloc additional memory
if someone loads in a file with more than 160,000
lines. I don't know if this really works because
I don't have enough memory to test it.
(gdb_sourcelines): Deleted.
(gdb_loadfile): New function. Takes a text widget
and loads it with the contents of a file. Marks
and tags source lines.
(pc_changed): New function.
(get_pc_register): Returns the value of
the PC to GDB.
(gdb_loc): If looking on the stack, return
real pc along with calling source line.
(gdb_loc): Return "" instead of "N/A" if
filename is not found.
(gdb_get_breakpoint_info): Same.
(get_register): For Natural mode, set format to 0.
Minor bugfixes from keiths.
(TclDebug): New function for debugging use.
(gdb_loc): Return correct PC for frames
that are not the innermost frame.
(gdb_listfiles): Rewritten to use object
API. Now takes an optional dirname which will cause
only files in that directory or its subdirectories
to be returned. Now returns basenames instead of
full pathnames.
(gdb_cmd): Set/reset load_in_progress flag.
(call_wrapper): Don't pop up dialog for errors in
downloads; just abort download.
(gdbtk_load_hash): Set return value correctly.
- Keith Seitz <keiths@onions.cygnus.com>
* gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
called by routines which might block, allowing us to update the GUI.
(gdbtk_wait): Move timer calls to annotation hooks.
(gdbtk_init): Define the annotation hooks.
(gdbtk_annotate_starting): New function for cygwin32 hosts.
(gdbtk_annotate_stopped): New function for cygwin32 hosts.
(gdbtk_annotate_exited): New function for cygwin32 hosts.
(gdbtk_annotate_signalled): New function. for cygwin32 hosts.
(gdbtk_init): Use gdbtk_print_frame_info hook.
(gdbtk_print_frame_info): New function which sets current_source_symtab
based on the given symtab and line info.
(gdb_immediate_command): New function which does
not buffer any
output. (Contrast to gdb_cmd.)
(gdb_prompt_command): New function to return gdb's prompt.
(find_file_in_dir): New functon which searches source paths
for a given filename.
(gdb_find_file): New function which returns path to given file -- uses
find_file_in_dir.
(gdbtk_init): Install "gdb_immediate", "gdb_find_file", and
"gdb_prompt"
commands into interpreter.
- Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
variable.
(gdb_cmd): If __CYGWIN32__, if executing the load command, call
gdbtk_start_timer and gdbtk_stop_timer.
(call_wrapper): If __CYGWIN32__, if the timer is going, turn it
off. Clear load_in_progress.
(x_event): If load_in_progress, quit if download_cancel_ok.
(gdbtk_start_timer): Set gdbtk_timer_going.
(gdbtk_stop_timer): Clear gdbtk_timer_going.
(gdbtk_wait): Call x_event.
(gdbtk_init): Call ide_create_win_grab_command if
__CYGIN32__.
(gdb_clear_file): Clear stop_pc.
1998-03-22 23:02:10 +00:00
|
|
|
AC_SUBST(WINDRES)
|
|
|
|
|
Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
Changes to account for name change from cygwin32 to cygwin and
clean up Win32-related ifdefs.
* configure.tgt: check for cygwin* instead of cygwin32.
New cygwin gdb_target variable loses the "32".
* configure.host: check for cygwin* instead of cygwin32.
New cygwin gdb_host variable loses the "32".
* configure.in: test __CYGWIN__ instead of __CYGWIN32__,
rename gdb_cv_os_cygwin32 variable to drop the "32". Call
AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
autoconf yet.
* configure: regenerate.
* main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h
where
cygwin path conv protos live, instead of adding a proto here
for
them here.
* {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
instead of __CYGWIN32__.
* source.c: thoughout, check _WIN32 instead of WIN32.
* config/i386/cygwin32.mh: delete.
* config/i386/cygwin.mh: new file, was cygwin32.mh.
* config/i386/cygwin32.mt: delete.
* config/i386/cygwin.mt: new file, was cygwin32.mt.
* config/i386/tm-cygwin32.h: delete.
* config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/i386/xm-cygwin32.h: delete.
* config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
* config/i386/xm-windows.h: #include xm-cygwin.h now.
* config/powerpc/cygwin32.mh: delete.
* config/powerpc/cygwin.mh: new file, was cygwin32.mh.
* config/powerpc/cygwin32.mt: delete.
* config/powerpc/cygwin.mt: new file, was cygwin32.mt.
* config/powerpc/tm-cygwin32.h: delete.
* config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/powerpc/xm-cygwin32.h: delete.
* config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
* rdi-share/aclocal.m4: regenerate with aclocal.
* rdi-share/configure: regenerate with autoconf.
* rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c,
* serpardr.c,
unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 08:16:08 +00:00
|
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
1997-08-01 19:24:55 +00:00
|
|
|
if test x$enable_ide = xyes; then
|
|
|
|
WIN32LIBS="-ladvapi32"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
configdir="unix"
|
1997-03-19 23:39:20 +00:00
|
|
|
|
1998-04-29 04:17:25 +00:00
|
|
|
GDBTKLIBS=
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${enable_gdbtk}" = "yes"; then
|
1996-01-05 00:42:36 +00:00
|
|
|
|
1996-08-02 02:43:27 +00:00
|
|
|
CY_AC_PATH_TCLCONFIG
|
1996-08-28 17:13:00 +00:00
|
|
|
if test -z "${no_tcl}"; then
|
|
|
|
CY_AC_LOAD_TCLCONFIG
|
|
|
|
CY_AC_PATH_TKCONFIG
|
1996-08-02 02:43:27 +00:00
|
|
|
|
1996-08-28 17:13:00 +00:00
|
|
|
# If $no_tk is nonempty, then we can't do Tk, and there is no
|
|
|
|
# point to doing Tcl.
|
|
|
|
if test -z "${no_tk}"; then
|
|
|
|
CY_AC_LOAD_TKCONFIG
|
|
|
|
CY_AC_PATH_TCLH
|
|
|
|
CY_AC_PATH_TKH
|
1997-07-10 07:15:26 +00:00
|
|
|
CY_AC_PATH_ITCLH
|
|
|
|
CY_AC_PATH_TIX
|
1996-08-02 02:43:27 +00:00
|
|
|
|
1997-07-23 02:45:59 +00:00
|
|
|
# now look for tix library stuff
|
1997-08-07 21:07:44 +00:00
|
|
|
TIXVERSION=4.1.8.0
|
1997-07-23 02:45:59 +00:00
|
|
|
. ${ac_cv_c_tclconfig}/tclConfig.sh
|
|
|
|
case "${host}" in
|
1998-11-02 23:28:59 +00:00
|
|
|
*-*-cygwin*)
|
1997-08-08 19:20:42 +00:00
|
|
|
tixdir=../tix/win/tcl8.0
|
1997-07-23 02:45:59 +00:00
|
|
|
;;
|
|
|
|
*)
|
1997-08-07 21:07:44 +00:00
|
|
|
tixdir=../tix/unix/tk8.0
|
1997-07-23 02:45:59 +00:00
|
|
|
;;
|
|
|
|
esac
|
1998-01-15 01:19:00 +00:00
|
|
|
if test "${TCL_SHARED_BUILD}" = "1"; then
|
|
|
|
TIX_LIB_EXT="${TCL_SHLIB_SUFFIX}"
|
1998-01-23 20:54:35 +00:00
|
|
|
|
|
|
|
# Can't win them all: SunOS 4 (others?) appends a version
|
|
|
|
# number after the ".so"
|
|
|
|
case "${host}" in
|
|
|
|
*-*-sunos4*)
|
|
|
|
TIX_LIB_EXT="${TIX_LIB_EXT}.1.0" ;;
|
|
|
|
esac
|
|
|
|
|
1998-01-15 01:19:00 +00:00
|
|
|
else
|
|
|
|
TIX_LIB_EXT=".a"
|
|
|
|
fi
|
1998-01-23 20:54:35 +00:00
|
|
|
|
1997-07-23 02:45:59 +00:00
|
|
|
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
|
|
|
TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
|
1998-01-15 01:19:00 +00:00
|
|
|
TIX_DEPS="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
|
1997-07-23 02:45:59 +00:00
|
|
|
else
|
|
|
|
TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
|
1998-01-15 01:19:00 +00:00
|
|
|
TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
|
1997-07-23 02:45:59 +00:00
|
|
|
fi
|
|
|
|
|
1996-08-28 17:13:00 +00:00
|
|
|
ENABLE_GDBTK=1
|
1998-06-29 19:04:30 +00:00
|
|
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} -DGDBTK"
|
1996-01-24 23:39:34 +00:00
|
|
|
|
1997-01-04 00:25:53 +00:00
|
|
|
# Include some libraries that Tcl and Tk want.
|
1997-07-10 07:15:26 +00:00
|
|
|
if test "${enable_ide}" = "yes"; then
|
1998-03-31 22:19:53 +00:00
|
|
|
TCL_LIBS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
|
|
|
CONFIG_DEPS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
|
1997-07-10 07:15:26 +00:00
|
|
|
else
|
1997-12-16 18:20:54 +00:00
|
|
|
TCL_LIBS='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
|
|
|
CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
|
1997-07-10 07:15:26 +00:00
|
|
|
fi
|
1997-03-14 17:16:43 +00:00
|
|
|
# Yes, the ordering seems wrong here. But it isn't.
|
|
|
|
# TK_LIBS is the list of libraries that need to be linked
|
1998-04-29 04:17:25 +00:00
|
|
|
# after Tcl/Tk. Note that this isn't put into LIBS. If it
|
|
|
|
# were in LIBS then any link tests after this point would
|
|
|
|
# try to include things like `$(LIBGUI)', which wouldn't work.
|
|
|
|
GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
|
1998-07-01 20:17:31 +00:00
|
|
|
CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
|
1997-08-01 19:24:55 +00:00
|
|
|
|
Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
Changes to account for name change from cygwin32 to cygwin and
clean up Win32-related ifdefs.
* configure.tgt: check for cygwin* instead of cygwin32.
New cygwin gdb_target variable loses the "32".
* configure.host: check for cygwin* instead of cygwin32.
New cygwin gdb_host variable loses the "32".
* configure.in: test __CYGWIN__ instead of __CYGWIN32__,
rename gdb_cv_os_cygwin32 variable to drop the "32". Call
AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
autoconf yet.
* configure: regenerate.
* main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h
where
cygwin path conv protos live, instead of adding a proto here
for
them here.
* {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
instead of __CYGWIN32__.
* source.c: thoughout, check _WIN32 instead of WIN32.
* config/i386/cygwin32.mh: delete.
* config/i386/cygwin.mh: new file, was cygwin32.mh.
* config/i386/cygwin32.mt: delete.
* config/i386/cygwin.mt: new file, was cygwin32.mt.
* config/i386/tm-cygwin32.h: delete.
* config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/i386/xm-cygwin32.h: delete.
* config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
* config/i386/xm-windows.h: #include xm-cygwin.h now.
* config/powerpc/cygwin32.mh: delete.
* config/powerpc/cygwin.mh: new file, was cygwin32.mh.
* config/powerpc/cygwin32.mt: delete.
* config/powerpc/cygwin.mt: new file, was cygwin32.mt.
* config/powerpc/tm-cygwin32.h: delete.
* config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/powerpc/xm-cygwin32.h: delete.
* config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
* rdi-share/aclocal.m4: regenerate with aclocal.
* rdi-share/configure: regenerate with autoconf.
* rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c,
* serpardr.c,
unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 08:16:08 +00:00
|
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
* tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
the directory name
* Merge (lots) with foundry-971118-build
* Makefile.in (install-only): install the new gdbtk, not the old
* top.h: add declaration of get_prompt
* top.c (get_prompt): new function
* gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
commands
(gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
"gdb_get_function", "gdb_get_line", "gdb_get_file",
"gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
and "gdb_prompt"
(gdb_get_vars_command): new function
(gdb_get_line_command): new function
(gdb_get_file_command): new function
(gdb_get_function_command): new function
(gdb_get_tracepoint_info): new function
(gdbtk_create_tracepoint): new function
(gdbtk_delete_tracepoint): new function
(tracepoint_notify): new function
(tracepoint_exists): new function
(gdb_actions_command): new function
(gdb_tracepoint_exists_command): new function
(gdb_prompt_command): new function
* main.tcl: initialize gdbtk_state(readline)
* console.tcl (invoke): get realine working
(activate): add prompt argument for readline
(setprompt): add prompt argument for readline
* interface.tcl (gdbtk_tcl_readline): hack to get readline working
* lots: Merge with foundry-971118-build
* console.tcl (setprompt): get prompt from gdb
* prefs.tcl (pref_set_defaults): add tracepoint defaults
* interface.tcl (gdbtk_tcl_tracepoint): new function
* src.tcl (constructor): set default behavior of left click, make
a tracepoint dot, too
(fill_files): "new" function: ripped out of "location"
(location): use fill_files instead
(do_bp): add support for tracepoints
(bp_line): add support for tracepoints
(set_tracepoint): new function
(config_win): add "Set tracepoint here" to right-click menu
* actiondlg.tcl: new file to help with tracepoint data collection actions
* tracedlg.tcl: new file to help with tracepoints
1997-11-26 22:38:10 +00:00
|
|
|
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
|
1998-05-29 01:20:46 +00:00
|
|
|
WIN32LDAPP="-Wl,--subsystem,console"
|
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
merged changes from Foundry (list follows by file/author):
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* ser-unix.c
- Keith Seitz <keiths@onions.cygnus.com>
(wait_for): Don't reset the timeout_remaining for CYGWIN32,
since we now effectively poll the serial port.
Don't reset the current_timeout, either, since this member is used
by hardwire_readchar to track the timeout and call the ui_loop_hook.
(hardwire_readchar): Poll the serial port for Cygwin32. We timeout every
second, update the UI, and loop around doing this until we have hit the real
timeout or we get data or an error. This will allow the UI to stay active
while gdb is "blocked" talking to the target.
- Martin M. Hunt <hunt@cygnus.com>
(wait_for): Do reset current_timeout
because it is only used to keep track of what the
current timeout for the scb is.
* top.c
- Martin M. Hunt <hunt@cygnus.com>
(quit_confirm): Change exit message again
for GUI.
(pc_changed_hook): Add prototype.
- Tom Tromey <tromey@cygnus.com>
(quit_confirm): Added missing `else'.
(quit_confirm): Special-case message if init_ui_hook is
set.
* symtab.c
- Martin M. Hunt <hunt@cygnus.com>
(find_pc_sect_line): If no symbol information
is found, return correct pc anyway.
(find_methods): Comment out an apparently
bogus error message because it messes up Foundry.
* serial.c
- Martin M. Hunt <hunt@cygnus.com>
(_initialize_serial): Add a description of
"set remotelogbase".
* findvar.c
- Martin M. Hunt <hunt@cygnus.com>
(write_register_gen): Add call to
pc_changed_hook if the PC is being changed.
* defs.h
- Martin M. Hunt <hunt@cygnus.com>
(pc_changed_hook): Define.
* command.c
- Martin M. Hunt <hunt@cygnus.com>
(do_setshow_command): If no arguments are supplied,
don't dump core, instead print out an error message.
* breakpoint.c
- Martin M. Hunt <hunt@cygnus.com>
Make set_raw_breakpoint, set_breakpoint_count,
and breakpoint_count non-static so they are accessible from
gdbtk.c.
(enable_breakpoint): Enable breakpoint
with same disposition instead of changing all breakpoints
to donttouch.
* annotate.h
- Keith Seitz <keiths@onions.cygnus.com>
Add declarations for annotation hooks.
* annotate.c
- Keith Seitz <keiths@onions.cygnus.com>
Add hooks: annotate_starting_hook, annotate_stopped_hook,
annotate_signalled_hook, annotate_exited_hook.
(annotate_starting): If hook exists, call it instead.
(annotate_stopped): If hook exists, call it instead.
(annotate_exited): If hook exists, call it instead.
(annotate_signalled): If hook exists, call it instead.
Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Merged changes from Foundry: list follows by author:
- Tom Tromey <tromey@cygnus.com>
* Makefile.in (gdbres.o): New target.
(WINDRES): New define.
* configure: Rebuilt.
* configure.in (WINDRES): Define.
(CONFIG_OBS): Include gdbres.o on Windows.
* gdbtool.ico: New file.
* gdb.rc: New file.
* gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
(gdbtk_cleanup): Call ide_interface_deregister_all.
(gdbtk_init): Pass event handle to cleanup.
(TclDebug): Use Tcl_Merge to construct command.
(gdbtk_init): Call ide_create_cygwin_path_command.
- Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_set_bp): Set addr_string for bp.
(gdb_get_breakpoint_info): Demangle function
names in breakpoint info.
Include "demangle.h".
(gdb_loc, gdb_listfuncs): Demangle C++
function names.
(gdb_set_bp): Properly quote filename to fix
problems with spaces. Send pc back as a hex string.
(gdb_listfuncs): Remove debugging line.
Turn off some debugging lines.
(breakpoint_notify): Return correct line number.
(gdb_get_breakpoint_info): Return correct line number.
(gdb_set_bp): New function to provide a better way to
set breakpoints.
(gdbtk_readline, gdbtk_readline_begin): Memory
allocated by tcl needs to be freed by Tcl_Free().
(find_file_in_dir): Deleted.
(gdb_find_file_command): Call full_lookup_symtab().
(gdb_listfuncs): Call full_lookup_symtab().
(full_lookup_symtab): New function. Like lookup_symtab
except handles multiple files with the same basename,
full pathnames, and always sets symtab->fullname.
(gdb_loadfile): Call full_lookup_symtab(). Clear
realloc'd memory.
(gdb_loadfile): Don't tag lines without source.
Tag source lines with source_tag.
(gdb_find_file_command, find_file_in_dir):
Rewrite. Now searches symtabs and psymtabs for a match
on the partial or full filename. Returns the full pathname.
(gdb_loadfile): Realloc additional memory
if someone loads in a file with more than 160,000
lines. I don't know if this really works because
I don't have enough memory to test it.
(gdb_sourcelines): Deleted.
(gdb_loadfile): New function. Takes a text widget
and loads it with the contents of a file. Marks
and tags source lines.
(pc_changed): New function.
(get_pc_register): Returns the value of
the PC to GDB.
(gdb_loc): If looking on the stack, return
real pc along with calling source line.
(gdb_loc): Return "" instead of "N/A" if
filename is not found.
(gdb_get_breakpoint_info): Same.
(get_register): For Natural mode, set format to 0.
Minor bugfixes from keiths.
(TclDebug): New function for debugging use.
(gdb_loc): Return correct PC for frames
that are not the innermost frame.
(gdb_listfiles): Rewritten to use object
API. Now takes an optional dirname which will cause
only files in that directory or its subdirectories
to be returned. Now returns basenames instead of
full pathnames.
(gdb_cmd): Set/reset load_in_progress flag.
(call_wrapper): Don't pop up dialog for errors in
downloads; just abort download.
(gdbtk_load_hash): Set return value correctly.
- Keith Seitz <keiths@onions.cygnus.com>
* gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
called by routines which might block, allowing us to update the GUI.
(gdbtk_wait): Move timer calls to annotation hooks.
(gdbtk_init): Define the annotation hooks.
(gdbtk_annotate_starting): New function for cygwin32 hosts.
(gdbtk_annotate_stopped): New function for cygwin32 hosts.
(gdbtk_annotate_exited): New function for cygwin32 hosts.
(gdbtk_annotate_signalled): New function. for cygwin32 hosts.
(gdbtk_init): Use gdbtk_print_frame_info hook.
(gdbtk_print_frame_info): New function which sets current_source_symtab
based on the given symtab and line info.
(gdb_immediate_command): New function which does
not buffer any
output. (Contrast to gdb_cmd.)
(gdb_prompt_command): New function to return gdb's prompt.
(find_file_in_dir): New functon which searches source paths
for a given filename.
(gdb_find_file): New function which returns path to given file -- uses
find_file_in_dir.
(gdbtk_init): Install "gdb_immediate", "gdb_find_file", and
"gdb_prompt"
commands into interpreter.
- Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
variable.
(gdb_cmd): If __CYGWIN32__, if executing the load command, call
gdbtk_start_timer and gdbtk_stop_timer.
(call_wrapper): If __CYGWIN32__, if the timer is going, turn it
off. Clear load_in_progress.
(x_event): If load_in_progress, quit if download_cancel_ok.
(gdbtk_start_timer): Set gdbtk_timer_going.
(gdbtk_stop_timer): Clear gdbtk_timer_going.
(gdbtk_wait): Call x_event.
(gdbtk_init): Call ide_create_win_grab_command if
__CYGIN32__.
(gdb_clear_file): Clear stop_pc.
1998-03-22 23:02:10 +00:00
|
|
|
CONFIG_OBS="${CONFIG_OBS} gdbres.o"
|
1997-08-01 19:24:55 +00:00
|
|
|
fi
|
1996-08-28 17:13:00 +00:00
|
|
|
fi
|
1995-10-25 01:33:26 +00:00
|
|
|
fi
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
fi
|
1995-10-25 01:33:26 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_SUBST(ENABLE_GDBTK)
|
1995-11-29 03:34:57 +00:00
|
|
|
AC_SUBST(X_CFLAGS)
|
1995-10-25 01:33:26 +00:00
|
|
|
AC_SUBST(X_LDFLAGS)
|
|
|
|
AC_SUBST(X_LIBS)
|
1997-07-23 02:45:59 +00:00
|
|
|
AC_SUBST(TIXLIB)
|
* tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
the directory name
* Merge (lots) with foundry-971118-build
* Makefile.in (install-only): install the new gdbtk, not the old
* top.h: add declaration of get_prompt
* top.c (get_prompt): new function
* gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
commands
(gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
"gdb_get_function", "gdb_get_line", "gdb_get_file",
"gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
and "gdb_prompt"
(gdb_get_vars_command): new function
(gdb_get_line_command): new function
(gdb_get_file_command): new function
(gdb_get_function_command): new function
(gdb_get_tracepoint_info): new function
(gdbtk_create_tracepoint): new function
(gdbtk_delete_tracepoint): new function
(tracepoint_notify): new function
(tracepoint_exists): new function
(gdb_actions_command): new function
(gdb_tracepoint_exists_command): new function
(gdb_prompt_command): new function
* main.tcl: initialize gdbtk_state(readline)
* console.tcl (invoke): get realine working
(activate): add prompt argument for readline
(setprompt): add prompt argument for readline
* interface.tcl (gdbtk_tcl_readline): hack to get readline working
* lots: Merge with foundry-971118-build
* console.tcl (setprompt): get prompt from gdb
* prefs.tcl (pref_set_defaults): add tracepoint defaults
* interface.tcl (gdbtk_tcl_tracepoint): new function
* src.tcl (constructor): set default behavior of left click, make
a tracepoint dot, too
(fill_files): "new" function: ripped out of "location"
(location): use fill_files instead
(do_bp): add support for tracepoints
(bp_line): add support for tracepoints
(set_tracepoint): new function
(config_win): add "Set tracepoint here" to right-click menu
* actiondlg.tcl: new file to help with tracepoint data collection actions
* tracedlg.tcl: new file to help with tracepoints
1997-11-26 22:38:10 +00:00
|
|
|
AC_SUBST(TIX_DEPS)
|
1998-04-29 04:17:25 +00:00
|
|
|
AC_SUBST(GDBTKLIBS)
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# end-sanitize-gdbtk
|
|
|
|
|
1998-03-23 18:34:28 +00:00
|
|
|
AC_PATH_X
|
|
|
|
# start-sanitize-sky
|
|
|
|
# Enable GPU2 library for MIPS simulator
|
|
|
|
AC_ARG_WITH(sim-gpu2,
|
1998-09-25 01:27:47 +00:00
|
|
|
[ --with-sim-gpu2=DIR Use GPU2 library under given DIR],
|
1998-03-25 16:48:04 +00:00
|
|
|
[case "${target}" in
|
1998-10-28 16:08:03 +00:00
|
|
|
mips*-sky*-*)
|
1998-03-25 16:48:04 +00:00
|
|
|
if test -d "${withval}"
|
|
|
|
then
|
1998-06-23 19:01:10 +00:00
|
|
|
LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
|
1998-03-25 16:48:04 +00:00
|
|
|
else
|
|
|
|
AC_MSG_WARN([Directory ${withval} does not exist.])
|
|
|
|
fi ;;
|
|
|
|
*) AC_MSG_WARN([--with-sim-gpu2 option invalid for target ${target}])
|
|
|
|
esac])dnl
|
1998-04-21 21:14:09 +00:00
|
|
|
|
|
|
|
# Enable target accurate FP library
|
|
|
|
AC_ARG_WITH(sim-funit,
|
1998-09-25 01:27:47 +00:00
|
|
|
[ --with-sim-funit=DIR Use target FP lib under given DIR],
|
1998-04-21 21:14:09 +00:00
|
|
|
[case "${target}" in
|
1998-10-28 16:08:03 +00:00
|
|
|
mips*-sky*-*)
|
1998-04-21 21:14:09 +00:00
|
|
|
if test -d "${withval}"
|
|
|
|
then
|
|
|
|
LIBS="${LIBS} -L${withval}/lib -lfunit"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([Directory ${withval} does not exist.])
|
|
|
|
fi ;;
|
|
|
|
*) AC_MSG_WARN([--with-sim-funit option invalid for target ${target}])
|
|
|
|
esac])dnl
|
1998-03-23 18:34:28 +00:00
|
|
|
# end-sanitize-sky
|
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_SUBST(ENABLE_CFLAGS)
|
1997-01-04 00:25:53 +00:00
|
|
|
|
|
|
|
AC_SUBST(CONFIG_OBS)
|
* tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
the directory name
* Merge (lots) with foundry-971118-build
* Makefile.in (install-only): install the new gdbtk, not the old
* top.h: add declaration of get_prompt
* top.c (get_prompt): new function
* gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
commands
(gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
"gdb_get_function", "gdb_get_line", "gdb_get_file",
"gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
and "gdb_prompt"
(gdb_get_vars_command): new function
(gdb_get_line_command): new function
(gdb_get_file_command): new function
(gdb_get_function_command): new function
(gdb_get_tracepoint_info): new function
(gdbtk_create_tracepoint): new function
(gdbtk_delete_tracepoint): new function
(tracepoint_notify): new function
(tracepoint_exists): new function
(gdb_actions_command): new function
(gdb_tracepoint_exists_command): new function
(gdb_prompt_command): new function
* main.tcl: initialize gdbtk_state(readline)
* console.tcl (invoke): get realine working
(activate): add prompt argument for readline
(setprompt): add prompt argument for readline
* interface.tcl (gdbtk_tcl_readline): hack to get readline working
* lots: Merge with foundry-971118-build
* console.tcl (setprompt): get prompt from gdb
* prefs.tcl (pref_set_defaults): add tracepoint defaults
* interface.tcl (gdbtk_tcl_tracepoint): new function
* src.tcl (constructor): set default behavior of left click, make
a tracepoint dot, too
(fill_files): "new" function: ripped out of "location"
(location): use fill_files instead
(do_bp): add support for tracepoints
(bp_line): add support for tracepoints
(set_tracepoint): new function
(config_win): add "Set tracepoint here" to right-click menu
* actiondlg.tcl: new file to help with tracepoint data collection actions
* tracedlg.tcl: new file to help with tracepoints
1997-11-26 22:38:10 +00:00
|
|
|
AC_SUBST(CONFIG_DEPS)
|
1998-02-05 01:47:26 +00:00
|
|
|
AC_SUBST(CONFIG_SRCS)
|
1994-06-16 22:02:24 +00:00
|
|
|
|
1996-09-14 00:09:24 +00:00
|
|
|
# Begin stuff to support --enable-shared
|
|
|
|
AC_ARG_ENABLE(shared,
|
1998-09-25 01:27:47 +00:00
|
|
|
[ --enable-shared Use shared libraries],
|
1996-09-14 00:09:24 +00:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) shared=true ;;
|
|
|
|
no) shared=false ;;
|
|
|
|
*) shared=true ;;
|
|
|
|
esac])dnl
|
|
|
|
|
|
|
|
HLDFLAGS=
|
|
|
|
HLDENV=
|
|
|
|
# If we have shared libraries, try to set rpath reasonably.
|
|
|
|
if test "${shared}" = "true"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-*-hpux*)
|
|
|
|
HLDFLAGS='-Wl,+s,+b,$(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-irix5* | *-*-irix6*)
|
|
|
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-linux*aout*)
|
|
|
|
;;
|
1996-10-24 18:51:46 +00:00
|
|
|
*-*-linux* | *-pc-linux-gnu)
|
1996-09-14 00:09:24 +00:00
|
|
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-solaris*)
|
|
|
|
HLDFLAGS='-R $(libdir)'
|
|
|
|
;;
|
|
|
|
*-*-sysv4*)
|
|
|
|
HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
# On SunOS, if the linker supports the -rpath option, use it to
|
|
|
|
# prevent ../bfd and ../opcodes from being included in the run time
|
|
|
|
# search path.
|
|
|
|
case "${host}" in
|
|
|
|
*-*-sunos*)
|
|
|
|
echo 'main () { }' > conftest.c
|
|
|
|
${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
|
|
|
|
if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
elif grep 'No such file' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
1996-11-09 09:17:34 +00:00
|
|
|
elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
|
|
|
|
:
|
1996-09-14 00:09:24 +00:00
|
|
|
elif test "${shared}" = "true"; then
|
|
|
|
HLDFLAGS='-Wl,-rpath=$(libdir)'
|
|
|
|
else
|
|
|
|
HLDFLAGS='-Wl,-rpath='
|
|
|
|
fi
|
|
|
|
rm -f conftest.t conftest.c conftest
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(HLDFLAGS)
|
|
|
|
AC_SUBST(HLDENV)
|
|
|
|
# End stuff to support --enable-shared
|
|
|
|
|
1995-11-29 03:34:57 +00:00
|
|
|
# target_subdir is used by the testsuite to find the target libraries.
|
|
|
|
target_subdir=
|
|
|
|
if test "${host}" != "${target}"; then
|
|
|
|
target_subdir="${target_alias}/"
|
|
|
|
fi
|
|
|
|
AC_SUBST(target_subdir)
|
1991-12-07 08:03:27 +00:00
|
|
|
|
1995-07-14 23:28:13 +00:00
|
|
|
frags=
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
|
|
|
|
if test ! -f ${host_makefile_frag}; then
|
|
|
|
AC_MSG_ERROR("*** Gdb does not support host ${host}")
|
1991-05-19 00:16:46 +00:00
|
|
|
fi
|
1995-07-14 23:28:13 +00:00
|
|
|
frags="$frags $host_makefile_frag"
|
1991-05-19 00:16:46 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
|
|
|
|
if test ! -f ${target_makefile_frag}; then
|
|
|
|
AC_MSG_ERROR("*** Gdb does not support target ${target}")
|
1991-05-19 00:16:46 +00:00
|
|
|
fi
|
1995-07-14 23:28:13 +00:00
|
|
|
frags="$frags $target_makefile_frag"
|
1991-05-19 00:16:46 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_SUBST_FILE(host_makefile_frag)
|
|
|
|
AC_SUBST_FILE(target_makefile_frag)
|
1995-07-14 23:28:13 +00:00
|
|
|
AC_SUBST(frags)
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1995-05-28 07:07:21 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
hostfile=`sed -n '
|
|
|
|
s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
|
|
' ${host_makefile_frag}`
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
|
1995-05-28 07:07:21 +00:00
|
|
|
targetfile=`sed -n '
|
|
|
|
s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
|
|
' ${target_makefile_frag}`
|
1993-10-13 01:08:40 +00:00
|
|
|
|
|
|
|
# these really aren't orthogonal true/false values of the same condition,
|
|
|
|
# but shells are slow enough that I like to reuse the test conditions
|
|
|
|
# whenever possible
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${target}" = "${host}"; then
|
1995-05-28 07:07:21 +00:00
|
|
|
nativefile=`sed -n '
|
|
|
|
s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
|
|
' ${host_makefile_frag}`
|
1997-03-11 15:49:20 +00:00
|
|
|
# else
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# GDBserver is only useful in a "native" enviroment
|
1997-03-11 15:49:20 +00:00
|
|
|
# configdirs=`echo $configdirs | sed 's/gdbserver//'`
|
1992-09-19 11:09:01 +00:00
|
|
|
fi
|
1995-05-28 07:07:21 +00:00
|
|
|
changequote([,])
|
1992-09-19 11:09:01 +00:00
|
|
|
|
|
|
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
|
1994-09-04 23:16:22 +00:00
|
|
|
# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
|
1992-09-19 11:09:01 +00:00
|
|
|
# corresponding links. But we have to remove the xm.h files and tm.h
|
|
|
|
# files anyway, e.g. when switching from "configure host" to
|
|
|
|
# "configure none".
|
|
|
|
|
1991-07-04 15:59:47 +00:00
|
|
|
files=
|
|
|
|
links=
|
1991-07-31 00:34:07 +00:00
|
|
|
rm -f xm.h
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${hostfile}" != ""; then
|
|
|
|
files="${files} config/${gdb_host_cpu}/${hostfile}"
|
|
|
|
links="${links} xm.h"
|
1991-07-04 15:59:47 +00:00
|
|
|
fi
|
1991-07-31 00:34:07 +00:00
|
|
|
rm -f tm.h
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${targetfile}" != ""; then
|
|
|
|
files="${files} config/${gdb_target_cpu}/${targetfile}"
|
|
|
|
links="${links} tm.h"
|
1991-07-04 15:59:47 +00:00
|
|
|
fi
|
* config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
z8k}: New directories to hold cpu specific configuration files.
Naming follows gcc convention.
* config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
* nm-*, xm-*, tm-*: All native, host, and target files, which
get linked to nm.h, xm.h, and tm.h respectively by configure,
moved to appropriate config/<cpu> subdirectory.
* nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
Native, host, and target files that are common across more than
one cpu architecture and included by one of the configured
native, host, or target files, get moved to config directory.
* Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
pick up native, host, or target include files moved to one of
the config subdirectories, and that are included by other files.
* Makefile.in (alldeps.mak): Modify to account for new config
directory structure.
* alldeps.mak, depend: Update for new config directory structure.
* config/*/[ntx]m-*.h: Modify all files that include other
[ntx]m-*.h files to use path relative to gdb/config. I.E.
"a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
"tm-29k.h".
* remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
* mipsread.c (tm-mips.h): Include mips/tm-mips.h.
* i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
* configure.in: Default gdb_host_cpu to host_cpu, and remap
the ones where the default is not unique or different than the
config subdirectory name. Similarly, handle gdb_target_cpu.
Modify configure.in as appropriate to make use of gdb_host_cpu
and gdb_target_cpu to find makefile fragments and make links.
1993-03-23 01:01:49 +00:00
|
|
|
rm -f nm.h
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
if test "${nativefile}" != ""; then
|
|
|
|
files="${files} config/${gdb_host_cpu}/${nativefile}"
|
|
|
|
links="${links} nm.h"
|
1992-09-30 02:03:24 +00:00
|
|
|
else
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# A cross-only configuration.
|
|
|
|
files="${files} config/nm-empty.h"
|
|
|
|
links="${links} nm.h"
|
1992-09-19 11:09:01 +00:00
|
|
|
fi
|
1994-12-30 23:42:46 +00:00
|
|
|
# start-sanitize-gdbtk
|
1997-04-01 06:04:02 +00:00
|
|
|
AC_PROG_LN_S
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
# Make it possible to use the GUI without doing a full install
|
1998-10-12 02:54:58 +00:00
|
|
|
if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl2 ; then
|
|
|
|
if test "$LN_S" = "ln -s" -a ! -f gdbtcl2 ; then
|
|
|
|
echo linking $srcdir/gdbtcl2 to gdbtcl2
|
|
|
|
$LN_S $srcdir/gdbtcl2 gdbtcl2
|
1997-04-01 06:04:02 +00:00
|
|
|
else
|
1998-10-12 02:54:58 +00:00
|
|
|
echo Warning: Unable to link $srcdir/gdbtcl2 to gdbtcl2. You will need to do a
|
1997-04-01 06:04:02 +00:00
|
|
|
echo " " make install before you are able to run the GUI.
|
|
|
|
fi
|
1994-07-28 22:07:02 +00:00
|
|
|
fi
|
1994-12-30 23:42:46 +00:00
|
|
|
# end-sanitize-gdbtk
|
1994-07-28 22:07:02 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_LINK_FILES($files, $links)
|
|
|
|
|
1997-11-20 12:20:39 +00:00
|
|
|
dnl Check for exe extension set on certain hosts (e.g. Win32)
|
Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
Changes to account for name change from cygwin32 to cygwin and
clean up Win32-related ifdefs.
* configure.tgt: check for cygwin* instead of cygwin32.
New cygwin gdb_target variable loses the "32".
* configure.host: check for cygwin* instead of cygwin32.
New cygwin gdb_host variable loses the "32".
* configure.in: test __CYGWIN__ instead of __CYGWIN32__,
rename gdb_cv_os_cygwin32 variable to drop the "32". Call
AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
autoconf yet.
* configure: regenerate.
* main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h
where
cygwin path conv protos live, instead of adding a proto here
for
them here.
* {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
instead of __CYGWIN32__.
* source.c: thoughout, check _WIN32 instead of WIN32.
* config/i386/cygwin32.mh: delete.
* config/i386/cygwin.mh: new file, was cygwin32.mh.
* config/i386/cygwin32.mt: delete.
* config/i386/cygwin.mt: new file, was cygwin32.mt.
* config/i386/tm-cygwin32.h: delete.
* config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/i386/xm-cygwin32.h: delete.
* config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
* config/i386/xm-windows.h: #include xm-cygwin.h now.
* config/powerpc/cygwin32.mh: delete.
* config/powerpc/cygwin.mh: new file, was cygwin32.mh.
* config/powerpc/cygwin32.mt: delete.
* config/powerpc/cygwin.mt: new file, was cygwin32.mt.
* config/powerpc/tm-cygwin32.h: delete.
* config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
* config/powerpc/xm-cygwin32.h: delete.
* config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
* rdi-share/aclocal.m4: regenerate with aclocal.
* rdi-share/configure: regenerate with autoconf.
* rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c,
* serpardr.c,
unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 08:16:08 +00:00
|
|
|
AM_EXEEXT
|
1997-11-20 12:20:39 +00:00
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
AC_CONFIG_SUBDIRS($configdirs)
|
1997-03-31 19:57:51 +00:00
|
|
|
AC_OUTPUT(Makefile .gdbinit:gdbinit.in,
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
[
|
|
|
|
dnl Autoconf doesn't provide a mechanism for modifying definitions
|
|
|
|
dnl provided by makefile fragments.
|
|
|
|
dnl
|
|
|
|
if test "${nativefile}" = ""; then
|
1996-09-08 23:33:23 +00:00
|
|
|
sed -e '/^NATDEPFILES[[ ]]*=[[ ]]*/s//# NATDEPFILES=/' \
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
< Makefile > Makefile.tem
|
|
|
|
mv -f Makefile.tem Makefile
|
1995-05-03 01:43:27 +00:00
|
|
|
fi
|
|
|
|
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
changequote(,)dnl
|
* Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
and means that these filenames no longer need be unique across all
the config/* directories.
* configure.in: Put the config/*/ into TM_FILE, etc.
* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
and trapv exceptions.
* target.h (struct section_table), objfiles.h (struct obj_section):
Change name of field sec_ptr to the_bfd_section. More mnemonic
and avoids the (sort of, for the ptx compiler) name clash with
the name of the typedef.
* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
* utils.c: Include readline.h.
* Makefile.in (utils.o): Add dependency.
* remote.c (getpkt): Add support for run-length encoding.
1994-03-19 18:49:50 +00:00
|
|
|
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
|
|
|
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
|
|
|
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
|
|
|
|
mv -f Makefile.tmp Makefile
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
changequote([,])dnl
|
|
|
|
|
1996-03-17 06:28:57 +00:00
|
|
|
case x$CONFIG_HEADERS in
|
1996-03-21 15:59:01 +00:00
|
|
|
xconfig.h:config.in)
|
1996-03-17 06:28:57 +00:00
|
|
|
echo > stamp-h ;;
|
|
|
|
esac
|
1995-05-16 20:21:58 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
gdb_host_cpu=$gdb_host_cpu
|
|
|
|
gdb_target_cpu=$gdb_target_cpu
|
|
|
|
nativefile=$nativefile
|
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
|
|
|
])
|
1995-09-02 13:48:16 +00:00
|
|
|
|
|
|
|
exit 0
|