aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1997-01-04 00:25:53 +0000
committerStu Grossman <grossman@cygnus>1997-01-04 00:25:53 +0000
commit6c310da826b31a1ce75469b0c402a75dafbf19b1 (patch)
treec166cf5f4500a649b7f8b71dbd4bd92a969ee771 /gdb/configure.in
parentb3ef389468d5b03b388b2c4ec3b047c7728961a3 (diff)
downloadgdb-6c310da826b31a1ce75469b0c402a75dafbf19b1.zip
gdb-6c310da826b31a1ce75469b0c402a75dafbf19b1.tar.gz
gdb-6c310da826b31a1ce75469b0c402a75dafbf19b1.tar.bz2
* Makefile.in configure configure.in: Remove ENABLE_CLIBS,
ENABLE_OBS, and THREAD_DB_OBS. These are consolidated into LIBS and CONFIG_OBS. * configure configure.in: Clean up test cases around thread support. start-sanitize-v850 * configure.tgt (v850-*-*): Include v850ice.o and v850.lib if host is Windows. end-sanitize-v850 * c-valprint.c ch-valprint.c cp-valprint.c eval.c expprint.c printcmd.c valops.c value.h values.c: Add bfd_section arg to value_at and value_at_lazy. * coffread.c dbxread.c elfread.c mdebugread.c minsyms.c symtab.h: Add bfd_section arg to prim_record_minimal_symbol_and_info. * corefile.c gdbcore.h printcmd.c valops.c: Use read_memory_section instead of read_memory. It takes a bfd_section arg. * coffread.c dbxread.c elfread.c gdb-stabs.h objfiles.h: Remove unnecessary cast for assignment of struct dbx_symfile_info. Struct objfile now uses a real pointer instead of PTR for this element. * dbxread.c (dbx_symfile_init): Stash bfd section pointers for text, data and bss into dbx_symfile_info. * exec.c (xfer_memory): Handle transfers for user-specified sections. * findvar.c (read_var_value locate_var_value): Copy bfd section from the symbol to the value. * gdb-stabs.h: Add section pointers for text, data and bss sections. * maint.c (translate address command): Add test code for overlay address translation. * printcmd.c (do_examine do_one_display): Now takes a bfd section arg. * (print_formatted x_command): Record current section along with current address for repeated commands. * sparc-nat.c (fetch_inferior_registers): Change target_xfer_memory to target_{read write}_memory to allow changes to target_xfer_memory interface for section info. * symmisc.c (dump_msymbols print_symbol): Print section assocaited with symbol. * symtab.c (fixup_symbol_section): New routine to add section info to symbols returned by lookup_symbol. * symtab.h (struct general_symbol_info): Add bfd section to symbols. * target.c target.h (target_xfer_memory): Add bfd section to args. * (target_read_memory_section): New routine to read data from a specific section. * (target_memory_bfd_section): New global variable to pass bfd section in to targets. * valarith.c (value_add value_addr value_array): Preserve bfd section when computing new value. * value.h (struct value): Add bfd section to values. * values.c (allocate_value value_copy): Initialize/preserve bfd section. * (unpack_double): Clean up _MSC_VER conditionals to remove duplicate code. start-sanitize-v850 * v850ice.c: New module to support communication with NEC's PC-based ICE. * config/v850/tm-v850.h (REGISTER_NAMES): Replace sp, gp, fp, and ep names with rxx names. sp and fp are renamed via a different mechanism. end-sanitize-v850
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in45
1 files changed, 23 insertions, 22 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 7c65340..7089267 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -47,6 +47,10 @@ AC_C_CONST
AC_CHECK_FUNCS(setpgid sbrk select poll)
+dnl List of object files added by configuire.
+
+CONFIG_OBS=
+
# If we are configured native on Linux, work around problems with sys/procfs.h
if test "${target}" = "${host}"; then
case "${host}" in
@@ -154,35 +158,34 @@ 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
- AC_MSG_CHECKING(for Solaris thread debugging library)
- if test -f /usr/lib/libthread_db.so.1 ; then
- AC_MSG_RESULT(yes)
- THREAD_DB_OBS=sol-thread.o
- AC_DEFINE(HAVE_THREAD_DB_LIB)
- CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
- else
- AC_MSG_RESULT(no)
- fi
case ${host_os} in
hpux*)
AC_MSG_CHECKING(for HPUX/OSF thread support)
if test -f /usr/include/dce/cma_config.h ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
- THREAD_DB_OBS=hpux-thread.o
+ CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
+ 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"
+ CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
else
AC_MSG_RESULT(no)
fi
;;
esac
- AC_SUBST(THREAD_DB_OBS)
AC_SUBST(CONFIG_LDFLAGS)
fi
dnl Handle optional features that can be enabled.
ENABLE_CFLAGS=
-ENABLE_CLIBS=
-ENABLE_OBS=
AC_ARG_ENABLE(netrom,
[ --enable-netrom ],
@@ -193,7 +196,7 @@ no) enable_netrom=no ;;
esac])
if test "${enable_netrom}" = "yes"; then
- ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
+ CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
fi
# start-sanitize-gm
@@ -202,7 +205,7 @@ ENABLE_GM=
AC_ARG_ENABLE(gm,
[ --enable-gm ],
[case "${enableval}" in
-yes) ENABLE_OBS="${ENABLE_OBS} gmagic.o"
+yes) CONFIG_OBS="${CONFIG_OBS} gmagic.o"
ENABLE_CFLAGS=-DGENERAL_MAGIC
;;
no) ;;
@@ -265,14 +268,12 @@ if test "${enable_gdbtk}" = "yes"; then
CY_AC_PATH_TCLH
CY_AC_PATH_TKH
- # Include some libraries that Tcl and Tk want.
- LIBS="$LIBS $TK_LIBS"
-
ENABLE_GDBTK=1
+ # Include some libraries that Tcl and Tk want.
TCL_LIBS='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
- ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS}"
- ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
+ LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}"
+ CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
fi
fi
fi
@@ -284,8 +285,8 @@ AC_SUBST(X_LIBS)
# end-sanitize-gdbtk
AC_SUBST(ENABLE_CFLAGS)
-AC_SUBST(ENABLE_CLIBS)
-AC_SUBST(ENABLE_OBS)
+
+AC_SUBST(CONFIG_OBS)
# Begin stuff to support --enable-shared
AC_ARG_ENABLE(shared,