Commit Graph

473 Commits

Author SHA1 Message Date
Andrew Cagney 5c8cc33173 Trim targ_arches to just the first. 2000-06-11 01:39:08 +00:00
Fernando Nasser ce844ae26d 2000-06-08 Fernando Nasser <fnasser@cygnus.com>
* configure.in: Replace misplaced CONFIG_ADD by the correct
        CONFIG_CLEAN.
        * configure, config.in: Regenerate.
2000-06-09 03:35:09 +00:00
Andrew Cagney 1ba607adba Use config.bfd to determine the default architecture and byte order.
Flush all BYTE_ORDER_DEFAULT macros from mips. Can rely on BFD's value.
2000-06-08 04:00:56 +00:00
Michael Snyder 3e0bf9f1f0 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
* configure.in: Enable autoconf to find curses.h on Solaris 2.8.
	* configure: Regenerate.
2000-06-07 01:14:07 +00:00
Mark Kettenis 422ea4b878 * acconfig.h, configure.in, i386bsd.c (HAVE_STRUCT_REG_R_FS):
Renamed from HAVE_R_FS.
(HAVE_STRUCT_REG_GS): Renamed from HAVE_R_GS.
* configure, config.in: Regenerated.
2000-06-05 18:59:40 +00:00
Christopher Faylor 29fe111d82 * win32-nat.c: Fix up gcc warnings throughout.
(handle_load_dll): Change DLL name to lower case.
(handle_exception): Add a second argument indicating whether a breakpoint
should be ignored.  Return a 0 if the breakpoint was ignored.
(get_child_debug_event): Pass argument to handle_exception to control whether a
breakpoint should be ignored.
(child_create_inferior): Use modern cygwin API.  Explicitly clear last_sig.
Pass FIRST_EXCEPTION to get_child_debug_event for detection of first
breakpoint.

