System notice: In light of the Debian OpenSSL security issue we've regenerated the server keys. See this thread for instructions and the new key fingerprints.

Commit 55c519a6c3c28217e02daf9499a355a06873948e

Initial Python support.

Commit diff

gdb/Makefile.in

 
141141# Where is expat? This will be empty if expat was not available.
142142LIBEXPAT = @LIBEXPAT@
143143
144# Where is python? This will be empty if python was not available.
145LIBPYTHON = @LIBPYTHON2_4@ @LIBPYTHON2_5@
146
144147WARN_CFLAGS = @WARN_CFLAGS@
145148WERROR_CFLAGS = @WERROR_CFLAGS@
146149GDB_WARN_CFLAGS = $(WARN_CFLAGS)
257257SUBDIR_TUI_CFLAGS= \
258258 -DTUI=1
259259
260#
261# python sub directory definitons
262#
263SUBDIR_PYTHON_OBS = \
264 python.o
265SUBDIR_PYTHON_SRCS = \
266 python/python.c
267SUBDIR_PYTHON_DEPS =
268SUBDIR_PYTHON_LDFLAGS=
269SUBDIR_PYTHON_CFLAGS=
270
260271
261272# Opcodes currently live in one of two places. Either they are in the
262273# opcode library, typically ../opcodes, or they are in a header file
413413 -lintl -liberty $(LIBGNU)
414414CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \
415415 $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
416 $(LIBICONV) $(LIBEXPAT) \
416 $(LIBICONV) $(LIBEXPAT) $(LIBPYTHON) \
417417 $(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
418418CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
419419 $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU)
977977tui_win_h = $(srcdir)/tui/tui-win.h $(tui_data_h)
978978tui_winsource_h = $(srcdir)/tui/tui-winsource.h $(tui_data_h)
979979
980#
981# gdb/python/ headers
982#
983
984python_h = $(srcdir)/python/python.h $(defs_h) $(value_h)
985python_internal_h = $(srcdir)/python/python-internal.h
986
980987# gdb/features preparsed descriptions
981988features_headers = $(defs_h) $(gdbtypes_h) $(target_descriptions_h)
982989arm_with_iwmmxt_c = $(srcdir)/features/arm-with-iwmmxt.c $(features_headers)
30723072 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-logging.c
30733073cli-script.o: $(srcdir)/cli/cli-script.c $(defs_h) $(value_h) $(language_h) \
30743074 $(ui_out_h) $(gdb_string_h) $(exceptions_h) $(top_h) $(cli_cmds_h) \
3075 $(cli_decode_h) $(cli_script_h) $(gdb_assert_h) $(breakpoint_h)
3075 $(cli_decode_h) $(cli_script_h) $(gdb_assert_h) $(breakpoint_h) \
3076 $(python_h)
30763077 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-script.c
30773078cli-setshow.o: $(srcdir)/cli/cli-setshow.c $(defs_h) $(readline_tilde_h) \
30783079 $(value_h) $(gdb_string_h) $(ui_out_h) $(cli_decode_h) $(cli_cmds_h) \
33973397 $(gdb_curses_h) $(gdb_assert_h)
33983398 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-winsource.c
33993399
3400#
3401# gdb/python/ dependencies
3402#
3403# Need to explicitly specify the compile rule as make will do nothing
3404# or try to compile the object file into the sub-directory.
3405
3406# Flags needed to compile Python code (taken from python-config --cflags)
3407# FIXME: should we add -DNDEBUG? See CAUTION comment in Python.h.
3408PYTHON_CFLAGS=-fno-strict-aliasing
3409
3410python.o: $(srcdir)/python/python.c $(defs_h) $(python_h) \
3411 $(command_h) $(libiberty_h) $(cli_decode_h) $(charset_h) $(top_h) \
3412 $(exceptions_h) $(python_internal_h) $(version_h)
3413 $(CC) -c $(INTERNAL_CFLAGS) $(PYTHON_CFLAGS) $(srcdir)/python/python.c
3414
34003415### end of the gdb Makefile.in.
toggle raw diff

