2003-01-04 00:43:24 +00:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2015-01-01 09:32:14 +00:00
|
|
|
# Copyright 2002-2015 Free Software Foundation, Inc.
|
2003-01-04 00:43:24 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-08-23 17:58:44 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2003-01-04 00:43:24 +00:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-08-23 17:58:44 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2003-01-04 00:43:24 +00:00
|
|
|
|
Index: ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: doc/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: gdbserver/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
Index: testsuite/ChangeLog
2005-01-07 Andrew Cagney <cagney@gnu.org>
* configure.ac: Rename configure.in, require autoconf 2.59.
* configure: Re-generate.
* gdb.stabs/configure.ac: Rename configure.in, require autoconf 2.59.
* gdb.stabs/configure: Re-generate.
* gdb.hp/configure.ac: Rename configure.in, require autoconf 2.59.
* gdb.hp/configure: Re-generate.
* gdb.hp/gdb.objdbg/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.objdbg/configure: Re-generate.
* gdb.hp/gdb.defects/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.defects/configure: Re-generate.
* gdb.hp/gdb.compat/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.compat/configure: Re-generate.
* gdb.hp/gdb.base-hp/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.base-hp/configure: Re-generate.
* gdb.hp/gdb.aCC/configure.ac: Rename configure.in, require
autoconf 2.59.
* gdb.hp/gdb.aCC/configure: Re-generate.
2005-01-07 21:53:26 +00:00
|
|
|
AC_PREREQ(2.59)
|
1999-04-16 01:35:26 +00:00
|
|
|
AC_INIT(gdb.base)
|
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2006-06-21 13:57:21 +00:00
|
|
|
ACX_NONCANONICAL_TARGET
|
|
|
|
|
2009-06-29 16:41:45 +00:00
|
|
|
# Check for the 'make' the user wants to use.
|
|
|
|
AC_CHECK_PROGS(MAKE, make)
|
|
|
|
MAKE_IS_GNU=
|
|
|
|
case "`$MAKE --version 2>&1 | sed 1q`" in
|
|
|
|
*GNU*)
|
|
|
|
MAKE_IS_GNU=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AM_CONDITIONAL(GMAKE, test "$MAKE_IS_GNU" = yes)
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
2014-12-05 11:56:19 +00:00
|
|
|
# Enable gdbtk.
|
|
|
|
AC_ARG_ENABLE(gdbtk,
|
|
|
|
[ --enable-gtk enable gdbtk graphical user interface (GUI)],,
|
|
|
|
[if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
|
|
|
|
enable_gdbtk=yes
|
|
|
|
else
|
|
|
|
enable_gdbtk=no
|
|
|
|
fi])
|
|
|
|
# We unconditionally disable gdbtk tests on selected platforms.
|
|
|
|
case $host_os in
|
|
|
|
go32* | windows*)
|
|
|
|
enable_gdbtk=no ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Add gdbtk tests when appropriate.
|
|
|
|
if test $enable_gdbtk = yes; then
|
|
|
|
AC_CONFIG_SUBDIRS(gdb.gdbtk)
|
|
|
|
fi
|
|
|
|
|
2003-01-04 00:43:24 +00:00
|
|
|
# Enable shared libraries.
|
1999-04-16 01:35:26 +00:00
|
|
|
AC_ARG_ENABLE(shared,
|
2003-01-04 00:43:24 +00:00
|
|
|
[ --enable-shared build shared libraries [deault=yes]],,
|
|
|
|
enable_shared=yes)
|
|
|
|
|
|
|
|
# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
|
|
|
|
# such that we can find the shared libraries in the build tree.
|
|
|
|
if test $enable_shared = no; then
|
|
|
|
# The variable `RPATH_ENVVAR' itself is not likely to be used on any
|
|
|
|
# platform.
|
|
|
|
RPATH_ENVVAR=RPATH_ENVVAR
|
|
|
|
else
|
|
|
|
# The variable `LD_LIBRARY_PATH' is used on most platforms.
|
|
|
|
RPATH_ENVVAR=LD_LIBRARY_PATH
|
|
|
|
# The following exceptions are taken from Libtool 1.4.3.
|
|
|
|
case $host_os in
|
|
|
|
aix*)
|
|
|
|
if test $host_cpu != ia64; then
|
|
|
|
RPATH_ENVVAR=LIBPATH
|
|
|
|
fi ;;
|
|
|
|
darwin* | rhapsody*)
|
|
|
|
RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
|
|
|
|
hpux*)
|
|
|
|
RPATH_ENVVAR=SHLIB_PATH ;;
|
1999-04-16 01:35:26 +00:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_SUBST(RPATH_ENVVAR)
|
2000-02-07 00:19:45 +00:00
|
|
|
|
* configure.in: Call AC_CONFIG_HEADER. Don't call
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
aforementioned directories in the AC_OUPUT call.
* config.hin: New file.
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
gdb.threads/killed.exp, gdb.threads/print-threads.exp,
gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
pass -I$objdir instead of -I$objdir/$subdir in compilation.
* gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
gdb.threads/configure.in, gdb.threads/configure,
gdb.threads/config.in, gdb.trace/configure.in,
gdb.trace/configure: Removed.
2003-01-04 15:37:40 +00:00
|
|
|
AC_CHECK_HEADERS(pthread.h)
|
|
|
|
|
2000-11-17 16:37:48 +00:00
|
|
|
AC_EXEEXT
|
|
|
|
|
2014-08-20 17:55:54 +00:00
|
|
|
if test "${build}" = "${host}" -a "${host}" = "${target}"; then
|
|
|
|
case "${host}" in
|
|
|
|
*gnu*)
|
|
|
|
EXTRA_RULES=read1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_SUBST(EXTRA_RULES)
|
|
|
|
|
2015-02-17 15:41:16 +00:00
|
|
|
# Transform the name of some programs and generate the lib/pdtrace
|
|
|
|
# test tool.
|
|
|
|
AC_ARG_PROGRAM
|
2015-02-18 12:52:53 +00:00
|
|
|
GDB_AC_TRANSFORM(strip, STRIP_TRANSFORM_NAME)
|
|
|
|
GDB_AC_TRANSFORM(readelf, READELF_TRANSFORM_NAME)
|
|
|
|
GDB_AC_TRANSFORM(as, GAS_TRANSFORM_NAME)
|
|
|
|
GDB_AC_TRANSFORM(nm, NM_TRANSFORM_NAME)
|
2015-02-17 15:41:16 +00:00
|
|
|
AC_CONFIG_FILES([lib/pdtrace], [chmod +x lib/pdtrace])
|
|
|
|
|
2004-07-20 23:11:21 +00:00
|
|
|
AC_OUTPUT([Makefile \
|
2005-02-03 03:58:53 +00:00
|
|
|
gdb.ada/Makefile \
|
2013-03-11 08:59:00 +00:00
|
|
|
gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile \
|
the "compile" command
This final patch adds the new "compile" command and subcommands, and
all the machinery needed to make it work.
A shared library supplied by gcc is used for all communications with
gcc. Types and most aspects of symbols are provided directly by gdb
to the compiler using this library.
gdb provides some information about the user's code using plain text.
Macros are emitted this way, and DWARF location expressions (and
bounds for VLA) are compiled to C code.
This hybrid approach was taken because, on the one hand, it is better
to provide global declarations and such on demand; but on the other
hand, for local variables, translating DWARF location expressions to C
was much simpler than exporting a full compiler API to gdb -- the same
result, only easier to implement, understand, and debug.
In the ordinary mode, the user's expression is wrapped in a dummy
function. After compilation, gdb inserts the resulting object code
into the inferior, then calls this function.
Access to local variables is provided by noting which registers are
used by location expressions, and passing a structure of register
values into the function. Writes to registers are supported by
copying out these values after the function returns.
This approach was taken so that we could eventually implement other
more interesting features based on this same infrastructure; for
example, we're planning to investigate inferior-side breakpoint
conditions.
gdb/ChangeLog
2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* NEWS: Update.
* symtab.h (struct symbol_computed_ops) <generate_c_location>: New
field.
* p-lang.c (pascal_language_defn): Update.
* opencl-lang.c (opencl_language_defn): Update.
* objc-lang.c (objc_language_defn): Update.
* m2-lang.c (m2_language_defn): Update.
* language.h (struct language_defn) <la_get_compile_instance,
la_compute_program>: New fields.
* language.c (unknown_language_defn, auto_language_defn)
(local_language_defn): Update.
* jv-lang.c (java_language_defn): Update.
* go-lang.c (go_language_defn): Update.
* f-lang.c (f_language_defn): Update.
* dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
* dwarf2loc.c (dwarf2_compile_property_to_c)
(locexpr_generate_c_location, loclist_generate_c_location): New
functions.
(dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
* defs.h (enum compile_i_scope_types): New.
(enum command_control_type) <compile_control>: New constant.
(struct command_line) <control_u>: New field.
* d-lang.c (d_language_defn): Update.
* compile/compile.c: New file.
* compile/compile-c-support.c: New file.
* compile/compile-c-symbols.c: New file.
* compile/compile-c-types.c: New file.
* compile/compile.h: New file.
* compile/compile-internal.h: New file.
* compile/compile-loc2c.c: New file.
* compile/compile-object-load.c: New file.
* compile/compile-object-load.h: New file.
* compile/compile-object-run.c: New file.
* compile/compile-object-run.h: New file.
* cli/cli-script.c (multi_line_command_p, print_command_lines)
(execute_control_command, process_next_line)
(recurse_read_control_structure): Handle compile_control.
* c-lang.h (c_get_compile_context, c_compute_program): Declare.
* c-lang.c (c_language_defn, cplus_language_defn)
(asm_language_defn, minimal_language_defn): Update.
* ada-lang.c (ada_language_defn): Update.
* Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
New variables.
(SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
(HFILES_NO_SRCDIR): Add compile.h.
(COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
(INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
(compile.o, compile-c-types.o, compile-c-symbols.o)
(compile-object-load.o, compile-object-run.o, compile-loc2c.o)
(compile-c-support.o): New targets.
gdb/doc/ChangeLog
2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.texinfo (Altering): Update.
(Compiling and Injecting Code): New node.
gdb/testsuite/ChangeLog
2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* configure.ac: Add gdb.compile/.
* configure: Regenerate.
* gdb.compile/Makefile.in: New file.
* gdb.compile/compile-ops.exp: New file.
* gdb.compile/compile-ops.c: New file.
* gdb.compile/compile-tls.c: New file.
* gdb.compile/compile-tls.exp: New file.
* gdb.compile/compile-constvar.S: New file.
* gdb.compile/compile-constvar.c: New file.
* gdb.compile/compile-mod.c: New file.
* gdb.compile/compile-nodebug.c: New file.
* gdb.compile/compile-setjmp-mod.c: New file.
* gdb.compile/compile-setjmp.c: New file.
* gdb.compile/compile-setjmp.exp: New file.
* gdb.compile/compile-shlib.c: New file.
* gdb.compile/compile.c: New file.
* gdb.compile/compile.exp: New file.
* lib/gdb.exp (skip_compile_feature_tests): New proc.
2014-05-14 20:35:45 +00:00
|
|
|
gdb.cell/Makefile gdb.compile/Makefile gdb.cp/Makefile gdb.disasm/Makefile \
|
|
|
|
gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile \
|
|
|
|
gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile \
|
2015-03-20 16:15:15 +00:00
|
|
|
gdb.guile/Makefile gdb.linespec/Makefile \
|
2010-02-19 17:13:21 +00:00
|
|
|
gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \
|
2010-11-05 14:31:30 +00:00
|
|
|
gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
|
2013-09-25 04:41:45 +00:00
|
|
|
gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \
|
2007-10-25 20:30:26 +00:00
|
|
|
gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])
|