* configure.in: Eliminate unneeded WINDRES/DLLTOOL tests left over after last change.
* configure: Regenerate.
2000-06-03 05:04:14 +00:00
Christopher Faylor 95ca63c499 * configure.in: Detect correct versions of ranlib and windres when
cross-compiling.
* configure: Regenerate.
2000-06-03 03:27:30 +00:00
Andrew Cagney 2894793a7b Configure TUI to use <ncurses.h> when available. 2000-05-26 04:11:34 +00:00
Mark Kettenis 7dfa765cc1 * acconfig.h (HAVE_R_FS, HAVE_R_GS): Add.
* configure.in: Add checks for r_fs and r_gs members of
`struct reg'.
* config.in, configure: Regenerated.
2000-05-25 17:18:01 +00:00
Andrew Cagney 4b14d3e4e0 Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h". 2000-05-25 06:49:01 +00:00
Andrew Cagney ed952ac512 Have TUI use the same configury mechanism as MI. 2000-05-25 01:50:50 +00:00
Andrew Cagney 16cadf399a Add -Wuninitialized. 2000-05-23 11:28:14 +00:00
Andrew Cagney 6e8cb14ae5 IRIX GCC fixes from 5.0 branch. 2000-05-23 07:49:05 +00:00
Andrew Cagney d80380145f Minor maint et.al. tweeks. 2000-05-17 08:46:20 +00:00
Andrew Cagney 746a987d82 Check -W options before using them. 2000-05-12 04:37:00 +00:00
Mark Kettenis d84dd0c55e 2000-04-13 Mark Kettenis <kettenis@gnu.org>
* acconfig.h (HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, HAVE_LWPID_T,
	HAVE_PSADDR_T): Add them here instead of in config.in.

	* acconfig.h (PRFPREGSET_T_BROKEN): New define.
	* configure.in: Add check for broken prfpregset_t type.
	* lin-thread.c (gdb_prfpregset): New typedef, depends on
	definition of PRFPREGSET_T_BROKEN.
	(ps_lgetfpregs, ps_lsetfpregs, p_td_thr_getfpregs,
	p_td_thr_setfpregs, thread_db_fetch_registers,
	thread_db_store_registers): Use gdb_prfpregset_t instead of
	prfpregset_t.
	* config.in: Regenerated.
	* configure: Regenerated.
2000-04-14 10:13:50 +00:00
Andrew Cagney 413ccac7ea Only re-generate copying.c when maintainer mode. 2000-04-13 05:33:41 +00:00
Andrew Cagney e48f66e46e Cleanup USE_INCLUDED_REGEX. Move -D to acconfig.h. 2000-04-11 01:21:15 +00:00
Peter Schauer 3423db8257 * configure.in (NEW_PROC_API): Escape square brackets when testing
for solaris2.[678].
	* configure:  Regenerate.
2000-04-08 11:13:17 +00:00
Andrew Cagney 1decb32380 When GCC always enable certain warnings.
Allow configure to set CFLAGS (-g -O2) when GCC.
2000-04-07 08:57:39 +00:00
Nicholas Duffek 6abadcf80e * configure.in (_MSE_INT_H): Define on Solaris 7.
(NEW_PROC_API): Define on Solaris 7 and 8 as well as 6.
	* acconfig.h (_MSE_INT_H): Define on Solaris 7.
	* configure: Regenerate.
	* config.in: Regenerate.
2000-04-07 01:16:17 +00:00
H.J. Lu 8898755195 2000-04-03 H.J. Lu <hjl@gnu.org>
* gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX
	is defined and <regex.h> otherwise.

        * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h".
	* monitor.c: Likewise.
	* osfsolib.c: Likewise.
	* solib.c: Likewise.
	* source.c: Likewise.
	* symtab.c: Likewise.

	* Makefile.in (REGEX): Changed to @REGEX@.
	(REGEX_CFLAGS): New.
	(REGEX1): Removed.
	(ADD_DEPS): Use $(REGEX) instead of $(REGEX1).
	(INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS).

	* configure.in (--with-included-regex): New switch.
	(REGEX): New. Subsstitue @REGEX@ in Makefile.in.
	(REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in.
	* configure: Regenerated.
2000-04-04 02:08:52 +00:00
Jason Merrill d332c5ac7e * configure.in: -linux-gnu*, not -linux-gnu.
* configure (gcc_version): When setting, narrow search to
        lines containing `version_string'.
2000-03-30 02:19:56 +00:00
Andrew Cagney 6a08e74c32 Don't include nrom in CONFIG_INITS. 2000-03-22 04:19:35 +00:00
Andrew Cagney 4397a6ab7a From John David Anglin:
Don't initialize HPUX thread twice.
2000-03-20 06:41:24 +00:00
Mark Kettenis f60300e72c 2000-03-05 Mark Kettenis <kettenis@gnu.org>
Allow GDB to run on Linux 2.0 again.
	* config.in: Add HAVE_PTRACE_GETREGS.
	* configure.in: Check if <sys/ptrace.h> defines PTRACE_GETREGS.
	* configure: Regenerated.
	* config/i386/nm-linux.h (CANNOT_FETCH_REGISTER,
	CANNOT_STORE_REGISTER): New defines.
	* i386-linux-nat.c (have_ptrace_getregs): New variable.
	(PTRACE_XFER_TYPE, CANNOT_FETCH_REGISTER, fetch_register,
	old_fetch_inferior_registers, CANNOT_STORE_REGISTER,
	store_register, old_store_inferior_registers): Copied over from
	`inptrace.c' as a temporary measure.
	(fetch_regs, store_regs, fetch_fpregs, store_fpregs):
	Conditionalize on HAVE_PTRACE_GETREGS.  Define stubs if
	HAVE_PTRACE_GETREGS isn't defined.
	(fetch_regs): Reset `have_ptrace_getregs' if ptrace call fails
	with EIO.
	(fetch_inferior_registers, store_inferior_registers): Fall back on
	the method use in `infptrace.c' (by calling
	old_fetch_inferior_registers and old_store_inferior_registers) if
	`have_ptrace_getregs' isn't set.