gdb/aclocal.m4

 
1# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
22
33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005 Free Software Foundation, Inc.
4# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55# This file is free software; the Free Software Foundation
66# gives unlimited permission to copy and/or distribute it,
77# with or without modifications, as long as this notice is preserved.
1111# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1212# PARTICULAR PURPOSE.
1313
14# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(AC_AUTOCONF_VERSION, [2.61],,
17[m4_warning([this file was generated for autoconf 2.61.
18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
1523#
1624# This file is free software; the Free Software Foundation
1725# gives unlimited permission to copy and/or distribute it,
2929# ----------------------------
3030# Automake X.Y traces this macro to ensure aclocal.m4 has been
3131# generated from the m4 files accompanying Automake X.Y.
32AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
32# (This private macro should not be called outside this file.)
33AC_DEFUN([AM_AUTOMAKE_VERSION],
34[am__api_version='1.10'
35dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36dnl require some minimum version. Point them to the right macro.
37m4_if([$1], [1.10.1], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39])
40
41# _AM_AUTOCONF_VERSION(VERSION)
42# -----------------------------
43# aclocal traces this macro to find the Autoconf version.
44# This is a private macro too. Using m4_define simplifies
45# the logic in aclocal, which can simply ignore this definition.
46m4_define([_AM_AUTOCONF_VERSION], [])
3347
3448# AM_SET_CURRENT_AUTOMAKE_VERSION
3549# -------------------------------
36# Call AM_AUTOMAKE_VERSION so it can be traced.
50# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
3751# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
3852AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
39 [AM_AUTOMAKE_VERSION([1.9.6])])
53[AM_AUTOMAKE_VERSION([1.10.1])dnl
54m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
4057
4158# AM_AUX_DIR_EXPAND -*- Autoconf -*-
4259
110110
111111# AM_CONDITIONAL -*- Autoconf -*-
112112
113# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
113# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
114114# Free Software Foundation, Inc.
115115#
116116# This file is free software; the Free Software Foundation
117117# gives unlimited permission to copy and/or distribute it,
118118# with or without modifications, as long as this notice is preserved.
119119
120# serial 7
120# serial 8
121121
122122# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123123# -------------------------------------
126126[AC_PREREQ(2.52)dnl
127127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129AC_SUBST([$1_TRUE])
130AC_SUBST([$1_FALSE])
129AC_SUBST([$1_TRUE])dnl
130AC_SUBST([$1_FALSE])dnl
131_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132_AM_SUBST_NOTMAKE([$1_FALSE])dnl
131133if $2; then
132134 $1_TRUE=
133135 $1_FALSE='#'
143143Usually this means the macro was only invoked conditionally.]])
144144fi])])
145145
146
147# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
146# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
148147# Free Software Foundation, Inc.
149148#
150149# This file is free software; the Free Software Foundation
151150# gives unlimited permission to copy and/or distribute it,
152151# with or without modifications, as long as this notice is preserved.
153152
154# serial 8
153# serial 9
155154
156155# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157156# written in clear, in which case automake, when reading aclocal.m4,
178178ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
179179 [$1], CXX, [depcc="$CXX" am_compiler_list=],
180180 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181 [$1], UPC, [depcc="$UPC" am_compiler_list=],
181182 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
182183 [depcc="$$1" am_compiler_list=])
183184
244244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
245245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
246246 >/dev/null 2>conftest.err &&
247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
247248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
248249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
249250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
297297 AMDEPBACKSLASH='\'
298298fi
299299AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
300AC_SUBST([AMDEPBACKSLASH])
300AC_SUBST([AMDEPBACKSLASH])dnl
301_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
301302])
302303
303304# Generate code to set up dependency tracking. -*- Autoconf -*-
323323 # some people rename them; so instead we look at the file content.
324324 # Grep'ing the first line is not enough: some people post-process
325325 # each Makefile.in and add a new line on top of each file to say so.
326 # So let's grep whole file.
327 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
326 # Grep'ing the whole file is not good either: AIX grep has a line
327 # limit of 2048, but all sed's we know have understand at least 4000.
328 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
328329 dirpart=`AS_DIRNAME("$mf")`
329330 else
330331 continue
372372
373373# Do all the work for Automake. -*- Autoconf -*-
374374
375# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
376# Free Software Foundation, Inc.
375# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
376# 2005, 2006, 2008 Free Software Foundation, Inc.
377377#
378378# This file is free software; the Free Software Foundation
379379# gives unlimited permission to copy and/or distribute it,
380380# with or without modifications, as long as this notice is preserved.
381381
382# serial 12
382# serial 13
383383
384384# This macro actually does too much. Some checks are only needed if
385385# your package does certain things. But this isn't really a big deal.
396396# arguments mandatory, and then we can depend on a new Autoconf
397397# release and drop the old call support.
398398AC_DEFUN([AM_INIT_AUTOMAKE],
399[AC_PREREQ([2.58])dnl
399[AC_PREREQ([2.60])dnl
400400dnl Autoconf wants to disallow AM_ names. We explicitly allow
401401dnl the ones we care about.
402402m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
403403AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
404404AC_REQUIRE([AC_PROG_INSTALL])dnl
405# test to see if srcdir already configured
406if test "`cd $srcdir && pwd`" != "`pwd`" &&
407 test -f $srcdir/config.status; then
408 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
405if test "`cd $srcdir && pwd`" != "`pwd`"; then
406 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
407 # is not polluted with repeated "-I."
408 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
409 # test to see if srcdir already configured
410 if test -f $srcdir/config.status; then
411 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
412 fi
409413fi
410414
411415# test whether we have cygpath
429429 AC_SUBST([PACKAGE], [$1])dnl
430430 AC_SUBST([VERSION], [$2])],
431431[_AM_SET_OPTIONS([$1])dnl
432dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
433m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
434 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
432435 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
433436 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
434437
467467 [_AM_DEPENDENCIES(CXX)],
468468 [define([AC_PROG_CXX],
469469 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
470AC_PROVIDE_IFELSE([AC_PROG_OBJC],
471 [_AM_DEPENDENCIES(OBJC)],
472 [define([AC_PROG_OBJC],
473 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
470474])
471475])
472476
484484# our stamp files there.
485485AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
486486[# Compute $1's index in $config_headers.
487_am_arg=$1
487488_am_stamp_count=1
488489for _am_header in $config_headers :; do
489490 case $_am_header in
490 $1 | $1:* )
491 $_am_arg | $_am_arg:* )
491492 break ;;
492493 * )
493494 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
494495 esac
495496done
496echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
497echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
497498
498499# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
499500#
507507# Define $install_sh.
508508AC_DEFUN([AM_PROG_INSTALL_SH],
509509[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
510install_sh=${install_sh-"$am_aux_dir/install-sh"}
510install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
511511AC_SUBST(install_sh)])
512512
513513# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
614614
615615# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
616616
617# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
617# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
618618# Free Software Foundation, Inc.
619619#
620620# This file is free software; the Free Software Foundation
621621# gives unlimited permission to copy and/or distribute it,
622622# with or without modifications, as long as this notice is preserved.
623623
624# serial 4
624# serial 5
625625
626626# AM_MISSING_PROG(NAME, PROGRAM)
627627# ------------------------------
637637# If it does, set am_missing_run to use it, otherwise, to nothing.
638638AC_DEFUN([AM_MISSING_HAS_RUN],
639639[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
640AC_REQUIRE_AUX_FILE([missing])dnl
640641test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
641642# Use eval to expand $SHELL
642643if eval "$MISSING --run true"; then
648648fi
649649])
650650
651# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
651# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
652652#
653653# This file is free software; the Free Software Foundation
654654# gives unlimited permission to copy and/or distribute it,
656656
657657# AM_PROG_MKDIR_P
658658# ---------------
659# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
660#
661# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
662# created by `make install' are always world readable, even if the
663# installer happens to have an overly restrictive umask (e.g. 077).
664# This was a mistake. There are at least two reasons why we must not
665# use `-m 0755':
666# - it causes special bits like SGID to be ignored,
667# - it may be too restrictive (some setups expect 775 directories).
668#
669# Do not use -m 0755 and let people choose whatever they expect by
670# setting umask.
671#
672# We cannot accept any implementation of `mkdir' that recognizes `-p'.
673# Some implementations (such as Solaris 8's) are not thread-safe: if a
674# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
675# concurrently, both version can detect that a/ is missing, but only
676# one can create it and the other will error out. Consequently we
677# restrict ourselves to GNU make (using the --version option ensures
678# this.)
659# Check for `mkdir -p'.
679660AC_DEFUN([AM_PROG_MKDIR_P],
680[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
681 # We used to keeping the `.' as first argument, in order to
682 # allow $(mkdir_p) to be used without argument. As in
683 # $(mkdir_p) $(somedir)
684 # where $(somedir) is conditionally defined. However this is wrong
685 # for two reasons:
686 # 1. if the package is installed by a user who cannot write `.'
687 # make install will fail,
688 # 2. the above comment should most certainly read
689 # $(mkdir_p) $(DESTDIR)$(somedir)
690 # so it does not work when $(somedir) is undefined and
691 # $(DESTDIR) is not.
692 # To support the latter case, we have to write
693 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
694 # so the `.' trick is pointless.
695 mkdir_p='mkdir -p --'
696else
697 # On NextStep and OpenStep, the `mkdir' command does not
698 # recognize any option. It will interpret all options as
699 # directories to create, and then abort because `.' already
700 # exists.
701 for d in ./-p ./--version;
702 do
703 test -d $d && rmdir $d
704 done
705 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
706 if test -f "$ac_aux_dir/mkinstalldirs"; then
707 mkdir_p='$(mkinstalldirs)'
708 else
709 mkdir_p='$(install_sh) -d'
710 fi
711fi
712AC_SUBST([mkdir_p])])
661[AC_PREREQ([2.60])dnl
662AC_REQUIRE([AC_PROG_MKDIR_P])dnl
663dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
664dnl while keeping a definition of mkdir_p for backward compatibility.
665dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
666dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
667dnl Makefile.ins that do not define MKDIR_P, so we do our own
668dnl adjustment using top_builddir (which is defined more often than
669dnl MKDIR_P).
670AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
671case $mkdir_p in
672 [[\\/$]]* | ?:[[\\/]]*) ;;
673 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
674esac
675])
713676
714677# Helper functions for option handling. -*- Autoconf -*-
715678
784784if test "$cross_compiling" != no; then
785785 AC_CHECK_TOOL([STRIP], [strip], :)
786786fi
787INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
787INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
788788AC_SUBST([INSTALL_STRIP_PROGRAM])])
789789
790# Copyright (C) 2006 Free Software Foundation, Inc.
791#
792# This file is free software; the Free Software Foundation
793# gives unlimited permission to copy and/or distribute it,
794# with or without modifications, as long as this notice is preserved.
795
796# _AM_SUBST_NOTMAKE(VARIABLE)
797# ---------------------------
798# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
799# This macro is traced by Automake.
800AC_DEFUN([_AM_SUBST_NOTMAKE])
801
790802# Check how to create a tarball. -*- Autoconf -*-
791803
792804# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
895895AC_SUBST([am__untar])
896896]) # _AM_PROG_TAR
897897
898m4_include([gnulib/m4/extensions.m4])
899m4_include([gnulib/m4/gnulib-common.m4])
900m4_include([gnulib/m4/gnulib-comp.m4])
901m4_include([gnulib/m4/include_next.m4])
902m4_include([gnulib/m4/longlong.m4])
903m4_include([gnulib/m4/memchr.m4])
904m4_include([gnulib/m4/memcmp.m4])
905m4_include([gnulib/m4/memmem.m4])
906m4_include([gnulib/m4/onceonly_2_57.m4])
907m4_include([gnulib/m4/stdint.m4])
908m4_include([gnulib/m4/string_h.m4])
909m4_include([gnulib/m4/wchar.m4])
910898m4_include([acinclude.m4])
toggle raw diff