Commit Graph

340 Commits

Author SHA1 Message Date
Daniel Jacobowitz d28f9cdffd Original patch by Tom Tromey <tromey@cygnus.com> and
Jason Molenda <jmolenda@apple.com>.
	* Makefile.in (PROFILE_CFLAGS): Substitute from configure.
	(INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
	* NEWS: Mention profiling.
	* configure.in (--enable-gdbtk): Fix typo.
	(--enable-profiling): New.  Set PROFILE_CFLAGS.
	* maint.c (maintenance_set_profile_cmd): Remove NOTYET.
	Fill in function.
	(profiling_state): New variable.
	(mcleanup_wrapper): New function.
	(_initialize_maint): Remove NOTYET, fix call to
	add_setshow_boolean_cmd for "maint set profile".
	* configure: Regenerated.
2003-01-22 23:50:35 +00:00
Daniel Jacobowitz 030292b70e * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
variables.
	(main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
	* configure.in: Add --with-sysroot.
	* configure: Regenerated.
	* main.c (gdb_sysroot): New variable.
	(captured_main): Initialize gdb_sysroot.
	* defs.h (gdb_sysroot): New extern declaration.
	* solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2003-01-13 18:00:16 +00:00
Daniel Jacobowitz b00a803742 * Makefile.in (acconfig_h): Remove incorrect macro.
(config_h): Define.
	(osabi.o): Update dependencies.
	* configure.tgt: Set gdb_osabi based on target triplet.
	* configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
	* configure: Regenerated.
	* config.in: Regenerated.
	* osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
	(GDB_OSABI_DEFAULT): Define if not already defined.
	(user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
	(set_osabi_string): New variables.
	(gdbarch_register_osabi): Add new OS ABI to
	gdb_osabi_available_names.
	(gdbarch_lookup_osabi): Honor specified and default OS ABIs.
	(set_osabi, show_osabi): New functions.
	(_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2003-01-04 23:47:13 +00:00
Mark Kettenis bfd260bb5c * configure.in: Don't set and AC_SUBST SUBDIRS.
* configure: Regenerated.
2003-01-04 19:35:15 +00:00
Mark Kettenis 72cfdc7602 * configure.in: Remove code dealing with shared libraries.
* Makefile.in: Remove HLDFLAGS and HLDENV.
* configure: Regenerated.
2003-01-04 19:27:19 +00:00
Mark Kettenis 8ee5372653 * configure.in: Move code that provides the --enable-gdbtk option
right after the code that handles the --enable-tui option, and
polish it somewhat.
* configure: Regenerated.
2003-01-04 01:03:41 +00:00
Mark Kettenis 14abd0fbf0 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
AC_CHECK_FUNCS and remove the old check for pread64.
* acinclude.m4 (AC_GNU_SOURCE): New macro.
* acconfig.h (_GNU_SOURCE): Add.
(HAVE_PREAD64): Remove.
* configure, aclocal.m4, config.in: Regenerated.
2003-01-04 00:34:43 +00:00
Mark Kettenis 8dcde88743 * configure.in: Remove all use of the SUBDIRS variable; add
directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
code providing the --enable-multi-ice option, and move it right in
front of the code that checks whether gdbserver is supported.
Polish that too.
* configure: Regenerated.
* Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
@SUBDIRS@.
2003-01-03 23:19:28 +00:00
Mark Kettenis 91151a065a * configure.in: Remove --enable-netrom option.
* configure: Regenerated.
2003-01-03 14:45:47 +00:00
Mark Kettenis 93d331bafe * configure.in: Remove --with-cpu option.
subscripts.  Remove evil changequotes here.
* acconfig.h (TARGET_CPU_DEFAULT): Remove.
* config.in, configure: Regenerated.
2003-01-02 22:59:01 +00:00
Mark Kettenis 27e9bf901e * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
* configure.in: Cleanup section that sources GDB and BFD configure
subscripts.  Remove evil changequotes here.
* config.in, configure: Regenerated.
2003-01-02 22:49:31 +00:00
Mark Kettenis f5dbc56d4d * configure.in: Remove UI_OUT configuration code.
* ada-lang.c: Update assuming UI_OUT is always true.
* Makefile.in (UIOUT_CFLAGS): Remove.
* configure: Regenerated.
* TODO: Remove blurb about elimination of -DUI_OUT.
2003-01-02 20:29:15 +00:00
Mark Kettenis 627af7eaa2 * configure.in: Move code that provides the --enable-gdbcli,
--enable-gdbmi options right before the code that handles the
--enable-tui option.  Polish a bit.
* configure: Regenerated.
2003-01-02 20:12:29 +00:00
Mark Kettenis 06825bd145 * configure.in: Rewrite check for GNU regex and the
--without-included regex option, and move it into the "Checks for
library functions" section.  This makes us use the system regex
again by default on systems with version 2 of the GNU C library.
This was apparently broken.
* gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
* acconfig.h (USE_INCLUDED_REGEX): Remove.
* config.in, configure: Regenerated.
2003-01-02 19:35:31 +00:00
Mark Kettenis e1ea1d755e * configure.in: Fix typo in last change.
* config.in, configure: Regenerated.
2003-01-02 14:47:01 +00:00
Mark Kettenis 97bf5e38c3 * configure.in: Reorganize "Checks for library functions section"
a bit.  Remove check for `btowc' and `isascii' functions.
* configure: Regenerated.
2003-01-02 11:45:34 +00:00
Mark Kettenis 5ee754fce1 * acconfig.h (_MSE_INT_H): Remove.
* configure.in: Create "Checks for header files" section, and move
appropriate tests there.  Don't check for objlist.h, wchar.h,
wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
misdetection fix.  Also add "Checks for types", "Checks for
compiler characteristics" and "Checks for library functions"
sections.
* config.in, configure: Regenerated.
2003-01-02 11:14:33 +00:00
Mark Kettenis 8bb2c1226b * configure.in: Create "Checks for programs" section, and move
appropriate tests there.
2003-01-02 00:51:28 +00:00
Mark Kettenis 9a15616775 * configure.in: Create "Checks for libraries" section, and move
appropriate tests there.  Cleanup check for wctype in libw.  Use
AC_SEARCH_LIBS to see whether we need libsocket.
* configure: Regenerated.
2003-01-01 23:50:46 +00:00
Mark Kettenis 3250596b89 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
* config.in, configure: Regenerated.
2002-12-31 13:05:02 +00:00
Mark Kettenis 9608ab8b2a * gdb_dirent.h: Cleanup and update code to match the example in
the Autoconf manual.
* configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
* configure: Regenerated.
2002-12-31 12:41:00 +00:00
Joel Brobecker d92419e5e9 * configure.in: Check that the pthdebug library is recent enough
before enabling thread support on native AiX.
       * configure: Regenerate.

       * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
       from the list of object files as it is now appended by configure
       if thread support is enabled.
       (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
       if thread support is enabled.
2002-11-29 00:30:06 +00:00
Joel Brobecker c41b7eb1be * configure: Regenerate with the proper version of autoconf. 2002-11-28 04:41:33 +00:00
Martin Hunt b2a1bd4fcf 2002-11-26 Martin M. Hunt <hunt@redhat.com>
* Makefile.in: Remove Tix dependencies.
	* acinclude.m4: Ditto.
	* aclocal.m4: Ditto.
	* configure.in: Ditto.
	* configure: Regenerated.
2002-11-27 19:13:10 +00:00
Daniel Jacobowitz eb78484829 * acconfig.h (HAVE_PREAD64): Add.
* configure.in: Check for pread64.
	* config.in: Regenerated.
	* configure: Regenerated.
	* lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
	* linux-proc.c (linux_proc_xfer_memory): New function.
	* config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2002-11-26 01:23:46 +00:00
Elena Zannoni 3f47be5ca1 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
* findvar.c (read_var_value): Reenable TLS code.

2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
            Jim Blandy  <jimb@redhat.com>

	* gdb_thread_db.h (enum): Add TD_NOTALLOC.
	* target.c (update_current_target): Add
	to_get_thread_local_address.
	* target.h (to_get_thread_local_address): Export.
	(target_get_thread_local_address): Define.
	(target_get_thread_local_address_p): Define.
	* thread-db.c: Include solib-svr4.h.
	(td_thr_tls_get_addr_p): Define.
	(thread_db_load): Get a pointer to td_thr_tls_get_addr.
	(thread_db_get_thread_local_address): New function.
	(init_thread_db_ops): Initialize to_get_thread_local_address.
	* configure.in: Add test for TD_NOTALLOC in thread_db.h.
	* configure: Regenerate.
	* config.in: Regenerate.
2002-11-12 02:39:41 +00:00
Joel Brobecker 1045b512db * configure.in: Define NEW_PROC_API on Interix too.
* configure: Regenerate.
2002-10-22 20:21:56 +00:00
Joel Brobecker 8ec413174a * configure: Regenerate using the proper version of autoconf. 2002-10-22 03:54:20 +00:00
Kevin Buettner 234b45d446 Add support for distinct host and target character sets. 2002-09-20 00:24:01 +00:00
Keith Seitz ffc6a242e0 * configure.in: Move SUBDIRS to near top of the file so that
--enable options may add things to it.
        If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
        * configure: Regenerate.
2002-08-14 17:43:16 +00:00
Joel Brobecker f15f768ee5 Define HAVE_SYS_PROC_H if sys/proc.h exists
* configure.in: Add check for sys/proc.h
        * config.in: Regenerate.
        * configure: Regenerate.
2002-07-09 22:59:36 +00:00
Andrew Cagney a534e424ef * config.in, configure: Regenerate. 2002-07-09 14:17:39 +00:00
Tom Tromey 0fbb3da7b7 * gdb_locale.h: New file.
* Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
	(defs_h): Added gdb_locale.h.
	* configure, config.in: Rebuilt.
	* configure.in (PACKAGE): Define.
	* defs.h: Include gdb_locale.h.
	* main.c (captured_main): Call setlocale, bindtextdomain,
2002-06-21 23:48:41 +00:00
Jason Thorpe e27da16d59 From Christian Limpach <chris@Pin.LU>
* configure.in: Change sed expression which comments out
NATDEPFILES to also comment out continuation lines.
* configure: Regenerate.
2002-05-11 00:40:25 +00:00
Andrew Cagney 56157b4ad6 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
* aclocal.m4, configure: Re-generate.
Fix PR gdb/391.
2002-04-15 04:28:41 +00:00
Michael Snyder 943c9c25d6 2002-04-11 Michael Snyder <msnyder@redhat.com>
* configure.in: Autoconfiscate _SYSCALL32 define for solaris.
	* configure: Regenerate.
	* config.in: Regenerate.
	* acconfig.h: Add define for _SYSCALL32.
	* core-sol2.c: Remove #define _SYSCALL32.
	* solib-legacy.c: Remove #define _SYSCALL32.
2002-04-11 18:32:51 +00:00
Jim Blandy bce58c0993 * configure.in: Call AC_C_INLINE.
* configure: Regenerated.
2002-04-04 00:12:41 +00:00
Richard Henderson a4db0f0748 * configure.in: Detect declaration for canonicalize_file_name.
* utils.c (canonicalize_file_name): Declare, if needed.
        (gdb_realpath): Prefer realpath if available and usable.
        * config.in, configure: Rebuild.
2002-03-15 00:44:49 +00:00
Alexandre Oliva 438013dfea * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
* configure: Rebuilt.
2002-03-06 21:16:00 +00:00
Andrew Cagney 27aac7ff48 * configure.in: (AC_CHECK_FUNCS) Added test for
canonicalize_file_name Regenerated.
* config.in, configure: Regenerated.
* utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
defined use canonicalize_file_name.
2002-02-23 21:54:25 +00:00
Daniel Jacobowitz a85f51e7ac 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* configure.tgt: Configure gdbserver only for known working
        targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
        * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
        SUBDIRS if it is configured.  Update comment for ${nativefile}.
        * configure: Regenerated.
2002-02-14 05:31:46 +00:00
Andrew Cagney 7fd6052758 Remove assumption that there is a host. 2002-01-20 18:19:30 +00:00
Andrew Cagney 9299404eba Don't include <endian.h> 2002-01-05 22:06:38 +00:00
Jason Thorpe 7e89e3575d * acconfig.h (HAVE_PT_GETXMMREGS): New.
* config.in: Regenerate.
* configure.in: Update copyright years.
Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
* configure: Regenerate.
* i386bsd-nat.c: Update copyright years.
(fill_gregset): Use regcache_collect.
(fetch_inferior_registers): Only fetch integer registers
if requested to do so.  Add support for XMM registers
using PT_GETXMMREGS.
(store_inferior_registers): Only store integer registers
if requested to do so.  Add support for XMM registers
using PT_SETXMMREGS.
* i386nbsd-nat.c (fetch_inferior_registers): Remove.
(store_inferior_registers): Remove.
(fetch_core_registers): Use supply_gregset and i387_supply_fsave.
(fetch_elfcore_registers): New function.
(i386nbsd_elfcore_fns): New.
(_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
* config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
i386bsd-nat.o.
* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
* config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
* config/i386/nbsdelf.mt (TDEPFILES): Likewise.
* config/i386/tm-nbsd.h: Update copyright years.
(HAVE_SSE_REGS): Define.
(IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
(SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
(SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
(SIGCONTEXT_PC_OFFSET): Remove.
(FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2002-01-05 18:36:32 +00:00
Tom Tromey 58d370e0e6 * configure, config.in: Rebuilt.
* configure.in: Check for realpath.
	* defs.h (gdb_realpath): Declare.
	* symtab.h (partial_symtab): Added fullname field.
	* source.c (openp): Use gdb_realpath.
	(forget_cached_source_info): Clear full name of each partial
	symtab.
	* utils.c (gdb_realpath): New function.
	* symtab.c (lookup_symtab): Removed.
	(lookup_symtab_1): Renamed to lookup_symtab.
	(lookup_symtab): Look for real path.
	(lookup_partial_symtab): Likewise.
2001-12-21 22:32:37 +00:00
Martin Hunt 0cf3e697e4 2001-12-07 Martin M. Hunt <hunt@redhat.com>
* configure.in: Check for sys/filio.h
	* configure: Rebuild.
	* config.in: Add HAVE_SYS_FILIO_H
	* ser-tcp.c: Conditionally include sys/filio.h.
2001-12-07 17:57:05 +00:00
Jim Blandy c462020561 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
using `+=' as well as `='.
* configure: Regenerated.
2001-11-05 23:54:49 +00:00
Andrew Cagney 4536bbc6c7 Fix -W... flags check. 2001-10-31 01:57:04 +00:00
Keith Seitz b381d62d0a From Ian Roxborough <irox@redhat.com>
* configure.in: Use ITCL_LIB_FULL_PATH and
	ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
	for gdb.
	* configure: Regenerated.
2001-09-06 20:59:18 +00:00
Mark Kettenis 46711df821 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
gratuitious whitespace changes.
[!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
* top.c: Remove redundant logic to define HAVE_SIGSETMASK.
(sigsetmask) Don't define macro.
(stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
async_stop_sig from event-top.c.
[!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
defined.
* configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
order.  Add sigsetmask.
(AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
alphabetical order.
* config/xm-aix4.h, config/alpha/xm-alphalinux.h,
config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
(HAVE_SIGSETMASK): Remove.
* aclocal.m4, config.in, configure
2001-08-27 22:39:56 +00:00