2000-03-05 22:57:06 +00:00
Andrew Cagney b3a9033281 Move GDBtk's ``ln -s ... gdbtcl'' code out of configure.
Add CONFIG_CLEAN, CONFIG_ALL to configured targets.
Add all-gdbtk, clean-gdbtk.
2000-03-03 05:44:39 +00:00
Andrew Cagney 379d643457 Only configure GDBtk when it is present. 2000-03-03 02:50:24 +00:00
Mark Kettenis 75c6e08a8a 2000-02-26 Mark Kettenis <kettenis@gnu.org>
Make cross-compilation for the Hurd more friendly.
	From Jeff Bailey <jbailey@gnu.org>:
	* configure.in: Use AC_CHECK_TOOL to find MiG.
	* Makefile.in (MIG): New variable.
	* config/i386/i386gnu.mh (MIG): Remove.
	* configure: Regenerated.
2000-02-26 13:46:56 +00:00
Andrew Cagney e56ac5c3a3 Only install GDBtk files when GDBtk is being built. 2000-02-24 08:16:26 +00:00
Andrew Cagney b0b1b869c7 * configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace. 2000-02-24 07:27:51 +00:00
Andrew Cagney fb40c20903 Add mi/ and testsuite/gdb.mi/ subdirectories.
Add --enable-gdbmi option to configury.
Add mi rules to Makefile.in
Add mi conditional output to event-top.c infrun.c main.c top.c.
Add -i=mi option.
2000-02-23 00:25:43 +00:00
Fernando Nasser d45b9300fc 2000-02-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
* configure.in: Replaces obsolete gdbtk-variable.c with
	gdbtk-varobj.c.
	* configure: Regenerate.
	* Makefile.in: Remove obsolete/extraneous references to
	gdbtk-var* files.
2000-02-16 23:35:19 +00:00
Mark Kettenis 83d37ec863 2000-02-09 Mark Kettenis <kettenis@gnu.org>
* configure.in: Check for lwpid_t, psaddr_t, prgregset_t and
	prfpregset_t in <sys/procfs.h>.
	* config.in: Add HAVE_LWPID_T, HAVE_PSADDR_T, HAVE_PRGREGSET_T,
	HAVE_PRFPREGSET_T.
	* gdb_proc_service.h: Only provide typedefs for lwpid_t, psaddr_t,
	prgregset_t and prfpregset_t if they are not already present.
2000-02-16 13:45:24 +00:00
Elena Zannoni f2c4d933e6 2000-02-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* configure.in: Remove the addition of sol-thread.c to the
	CONFIG_INITS list. This caused problems with init.c, because
	sol-thread.c would be grepped twice for _initialize_* functions.
	* configure: Ditto.
	* Makefile.in: Add FIXME for init.c.
2000-02-08 16:25:08 +00:00
Jason Molenda 3fc11d3e80 import insight-2000-02-04 snapshot (2nd try) 2000-02-07 00:19:45 +00:00
Jason Molenda dfcd3bfb6f import gdb-2000-02-04 snapshot 2000-02-05 07:30:26 +00:00
Jason Molenda 8b93c6380e import gdb-2000-02-02 snapshot 2000-02-03 04:14:45 +00:00
Jason Molenda c5394b80ae import gdb-2000-01-17 snapshot 2000-01-18 00:55:13 +00:00
Jason Molenda 0d06e24ba7 import gdb-2000-01-10 snapshot 2000-01-11 03:07:37 +00:00
Jason Molenda c3f6f71df3 import gdb-2000-01-05 snapshot 2000-01-06 03:07:20 +00:00
Jason Molenda ed9a39ebf9 import gdb-1999-12-21 snapshot 1999-12-22 21:45:38 +00:00
Jason Molenda c2d11a7da0 import gdb-1999-12-06 snapshot 1999-12-07 03:56:43 +00:00
Jason Molenda 5c44784c11 import gdb-1999-11-01 snapshot 1999-11-02 04:44:47 +00:00
Jason Molenda 2acceee218 import gdb-1999-10-04 snapshot 1999-10-05 23:13:56 +00:00
Stan Shebs d4f3574e77 import gdb-1999-09-08 snapshot 1999-09-09 00:02:17 +00:00
Jason Molenda 104c1213b4 import gdb-1999-08-30 snapshot 1999-08-31 01:14:27 +00:00
Jason Molenda 7be570e7ce import gdb-1999-08-16 snapshot 1999-08-16 19:57:19 +00:00
Jason Molenda 96baa820df import gdb-1999-08-09 snapshot 1999-08-09 21:36:23 +00:00
Stan Shebs cd0fc7c3eb import gdb-1999-05-10 1999-05-11 13:35:55 +00:00
Stan Shebs b83266a0e1 import gdb-19990504 snapshot 1999-05-05 14:45:51 +00:00
Stan Shebs 7a292a7adf import gdb-19990422 snapshot 1999-04-26 18:34:20 +00:00
Stan Shebs c906108c21 Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
Stan Shebs 071ea11e85 Initial creation of sourceware repository 1999-04-16 01:34:07 +00:00
Jason Molenda 8aad4bd619 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
* gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
        * configure.in: Don't check for libintl.h.
        * configure, config.in: Regenerated.

Fixes a problem on debian systems, a conflict between the
/usr/include/libintl.h and the routines that are actually linked in,
up in ../intl.
1999-02-09 07:03:23 +00:00
Jim Ingham b11485dae8 1999-02-05 James Ingham <jingham@cygnus.com>
* Makefile.in: Add GDBTK_CFLAGS - this is now used to hold
        -fwritable-strings when compiling with Tk8.1.
        * configure.in: Add GDBTK_CFLAGS, set it to -fwritable-strings for
        Tcl/Tk8.1 & greater.
        * acinclude.m4: Move the rest of the defines to find Itcl, Itk &
        Tix from aclocal.m4 to here.
        * aclocal.m4: regenerate.
        * configure: regenerate.

        * gdbtk-hooks.c (x_event): Tcl_ObjGetVar2 was removed from
        Tcl8.1.  Use Tcl_GetVar2 instead.
        * gdbtk-hooks.c (gdbtk_trace_find): Fix up call to
        Tcl_GlobalEvalObj for Tcl/Tk 8.1.
        * gdbtk-hooks.c (gdbtk_trace_start_stop): Call to Tcl_EvalObj was
        inefficient, replace with call to Tcl_GlobalEval.
        * gdbtk.c: Don't swap out the Tcl_Alloc calls in gdbtk.c.  We took
        care of that in Tcl itself for 8.1.
        * gdbtk.c: Remove const from the script string since Tcl8.1 has
        taken to scribbling sentinals into strings passed to it again...

        * gdbtk-cmds.c (wrapped_call): Change declaration of 1st arg from
        char * to PTR to eliminate warning.
        * gdbtk-cmds.c (perror_with_name_wrapper): Ditto
1999-02-06 01:50:46 +00:00
Christopher Faylor 2ab6ecfc96 * configure.in: Move termcap determination a later in the file to catch
setting of cygwin flag.
* configure: Regenerate.
1999-02-04 05:21:55 +00:00
Christopher Faylor d8f6bd4ee7 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
* configure.in: Treat libtermcap.a detection as a special case when
hosting on cygwin.
* configure: Regenerate.
1999-02-03 19:29:00 +00:00
Jason Molenda 0abbe35d84 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Require autoconf 2.13.
        (AM_EXEEXT): Replace with new AC_EXEEXT.
        * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
        * aclocal.m4: Regenerated.
        * configure: Regenerated.
1999-02-01 21:34:30 +00:00
Jim Blandy 2ac058fda9 Allow PPC users to select which PPC/RS6000 variant they're debugging
at run-time.  At the moment, the only thing this affects is the
set of registers visible.
* config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
to the function rs6000_register_name.
(rs6000_register_name): Include extern decl.
(NUM_REGS): Bump to 183.  What's the right way to do this?
(FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
FIRST_SP_REGNUM, LAST_SP_REGNUM.
(REGISTER_BYTES): Recompute this.
* rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
some concomitant formatting changes.
#include "gdbcmd.h", so we can define commands here.
(struct variant): New structure.
(COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
PPC_32_OEA_SPR_NAMES, num_registers): New macros.
(register_names_rs6000, register_names_uisa, register_names_403,
register_names_403GC, register_names_505, register_names_860,
register_names_601, register_names_602, register_names_603,
register_names_604, register_names_750, variants): New variables.
(rs6000_register_name, install_variant, find_variant_by_name,
install_variant_by_name, list_variants, show_current_variant,
set_processor, show_processor): New functions.
(_initialize_rs6000_tdep): Define new commands `set processor' and
`show processor', and call install_variant_by_name to set the
default variant.
* rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
some concomitant formatting changes.
* configure.in: Accept the `--with-cpu' flag, to specify a default
processor variant.
* acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
by configure's `--with-cpu' flag.
* config.in, configure: Regenerated.
1999-02-01 21:17:19 +00:00
Jim Ingham c98fe0c119 This is the merge of the Itcl3.0 gdbtk development branch into the
trunk.  To build it, you will have to do update -dP in the itcl
directory, and update tcl, tk, tix and libgui as well.
1999-01-28 03:50:17 +00:00
Christopher Faylor 040bbbc24b * configure.in: Ensure that -luser32 is always linked in for cygwin build.
* configure: Regenerated.
1999-01-18 17:54:36 +00:00
David Taylor 460845ab29 HP merge related changes; TUI stuff; new configs for 10.20 and 11.00; new files. 1999-01-06 23:10:48 +00:00
Jason Molenda d951f9e4f9 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Fix whitespace indentation for --help.
        * configure: Regenerated.
1999-01-05 01:42:38 +00:00
Jason Molenda f240337a6f 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Require autoconf 2.12.1 or higher.
        * doc/configure.in: Ditto.
        * nlm/configure.in: Ditto.
        * rdi-share/configure.in: Ditto.
        * testsuite/configure.in: Ditto.
        * doc/Makefile.in: Don't hardcode $(SHELL).
        * nlm/Makefile.in: Ditto.
        * rdi-share/Makefile.in: Ditto.
        * testsuite/Makefile.in: Ditto.
1999-01-05 00:17:07 +00:00
Jason Molenda adcb1e06ef 1998-12-30 Jason Molenda (jsm@bugshack.cygnus.com)
* utils.c: <readline/readline.h> instead of "readline/readline.h".

        * configure.in (TERM_LIB): Search for the appropriate term library
        on the host system.
        * configure: Regenerated.
        * Makefile.in (TERMCAP): Set based on autoconf check.
        * config/*/*.mh: Don't override TERMCAP setting.
1998-12-31 01:30:52 +00:00
Jim Ingham 44ffbd6e4a Mon Dec 14 13:20:50 1998 Jim Ingham <jingham@cygnus.com>
* Makefile.in, configure.in configure - add support for LIBGUI
	outside the IDE context.
1998-12-14 21:45:38 +00:00
Jason Molenda 852b7d1192 1998-12-11 Jeff Law (law@cygnus.com)
* configure.in (with-sim-gpu2): Do not emit a -L argument without
        an associated pathname.  Link in the math library after the gpu2
        library.

Assumes that libm is around (and doesn't take advantage of the
AC_CHECK_LIB(m) that is already in configure.in), but this is a
minor point and unlikely to cause problems.
1998-12-11 18:47:33 +00:00
Andrew Cagney c8623080cb CARP: --enable-build-warnings=-Werror: Fix problems stopping GDB being
canadian-crossed to host i386-cygwin.
1998-11-25 22:13:53 +00:00
Geoffrey Noer 94a919180a Thu Nov 19 14:43:44 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: switch back to checking __CYGWIN32__
        * configure: regenerate
1998-11-19 22:44:42 +00:00
Geoffrey Noer d836385e11 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
Geoffrey Noer b93f016bf0 Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: Check cygwin* instead of cygwin32*.
        * configure: regenerate
1998-11-02 23:28:59 +00:00
Frank Ch. Eigler af3711e6b3 * peripheral part of sky->devo merge
* patch approved by shebs
Wed Oct 28 12:33:52 EST 1998  Frank Ch. Eigler <fche@cygnus.com>
	* configure.in: Accept both -skyb- and -sky- for
	--with-sim-funit/gpu2 options.
	* configure: Rebuilt.
1998-10-28 16:08:03 +00:00
Andrew Cagney b9a9cde40b Unify (well almost) --enable-build-warnings configuration option
across GDB and SIM directories.
1998-10-28 02:01:32 +00:00
Jason Molenda 9c1fb2a7db 1998-10-19 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
        * configure: Regenerated.


Geoff just removed the AM_EXEEXT definition from ../binutils/aclocal.m4
so we would have been hosed in the near future.
1998-10-19 22:25:28 +00:00
Jason Molenda 879c041771 1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
* defs.h: Move _initialize_printcmd, _initialize_stack,
        _initialize_blockframe out of here and in to their respective .c files.
        * blockframe.c: Move _initialize_blockframe prototype to here.
        * printcmd.c: Move _initialize_printcmd prototype to here.
        * stack.c: Move _initialize_stack prototype to here.

        * source.c, symtab.h: Move _initialize_source prototype to the .c file.
        * values.c, value.h: Move _initialize_values prototype to the .c file.
        * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c
        file.
        * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype
        to the .c file.

        * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
        Standardize comments for the prototype section of these files.

        * configure.in: Look in libc for wctype before looking for it in libc.

The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem
where an empty stub library (libw) causes a core dump when we call vasprintf
(e.g. `info br') in the final linked gdb.
1998-10-14 23:44:13 +00:00
Felix Lee 37f58dce03 * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
version didn't work for sol2.6; pushed it to autoconf.
        * configure.in (gdb_cv_proc_service_is_old): new test.
        * acconfig.h (PROC_SERVICE_IS_OLD): new define.
        * configure, config.in: regenerate.
1998-10-14 01:15:01 +00:00
Jason Molenda b0f33a0337 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* Makefile.in (AWK): Unused; remove.
        * configure.in: Remove unused autoconf checks for MINIX, memcpy,
        poll, select, strings.h.
        * config.in: Regenerated.
        * configure: Regenerated.
1998-10-13 03:15:07 +00:00
Jason Molenda 1dee2761ad 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Check for sys/debugreg.h, asm/debugreg.h.
        * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
        present.

This is to work around a conflict where the Linux 2.1.x kernel and glibc
2.0.x are not in sync; including <sys/debugreg.h> will result in an error.
With luck, these losers will get their act together and we can trash
this hack in the near future.
1998-10-13 00:35:48 +00:00
Andrew Cagney 454e0c7d51 * configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
(ChangeLog entry already checked in).
1998-10-12 02:54:58 +00:00
Andrew Cagney 287026b71a Add new config options --enable-carp (tempoary) and
--enable-targets=... (more permenant).  Add dummy target `carp' with
associated directory (tempoary).
Expect a rewrite down the track.
1998-10-08 05:35:49 +00:00
Jason Molenda 87feff9dab 1998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)
Eliminate a few warnings from the compiler.
        * breakpoint.h: Add prototype.
        * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
        * configure.in: Check if strdup declaration is necessary.
        * configure: Regenerated.
        * defs.h: Add prototypes.
        * gdb_string.h: Only define strdup if necessary.
        * gdbthread.h: Add prototypes.
        * printcmd.c: Add prototyptes.
        (disassemble_command): Remove unused variable 'section'.
        * symtab.c: Add prototypes.
        * symtab.h: Include gnu-regex.h, add prototype.
        * thread.c: Add prototype.
1998-10-06 22:24:40 +00:00
Jason Molenda 4817b40893 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Change --enable-warnings to --enable-build-warnings.
        * configure: Updated.
1998-09-25 03:04:03 +00:00
Jason Molenda e3009a74f4 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
        * configure: Regenerated.
1998-09-25 01:30:46 +00:00
Jason Molenda ba68ad5701 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Add --enable-warnings.
        Adjust whitespace of other --with and --enable options so that
        configure --help lines up correctly.
        * aclocal.m4: Ditto.
        * Makefile.in (WARN_CFLAGS): Add.  Set by configure.
        * configure: Regenerated.
1998-09-25 01:27:47 +00:00
Drew Moseley fa41e1a3fa Added sanitize-ide markers 1998-09-21 18:37:32 +00:00
Jason Molenda 4ff3dfab54 1998-08-18 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Add more header files to AC_CHECK_HEADERS.
        * configure: Regenerated.

        * command.c: Include wait.h or sys/wait.h if present.
        * inftarg.c: Ditto.
        * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
        on autoconf test.
        * infptrace.c: Ditto.

        * expprint.c: Include ctype.h for isprint prototype.
        * i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
        * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if
        present, based on autoconf test.

        * utils.c: Include curses.h and term.h if present.
        (puts_debug): Change 'carriage_return' local variable to return_p
        to avoid name clash.

        * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
        determine it with autoconf.
        * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
        with autoconf.
        * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it
        with autoconf.
        * config/i386/nm-i386v.h: Ditto.
        * config/i386/nm-symmetry.h: Ditto.
        * config/m88k/xm-cxux.h: Ditto.
        * config/m88k/xm-dgux.h: Ditto.

        * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
        * config/m68k/nm-delta68.h: Removed.
1998-08-18 23:04:24 +00:00
Drew Moseley c076f1ed1c Added Foundry SDK changes. 1998-08-13 20:24:45 +00:00
Jim Ingham f3b86a30f9 Wed Jul 1 13:10:58 1998 Jim Ingham <jingham@cygnus.com>
* Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c &
	gdbtk-cmds.c to comply with the gdb conventions.  Changed the
	configure & makefile to reflect the change...
1998-07-01 20:17:31 +00:00
Jim Ingham ca4e7e143d Wed Jul 1 11:07:21 1998 Jim Ingham <jingham@cygnus.com>
* main.tcl (gdbtk_preloop): Call gdbtk_idle on spec.  If there was an
        error in loading an executible specified on the command line,
	then the pre_add_symbol hook would have called gdbtk_busy but
        the corresponding call to gdbtk_idle would not have occured.

        Also changed some catch calls so they didn't use
        "catch {set foo [real_command]}"
	    but rather the more efficient:
	"catch {real_command} foo"

	* register.tcl: more catch cleanups
	* src.tcl: more catch cleanups
	* stack.tcl: more catch cleanups
	* target.tcl: more catch cleanups
	* tdump.tcl: more catch cleanups
	* variables.tcl: more catch cleanups
	* watch.tcl: more catch cleanups

	* gdbtk.c (gdbtk_init): Fixed a bug in the startup code on Windows
	that caused gdbtk not to find the share directory unless
	GDBTK_LIBRARY was set.

	* gdbtk.c: removed all the commands and hooks from this file so
	now it contains only the startup code.
 	* gdbtk_cmds.c: New file - this contains all the Tcl commands that
	gdb defines.  All the old commands were moved here, the
	string-based commands were converted to object commands, and the
	object-based commands were all converted to uniformly use the
	call_wrapper.  A new function, Gdbtk_Init was added to centralize
	initializing the gdb package.  Also added gdbtk as a package
	into gdbtk_interp.
	* gdbtk_hooks.c: New file - All the hooks were moved here, and a new
	function, gdbtk_add_hooks was added to centralize adding all these
	hook functions.  gdbtk_fputs was also modified to handle the new
	result_ptr structure.  See the comments in gdbtk.h for more
	details.
	* gdbtk.h: New file - this contains all the defines and globals
	shared by gdbtk.c, gdbtk_cmds.c & gdbtk_hooks.c
	* Makefile.in, configure.in & configure: mutatis mutandi for the
	new files.
1998-07-01 19:29:14 +00:00
Keith Seitz 509b70ac80 * main.c (main): Don't include gdbtk test code if GDBTK is
not defined by configure.

        * configure.in: When enabling gdbtk, add "-DGDBTK" to ENABLE_CFLAGS.

        * configure: Regenerate.
1998-06-29 19:04:30 +00:00
Jason Molenda 59bbabf5c0 Tue Jun 23 11:58:35 1998 Jason Molenda (crash@bugshack.cygnus.com)
* configure.in: s/lXext/-lXext/ for Jillian's change.
1998-06-23 19:01:10 +00:00
Jillian Ye f915cc9125 configure.in: Add -lXext to mips_extra_libs 1998-06-23 17:59:31 +00:00
Jason Molenda 1512548423 Fri Jun 12 14:22:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
* configure.in (LIBS): Add -lw to the list of libraries if needed.

-lw needed on Solaris to get wctype().  wctype() needed by new gnu-regex.c.
1998-06-12 21:23:44 +00:00
Jason Molenda 46ccc6bfc9 Thu Jun 11 15:05:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
* btowc.c: Removed.
        * configure.in: Don't see if we need to replace btowc().
        * Makefile.in: Don't include LIBOBJS.
        * configure: Regenerated.
        * gnu-regex.c (regex_compile): Only support i18n [:foo:] if
        we have btowc().
1998-06-11 22:08:46 +00:00
Jason Molenda 9ed669cf76 Wed Jun 10 14:06:05 1998 Jason Molenda (crash@bugshack.cygnus.com)
* configure.in: Add some tests for gnu-regex.c's benefit.
        See if btowc() function is provided in C library.
        * configure, config.in: Regenerated.
        * Makefile.in (CLIBS, CDEPS): Add @LIBOBJS@ to build btowc.c
        if necessary.
        * btowc.c: New file.

        * gnu-regex.c: Reorder wchar.h and wctype.h includes for Solaris'
        benefit.
        Drop namespace preserving defines for now.


Mods based on the modifications used in GNU grep 2.2 to make gnu-regex.c
compile on other OSes.
1998-06-10 21:08:38 +00:00
Keith Seitz 4779296003 * main.c (main): Check for NULL from getenv on CYGWIN32.
* gdbtk.c (_initialize_gdbtk): Get rid of the console. Patch from
        Chris Faylor (cgf@cygnus.com).

        * configure.in: Link cygwin32 with subsystem console.

        * configure: Regenerated
1998-05-29 01:20:46 +00:00
Ian Lance Taylor 0aa3233efe * configure.in: Add AC_FUNC_ALLOCA.
* defs.h: Check HAVE_ALLOCA_H rather than sparc.  Add _AIX pragma
	alloca.
	* configure: Rebuild.
1998-05-13 22:38:55 +00:00
Tom Tromey b177bf844c * Makefile.in (GDBTKLIBS): New macro.
(INSTALLED_LIBS): Include GDBTKLIBS.
	(CLIBS): Likewise.
	* configure: Rebuilt.
	* configure.in: Put Tcl/Tk libs into GDBTKLIBS, not LIBS.
	(GDBTKLIBS): AC_SUBST.
1998-04-29 04:17:25 +00:00
Jason Molenda 21cbc60c52 Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
* configure.in (strerror): Check if function must be declared.
        * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
        * gdb_string.h (strerror): Function declaration issued if
        NEED_DECLARATION_STRERROR.
        * configure, config.in : Files regenerated.
1998-04-23 19:53:35 +00:00