2007-01-09 17:59:20 +00:00
|
|
|
# Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
2010-01-01 07:32:07 +00:00
|
|
|
# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
2006-01-24 22:09:28 +00:00
|
|
|
# Free Software Foundation, Inc.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# This file is part of GDB.
|
|
|
|
|
|
|
|
# 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
|
2009-03-18 08:51:11 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
1999-04-16 01:35:26 +00:00
|
|
|
# (at your option) any later version.
|
2004-02-01 22:35:08 +00:00
|
|
|
#
|
1999-04-16 01:35:26 +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.
|
2004-02-01 22:35:08 +00:00
|
|
|
#
|
1999-04-16 01:35:26 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2009-03-18 08:51:11 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
host_alias = @host_alias@
|
|
|
|
target_alias = @target_alias@
|
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
tooldir = $(libdir)/$(target_alias)
|
|
|
|
|
|
|
|
datadir = @datadir@
|
2004-07-29 Andrew Cagney <cagney@gnu.org>
Fix PR i18n/761.
* Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
(.PHONY): Add all-po install-po, uninstall-po, clean-po,
$(PACKAGE).pot and update-po.
(all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
(po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
(update-po): New rules.
(localedir): Define using autoconf.
(diststuff): Add $(PACKAGE).pot and $(CATALOGS)
(GDB_CFLAGS): Define LOCALEDIR using $(localedir).
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
* configure.in: Generate CATALOGS and LINGUAS from contents of
src/gdb/po/ directory. Set @localedir@ in Makefile.in.
* configure: Re-generate.
* po/gdbtext: New file
2004-07-30 14:30:08 +00:00
|
|
|
localedir = @localedir@
|
1999-04-16 01:35:26 +00:00
|
|
|
mandir = @mandir@
|
|
|
|
man1dir = $(mandir)/man1
|
|
|
|
man2dir = $(mandir)/man2
|
|
|
|
man3dir = $(mandir)/man3
|
|
|
|
man4dir = $(mandir)/man4
|
|
|
|
man5dir = $(mandir)/man5
|
|
|
|
man6dir = $(mandir)/man6
|
|
|
|
man7dir = $(mandir)/man7
|
|
|
|
man8dir = $(mandir)/man8
|
|
|
|
man9dir = $(mandir)/man9
|
|
|
|
infodir = @infodir@
|
gdb:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
* configure: Regenerate.
* Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
configure substitutions.
(FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
gdb/doc:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Set pdfdir and htmldir from configure
substitutions.
* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
* configure: Regenerate.
readline:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add html target. Add dummy install-html and
install-pdf targets.
sim:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add dummy install-pdf, html, and
install-html targets.
2009-04-17 17:44:05 +00:00
|
|
|
datarootdir = @datarootdir@
|
|
|
|
docdir = @docdir@
|
|
|
|
htmldir = @htmldir@
|
|
|
|
pdfdir = @pdfdir@
|
1999-04-16 01:35:26 +00:00
|
|
|
includedir = @includedir@
|
|
|
|
|
2006-05-31 15:14:46 +00:00
|
|
|
# This can be referenced by `LIBINTL' as computed by
|
|
|
|
# ZW_GNU_GETTEXT_SISTER_DIR.
|
1999-04-16 01:35:26 +00:00
|
|
|
top_builddir = .
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
EXEEXT = @EXEEXT@
|
|
|
|
|
1999-04-26 18:34:20 +00:00
|
|
|
AWK = @AWK@
|
2000-03-03 05:44:39 +00:00
|
|
|
LN_S = @LN_S@
|
1999-04-26 18:34:20 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
2002-11-09 03:14:11 +00:00
|
|
|
DESTDIR =
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
AR = @AR@
|
|
|
|
AR_FLAGS = qv
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
DLLTOOL = @DLLTOOL@
|
|
|
|
WINDRES = @WINDRES@
|
2000-02-26 13:57:35 +00:00
|
|
|
MIG = @MIG@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2004-07-29 Andrew Cagney <cagney@gnu.org>
Fix PR i18n/761.
* Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
(.PHONY): Add all-po install-po, uninstall-po, clean-po,
$(PACKAGE).pot and update-po.
(all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
(po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
(update-po): New rules.
(localedir): Define using autoconf.
(diststuff): Add $(PACKAGE).pot and $(CATALOGS)
(GDB_CFLAGS): Define LOCALEDIR using $(localedir).
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
* configure.in: Generate CATALOGS and LINGUAS from contents of
src/gdb/po/ directory. Set @localedir@ in Makefile.in.
* configure: Re-generate.
* po/gdbtext: New file
2004-07-30 14:30:08 +00:00
|
|
|
XGETTEXT = @XGETTEXT@
|
|
|
|
GMSGFMT = @GMSGFMT@
|
|
|
|
MSGMERGE = msgmerge
|
|
|
|
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
CATALOGS = @CATALOGS@
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# If you are compiling with GCC, make sure that either 1) You have the
|
|
|
|
# fixed include files where GCC can reach them, or 2) You use the
|
|
|
|
# -traditional flag. Otherwise the ioctl calls in inflow.c
|
|
|
|
# will be incorrectly compiled. The "fixincludes" script in the gcc
|
|
|
|
# distribution will fix your include files up.
|
|
|
|
CC=@CC@
|
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
# Dependency tracking information.
|
|
|
|
DEPMODE = @CCDEPMODE@
|
|
|
|
DEPDIR = @DEPDIR@
|
|
|
|
depcomp = $(SHELL) $(srcdir)/../depcomp
|
|
|
|
|
|
|
|
# Note that these are overridden by GNU make-specific code below if
|
|
|
|
# GNU make is used. The overrides implement dependency tracking.
|
|
|
|
COMPILE.pre = $(CC)
|
|
|
|
COMPILE.post = -c -o $@
|
|
|
|
COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
|
|
|
|
POSTCOMPILE = @true
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# Directory containing source files.
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
YACC=@YACC@
|
|
|
|
|
2004-02-01 22:35:08 +00:00
|
|
|
# This is used to rebuild ada-lex.c from ada-lex.l. If the program is
|
2002-08-19 10:52:20 +00:00
|
|
|
# not defined, but ada-lex.c is present, compilation will continue,
|
|
|
|
# possibly with a warning.
|
|
|
|
FLEX = flex
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
YLWRAP = $(srcdir)/../ylwrap
|
|
|
|
|
|
|
|
# where to find makeinfo, preferably one designed for texinfo-2
|
|
|
|
MAKEINFO=makeinfo
|
|
|
|
|
2009-04-18 17:11:02 +00:00
|
|
|
MAKEHTML = $(MAKEINFO) --html
|
|
|
|
MAKEHTMLFLAGS =
|
1999-06-28 16:06:02 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# Set this up with gcc if you have gnu ld and the loader will print out
|
|
|
|
# line numbers for undefined references.
|
|
|
|
#CC_LD=gcc -static
|
|
|
|
CC_LD=$(CC)
|
|
|
|
|
|
|
|
# Where is our "include" directory? Typically $(srcdir)/../include.
|
|
|
|
# This is essentially the header file directory for the library
|
|
|
|
# routines in libiberty.
|
|
|
|
INCLUDE_DIR = $(srcdir)/../include
|
|
|
|
INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
|
|
|
|
|
|
|
|
# Where is the "-liberty" library? Typically in ../libiberty.
|
|
|
|
LIBIBERTY = ../libiberty/libiberty.a
|
|
|
|
|
|
|
|
# Where is the BFD library? Typically in ../bfd.
|
|
|
|
BFD_DIR = ../bfd
|
|
|
|
BFD = $(BFD_DIR)/libbfd.a
|
|
|
|
BFD_SRC = $(srcdir)/$(BFD_DIR)
|
|
|
|
BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
|
|
|
|
|
2007-10-25 17:52:32 +00:00
|
|
|
# Where is the decnumber library? Typically in ../libdecnumber.
|
|
|
|
LIBDECNUMBER_DIR = ../libdecnumber
|
|
|
|
LIBDECNUMBER = $(LIBDECNUMBER_DIR)/libdecnumber.a
|
|
|
|
LIBDECNUMBER_SRC = $(srcdir)/$(LIBDECNUMBER_DIR)
|
|
|
|
LIBDECNUMBER_CFLAGS = -I$(LIBDECNUMBER_DIR) -I$(LIBDECNUMBER_SRC)
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# Where is the READLINE library? Typically in ../readline.
|
|
|
|
READLINE_DIR = ../readline
|
|
|
|
READLINE_SRC = $(srcdir)/$(READLINE_DIR)
|
2007-09-03 19:00:16 +00:00
|
|
|
READLINE = @READLINE@
|
|
|
|
READLINE_DEPS = @READLINE_DEPS@
|
|
|
|
READLINE_CFLAGS = @READLINE_CFLAGS@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2006-08-08 20:26:23 +00:00
|
|
|
# Where is expat? This will be empty if expat was not available.
|
|
|
|
LIBEXPAT = @LIBEXPAT@
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
1999-08-31 01:14:27 +00:00
|
|
|
WERROR_CFLAGS = @WERROR_CFLAGS@
|
1999-09-09 00:02:17 +00:00
|
|
|
GDB_WARN_CFLAGS = $(WARN_CFLAGS)
|
|
|
|
GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2010-09-02 13:58:06 +00:00
|
|
|
GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " \
|
|
|
|
| sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
|
2006-02-02 02:26:48 +00:00
|
|
|
|
2010-05-28 18:50:35 +00:00
|
|
|
RDYNAMIC = @RDYNAMIC@
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# Where is the INTL library? Typically in ../intl.
|
2006-05-31 15:14:46 +00:00
|
|
|
INTL = @LIBINTL@
|
|
|
|
INTL_DEPS = @LIBINTL_DEP@
|
|
|
|
INTL_CFLAGS = @INCINTL@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2003-01-13 18:00:16 +00:00
|
|
|
# Did the user give us a --with-sysroot option?
|
|
|
|
TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
|
|
|
|
TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
|
|
|
|
|
2009-09-15 03:30:08 +00:00
|
|
|
# Did the user give us a --with-gdb-datadir option?
|
2009-09-16 21:55:57 +00:00
|
|
|
GDB_DATADIR = @GDB_DATADIR@
|
2009-09-15 03:30:08 +00:00
|
|
|
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
# Helper code from gnulib.
|
|
|
|
LIBGNU = gnulib/libgnu.a
|
|
|
|
INCGNU = -I$(srcdir)/gnulib -Ignulib
|
|
|
|
|
2008-04-14 19:47:29 +00:00
|
|
|
# Generated headers in the gnulib directory. These must be listed
|
|
|
|
# so that they are generated before other files are compiled.
|
* Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
(gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
all dependencies on $(gdb_stdint_h).
(distclean): Do not delete gdb_stdint.h.
* acinclude.m4: Do not use stdint.m4.
* configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
uintptr_t, and gdb_stdint.h.
* defs.h: Include <stdint.h>.
* gdb_thread_db.h: Assume stdint.h is already included.
* breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
include gdb_stdint.h.
* configure, config.in: Regenerate.
2008-06-26 15:51:28 +00:00
|
|
|
GNULIB_H = gnulib/string.h @GNULIB_STDINT_H@
|
2008-04-14 19:47:29 +00:00
|
|
|
|
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-12-01 18:01:38 +00:00
|
|
|
#
|
|
|
|
# CLI sub directory definitons
|
|
|
|
#
|
|
|
|
SUBDIR_CLI_OBS = \
|
2002-03-29 01:22:41 +00:00
|
|
|
cli-dump.o \
|
2008-10-28 20:50:18 +00:00
|
|
|
cli-decode.o cli-script.o cli-cmds.o cli-setshow.o \
|
2003-06-28 16:19:07 +00:00
|
|
|
cli-logging.o \
|
2003-02-05 Jim Ingham <jingham@apple.com>
Keith Seitz <keiths@redhat.com>
Elena Zannoni <ezannoni@redhat.com>
Andrew Cagney <ac131313@redhat.com>
* Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
(SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
(SUBDIR_MI_OBS): Add "mi-interp.o".
(SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
(SFILES): Add "interps.c".
(COMMON_OBS): Add "interps.o".
(interps_h, mi_main_h): Define.
(interps.o, cli-interp.o, mi-interp.o): Add dependencies.
(mi-main.o, main.o, event-top.o): Update dependencies.
* cli/cli-interp.c: New file.
* interps.h, interps.c: New files.
* top.c: (gdb_init): Don't install the default interpreter, handed
by captured_main.
* main.c: Include "interps.h".
(interpreter_p): Note that it should malloc'ed.
(captured_command_loop): Call current_interp_command_loop.
(captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
xfree and xstrdup when updating interpreter_p. Install the
default interpreter. Add hack to stop mi1's copyright notice
being encoded.
* event-top.h (gdb_setup_readline): Declare.
(gdb_disable_readline): Declare.
* event-top.c: Include "interps.h".
(display_gdb_prompt): Call current_interp_display_prompt_p.
(gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
gdb_stdlog, and gdb_stdtarg.
(_initialize_event_loop): Don't call gdb_setup_readline.
* cli-out.c (cli_out_set_stream): New function.
* cli-out.h (cli_out_set_stream): Declare.
2003-02-06 01:19:12 +00:00
|
|
|
cli-interp.o
|
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-12-01 18:01:38 +00:00
|
|
|
SUBDIR_CLI_SRCS = \
|
2002-03-29 01:22:41 +00:00
|
|
|
cli/cli-dump.c \
|
2001-01-04 15:50:48 +00:00
|
|
|
cli/cli-decode.c cli/cli-script.c cli/cli-cmds.c cli/cli-setshow.c \
|
2003-06-28 16:19:07 +00:00
|
|
|
cli/cli-logging.c \
|
2008-10-28 20:50:18 +00:00
|
|
|
cli/cli-interp.c
|
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-12-01 18:01:38 +00:00
|
|
|
SUBDIR_CLI_DEPS =
|
|
|
|
SUBDIR_CLI_LDFLAGS=
|
|
|
|
SUBDIR_CLI_CFLAGS=
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
#
|
|
|
|
# MI sub directory definitons
|
|
|
|
#
|
|
|
|
SUBDIR_MI_OBS = \
|
|
|
|
mi-out.o mi-console.o \
|
2002-12-13 17:55:49 +00:00
|
|
|
mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o \
|
* remote.c (remote_cmdlist): New variable.
(PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
(PACKET_vFile_close, PACKET_vFile_unlink): New constants.
(remote_buffer_add_string, remote_buffer_add_bytes)
(remote_buffer_add_int, remote_hostio_parse_result)
(remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
(remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
(remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
(remote_hostio_close_cleanup, remote_file_put, remote_file_get)
(remote_file_delete, remote_put_command, remote_get_command)
(remote_delete_command, remote_command): New functions.
(_initialize_remote): Register new packets and commands.
* Makefile.in (gdb_fileio_h): New variable.
(remote.o): Update.
(SUBDIR_MI_OBS): Add mi-cmd-target.o.
(SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
(mi-cmd-target.o): New rule.
* mi/mi-cmd-target.c: New file.
* mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
and target-file-put.
* mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
(mi_cmd_target_file_delete): Declare.
* remote.h (remote_file_put, remote_file_get, remote_file_delete):
Declare.
* NEWS: Describe new file transfer support.
* gdb.texinfo (Debugging Programs with Multiple Processes): Correct
formatting.
(Remote Debugging): Add File Transfer section.
(Remote Configuration): Document Host I/O packets.
(GDB/MI): Add GDB/MI File Transfer Commands section.
(Remote Protocol): Add Host I/O Packets section.
(Packets): Add vFile.
* Makefile.in (OBS): Add hostio.o.
(hostio.o): New rule.
* server.h (handle_vFile): Declare.
* hostio.c: New file.
* server.c (handle_v_requests): Take packet_len and new_packet_len
for binary packets. Call handle_vFile.
(main): Update call to handle_v_requests.
* gdb.server/file-transfer.exp, gdb.server/transfer.txt,
gdb.mi/mi-file-transfer.exp: New.
2007-11-30 21:50:19 +00:00
|
|
|
mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o \
|
2003-02-05 Jim Ingham <jingham@apple.com>
Keith Seitz <keiths@redhat.com>
Elena Zannoni <ezannoni@redhat.com>
Andrew Cagney <ac131313@redhat.com>
* Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
(SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
(SUBDIR_MI_OBS): Add "mi-interp.o".
(SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
(SFILES): Add "interps.c".
(COMMON_OBS): Add "interps.o".
(interps_h, mi_main_h): Define.
(interps.o, cli-interp.o, mi-interp.o): Add dependencies.
(mi-main.o, main.o, event-top.o): Update dependencies.
* cli/cli-interp.c: New file.
* interps.h, interps.c: New files.
* top.c: (gdb_init): Don't install the default interpreter, handed
by captured_main.
* main.c: Include "interps.h".
(interpreter_p): Note that it should malloc'ed.
(captured_command_loop): Call current_interp_command_loop.
(captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
xfree and xstrdup when updating interpreter_p. Install the
default interpreter. Add hack to stop mi1's copyright notice
being encoded.
* event-top.h (gdb_setup_readline): Declare.
(gdb_disable_readline): Declare.
* event-top.c: Include "interps.h".
(display_gdb_prompt): Call current_interp_display_prompt_p.
(gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
gdb_stdlog, and gdb_stdtarg.
(_initialize_event_loop): Don't call gdb_setup_readline.
* cli-out.c (cli_out_set_stream): New function.
* cli-out.h (cli_out_set_stream): Declare.
2003-02-06 01:19:12 +00:00
|
|
|
mi-interp.o \
|
2010-02-28 15:04:13 +00:00
|
|
|
mi-main.o mi-parse.o mi-getopt.o
|
2000-02-23 00:25:43 +00:00
|
|
|
SUBDIR_MI_SRCS = \
|
|
|
|
mi/mi-out.c mi/mi-console.c \
|
2002-12-13 17:55:49 +00:00
|
|
|
mi/mi-cmds.c mi/mi-cmd-env.c \
|
2000-02-23 00:25:43 +00:00
|
|
|
mi/mi-cmd-var.c mi/mi-cmd-break.c mi/mi-cmd-stack.c \
|
2003-05-12 00:26:19 +00:00
|
|
|
mi/mi-cmd-file.c mi/mi-cmd-disas.c mi/mi-symbol-cmds.c \
|
* remote.c (remote_cmdlist): New variable.
(PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
(PACKET_vFile_close, PACKET_vFile_unlink): New constants.
(remote_buffer_add_string, remote_buffer_add_bytes)
(remote_buffer_add_int, remote_hostio_parse_result)
(remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
(remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
(remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
(remote_hostio_close_cleanup, remote_file_put, remote_file_get)
(remote_file_delete, remote_put_command, remote_get_command)
(remote_delete_command, remote_command): New functions.
(_initialize_remote): Register new packets and commands.
* Makefile.in (gdb_fileio_h): New variable.
(remote.o): Update.
(SUBDIR_MI_OBS): Add mi-cmd-target.o.
(SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
(mi-cmd-target.o): New rule.
* mi/mi-cmd-target.c: New file.
* mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
and target-file-put.
* mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
(mi_cmd_target_file_delete): Declare.
* remote.h (remote_file_put, remote_file_get, remote_file_delete):
Declare.
* NEWS: Describe new file transfer support.
* gdb.texinfo (Debugging Programs with Multiple Processes): Correct
formatting.
(Remote Debugging): Add File Transfer section.
(Remote Configuration): Document Host I/O packets.
(GDB/MI): Add GDB/MI File Transfer Commands section.
(Remote Protocol): Add Host I/O Packets section.
(Packets): Add vFile.
* Makefile.in (OBS): Add hostio.o.
(hostio.o): New rule.
* server.h (handle_vFile): Declare.
* hostio.c: New file.
* server.c (handle_v_requests): Take packet_len and new_packet_len
for binary packets. Call handle_vFile.
(main): Update call to handle_v_requests.
* gdb.server/file-transfer.exp, gdb.server/transfer.txt,
gdb.mi/mi-file-transfer.exp: New.
2007-11-30 21:50:19 +00:00
|
|
|
mi/mi-cmd-target.c mi/mi-interp.c \
|
2010-02-28 15:04:13 +00:00
|
|
|
mi/mi-main.c mi/mi-parse.c mi/mi-getopt.c
|
2000-02-23 00:25:43 +00:00
|
|
|
SUBDIR_MI_DEPS =
|
|
|
|
SUBDIR_MI_LDFLAGS=
|
|
|
|
SUBDIR_MI_CFLAGS= \
|
2000-12-20 21:24:28 +00:00
|
|
|
-DMI_OUT=1
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2000-05-25 01:50:50 +00:00
|
|
|
#
|
|
|
|
# TUI sub directory definitions
|
|
|
|
#
|
2004-02-18 19:01:36 +00:00
|
|
|
|
|
|
|
# Name of the TUI program
|
|
|
|
TUI=gdbtui
|
|
|
|
|
2000-05-25 01:50:50 +00:00
|
|
|
SUBDIR_TUI_OBS = \
|
2004-01-19 04:31:53 +00:00
|
|
|
tui-command.o \
|
|
|
|
tui-data.o \
|
|
|
|
tui-disasm.o \
|
|
|
|
tui-file.o tui.o \
|
|
|
|
tui-hooks.o \
|
2003-02-14 13:58:06 +00:00
|
|
|
tui-interp.o \
|
2004-01-19 04:31:53 +00:00
|
|
|
tui-io.o \
|
|
|
|
tui-layout.o \
|
|
|
|
tui-out.o \
|
|
|
|
tui-regs.o \
|
|
|
|
tui-source.o \
|
|
|
|
tui-stack.o \
|
|
|
|
tui-win.o \
|
|
|
|
tui-windata.o \
|
|
|
|
tui-wingeneral.o \
|
|
|
|
tui-winsource.o
|
2000-05-25 01:50:50 +00:00
|
|
|
SUBDIR_TUI_SRCS = \
|
2004-01-19 04:31:53 +00:00
|
|
|
tui/tui-command.c \
|
|
|
|
tui/tui-data.c \
|
|
|
|
tui/tui-disasm.c \
|
|
|
|
tui/tui-file.c \
|
|
|
|
tui/tui-hooks.c \
|
2003-02-14 13:58:06 +00:00
|
|
|
tui/tui-interp.c \
|
2004-01-19 04:31:53 +00:00
|
|
|
tui/tui-io.c \
|
|
|
|
tui/tui-layout.c \
|
|
|
|
tui/tui-out.c \
|
|
|
|
tui/tui-regs.c \
|
|
|
|
tui/tui-source.c \
|
|
|
|
tui/tui-stack.c \
|
|
|
|
tui/tui-win.c \
|
|
|
|
tui/tui-windata.c \
|
|
|
|
tui/tui-wingeneral.c \
|
|
|
|
tui/tui-winsource.c \
|
|
|
|
tui/tui.c
|
2000-05-25 01:50:50 +00:00
|
|
|
SUBDIR_TUI_DEPS =
|
|
|
|
SUBDIR_TUI_LDFLAGS=
|
|
|
|
SUBDIR_TUI_CFLAGS= \
|
2004-02-10 Andrew Cagney <cagney@redhat.com>
* defs.h: Do not include "tui.h".
* gdb_curses.h: New file.
* tui/tui-hooks.h: New file.
* tui/tui.h (tui_update_all_exec_infos): Delete declaration.
(tui_install_hooks, tui_remove_hooks): Delete declarations.
(tui_initialize_io): Delete declaration.
(tui_initialize_readline: Delete redundant declaration.
(struct tui_point): Delete definition.
* tui/tui-data.h (struct tui_point): Define.
* cli/cli-decode.c [TUI]: Include "tui/tui.h".
* utils.c: Include "tui/tui.h".
* tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
* printcmd.c [TUI]: Include "tui/tui.h".
* cli/cli-cmds.c [TUI]: Include "tui/tui.h".
* tui/tui-command.c: Include "gdb_curses.h".
* tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
* tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
* tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
* tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
* tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
* Makefile.in: Update all dependencies.
(tui_hooks_h, gdb_curses_h): Define.
(SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
2004-02-10 19:08:19 +00:00
|
|
|
-DTUI=1
|
2000-05-25 01:50:50 +00:00
|
|
|
|
2008-08-06 19:41:33 +00:00
|
|
|
#
|
|
|
|
# python sub directory definitons
|
|
|
|
#
|
|
|
|
SUBDIR_PYTHON_OBS = \
|
|
|
|
python.o \
|
2010-04-23 16:20:13 +00:00
|
|
|
py-auto-load.o \
|
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
2010-02-24 21:18:28 +00:00
|
|
|
py-block.o \
|
2010-04-09 09:41:43 +00:00
|
|
|
py-breakpoint.o \
|
2009-09-09 17:45:42 +00:00
|
|
|
py-cmd.o \
|
|
|
|
py-frame.o \
|
|
|
|
py-function.o \
|
2010-06-28 21:16:04 +00:00
|
|
|
py-inferior.o \
|
|
|
|
py-infthread.o \
|
2010-01-14 08:03:37 +00:00
|
|
|
py-lazy-string.o \
|
2009-09-09 17:45:42 +00:00
|
|
|
py-objfile.o \
|
2010-04-29 15:45:57 +00:00
|
|
|
py-param.o \
|
2009-09-09 17:45:42 +00:00
|
|
|
py-prettyprint.o \
|
2010-04-15 19:54:13 +00:00
|
|
|
py-progspace.o \
|
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
2010-02-24 21:18:28 +00:00
|
|
|
py-symbol.o \
|
|
|
|
py-symtab.o \
|
2009-09-09 17:45:42 +00:00
|
|
|
py-type.o \
|
|
|
|
py-utils.o \
|
|
|
|
py-value.o
|
2008-08-06 19:41:33 +00:00
|
|
|
SUBDIR_PYTHON_SRCS = \
|
|
|
|
python/python.c \
|
2010-04-23 16:20:13 +00:00
|
|
|
python/py-auto-load.c \
|
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
2010-02-24 21:18:28 +00:00
|
|
|
python/py-block.c \
|
2010-04-09 09:41:43 +00:00
|
|
|
python/py-breakpoint.c \
|
2009-09-09 17:45:42 +00:00
|
|
|
python/py-cmd.c \
|
|
|
|
python/py-frame.c \
|
|
|
|
python/py-function.c \
|
2010-06-28 21:16:04 +00:00
|
|
|
python/py-inferior.c \
|
|
|
|
python/py-infthread.c \
|
2010-01-14 08:03:37 +00:00
|
|
|
python/py-lazy-string.c \
|
2009-09-09 17:45:42 +00:00
|
|
|
python/py-objfile.c \
|
2010-04-29 15:45:57 +00:00
|
|
|
python/py-param.c \
|
2009-09-09 17:45:42 +00:00
|
|
|
python/py-prettyprint.c \
|
2010-04-15 19:54:13 +00:00
|
|
|
python/py-progspace.c \
|
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
2010-02-24 21:18:28 +00:00
|
|
|
python/py-symbol.c \
|
|
|
|
python/py-symtab.c \
|
2009-09-09 17:45:42 +00:00
|
|
|
python/py-type.c \
|
|
|
|
python/py-utils.c \
|
|
|
|
python/py-value.c
|
2008-08-06 19:41:33 +00:00
|
|
|
SUBDIR_PYTHON_DEPS =
|
|
|
|
SUBDIR_PYTHON_LDFLAGS=
|
|
|
|
SUBDIR_PYTHON_CFLAGS=
|
|
|
|
|
2000-05-25 01:50:50 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# Opcodes currently live in one of two places. Either they are in the
|
|
|
|
# opcode library, typically ../opcodes, or they are in a header file
|
|
|
|
# in INCLUDE_DIR.
|
|
|
|
# Where is the "-lopcodes" library, with (some of) the opcode tables and
|
|
|
|
# disassemblers?
|
2002-07-26 Andrew Cagney <ac131313@redhat.com>
* z8k-tdep.c: Do not include "obstack.h".
* h8300-tdep.c, h8500-tdep.c: Ditto.
* m68hc11-tdep.c, sh-tdep.c: Ditto.
* valprint.c, v850-tdep.c: Ditto.
* d10v-tdep.c, mn10300-tdep.c: Ditto.
* mn10200-tdep.c: Ditto.
* Makefile.in (z8k-tdep.o): Update dependencies.
(m68hc11-tdep.o, valprint.o): Ditto.
(v850-tdep.o, d10v-tdep.o): Ditto.
(mn10300-tdep.o, sparc-tdep.o): Ditto.
(sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
(m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
(sh_opc_h, gdb_sim_sh_h): Define.
(elf_sh_h, elf_bfd_h): Define.
(opcode_m68hc11_h): Define.
(OPCODES_SRC, OPCODES_DIR): define.
(OPCODES): Use $(OPCODES_DIR).
(gdb_sim_d10v_h): Rename sim_d10v_h.
(gdb_sim_arm_h): Rename sim_arm_h.
2002-07-29 16:34:07 +00:00
|
|
|
OPCODES_DIR = ../opcodes
|
|
|
|
OPCODES_SRC = $(srcdir)/$(OPCODES_DIR)
|
|
|
|
OPCODES = $(OPCODES_DIR)/libopcodes.a
|
1999-04-16 01:35:26 +00:00
|
|
|
# Where are the other opcode tables which only have header file
|
|
|
|
# versions?
|
|
|
|
OP_INCLUDE = $(INCLUDE_DIR)/opcode
|
2010-03-23 21:31:29 +00:00
|
|
|
# Some source files like to use #include "opcodes/file.h"
|
|
|
|
OPCODES_CFLAGS = -I$(OP_INCLUDE) -I$(OPCODES_SRC)/..
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# The simulator is usually nonexistent; targets that include one
|
|
|
|
# should set this to list all the .o or .a files to be linked in.
|
* config/arm/embed.mt (SIM_OBS, SIM): Remove.
* config/avr/avr.mt (SIM_OBS, SIM): Remove.
* config/frv/frv.mt (SIM_OBS, SIM): Remove.
* config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
* config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
* config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
* config/m32r/linux.mt (SIM_OBS, SIM): Remove.
* config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
* config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
* config/mips/embed.mt (SIM_OBS, SIM): Remove.
* config/mips/linux.mt (SIM_OBS, SIM): Remove.
* config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
* config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
* config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
* config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
* config/powerpc/ppc-sim.mt: Remove file.
* config/sh/embed.mt (SIM_OBS, SIM): Remove.
* config/sh/linux.mt (SIM_OBS, SIM): Remove.
* config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
* config/sh/sh64.mt (SIM_OBS, SIM): Remove.
* config/sparc/embed.mt (SIM_OBS, SIM): Remove.
* config/v850/v850.mt (SIM_OBS, SIM): Remove.
* config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
* configure.tgt (gdb_sim): Document variable.
(arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
(avr-*-*): Likewise.
(frv-*-*): Likewise.
(h8300-*-*): Likewise.
(iq2000-*-*): Likewise.
(m32c-*-*): Likewise.
(m32r*-*-linux*): Likewise.
(m32r*-*-*): Likewise.
(m68hc11*-*-*|m6811*-*-*): Likewise.
(mips*-*-*): Likewise.
(mips*-*-linux*): Likewise.
(mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
(mn10300-*-*): Likewise.
(powerpc-*-linux* | powerpc64-*-linux*): Likewise.
(powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
(powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
(sh*): Set gdb_sim.
(sh-*-linux*): Likewise.
(sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
(sh64-*-elf*): Likewise.
(sparc-*-rtems*): Likewise.
(v850*-*-elf): Likewise.
(xstormy16-*-*): Likewise.
* configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
(SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
* configure: Regenerate.
* Makefile.in (SIM, SIM_OBS): Substitute from configure.
(@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
2007-11-17 00:44:38 +00:00
|
|
|
SIM = @SIM@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-05-11 13:35:55 +00:00
|
|
|
WIN32LIBS = @WIN32LIBS@
|
|
|
|
|
2008-08-02 21:36:06 +00:00
|
|
|
# Tcl et al cflags and libraries
|
|
|
|
TCL = @TCL_LIBRARY@
|
|
|
|
TCL_CFLAGS = @TCL_INCLUDE@
|
2000-02-07 00:19:45 +00:00
|
|
|
GDBTKLIBS = @GDBTKLIBS@
|
|
|
|
# Extra flags that the GDBTK files need:
|
|
|
|
GDBTK_CFLAGS = @GDBTK_CFLAGS@
|
|
|
|
|
2008-08-02 21:36:06 +00:00
|
|
|
TK = @TK_LIBRARY@
|
|
|
|
TK_CFLAGS = @TK_INCLUDE@
|
2000-02-07 00:19:45 +00:00
|
|
|
|
|
|
|
X11_CFLAGS = @TK_XINCLUDES@
|
|
|
|
X11_LDFLAGS =
|
|
|
|
X11_LIBS =
|
|
|
|
|
|
|
|
WIN32LDAPP = @WIN32LDAPP@
|
|
|
|
|
|
|
|
LIBGUI = @LIBGUI@
|
|
|
|
GUI_CFLAGS_X = @GUI_CFLAGS_X@
|
|
|
|
IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
|
2000-12-11 21:11:16 +00:00
|
|
|
|
2008-08-02 21:36:06 +00:00
|
|
|
ALL_TCL_CFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS)
|
|
|
|
|
2001-08-15 21:09:46 +00:00
|
|
|
# The version of gdbtk we're building. This should be kept
|
|
|
|
# in sync with GDBTK_VERSION and friends in gdbtk.h.
|
|
|
|
GDBTK_VERSION = 1.0
|
|
|
|
GDBTK_LIBRARY = $(datadir)/insight$(GDBTK_VERSION)
|
|
|
|
|
2001-08-16 22:47:00 +00:00
|
|
|
# Gdbtk requires an absolute path to the source directory or
|
|
|
|
# the testsuite won't run properly.
|
|
|
|
GDBTK_SRC_DIR = @GDBTK_SRC_DIR@
|
|
|
|
|
2000-12-11 21:11:16 +00:00
|
|
|
SUBDIR_GDBTK_OBS = \
|
2003-02-18 23:27:42 +00:00
|
|
|
gdbtk.o gdbtk-bp.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-interp.o \
|
2001-05-10 18:02:58 +00:00
|
|
|
gdbtk-register.o gdbtk-stack.o gdbtk-varobj.o gdbtk-wrapper.o
|
2000-12-11 21:11:16 +00:00
|
|
|
SUBDIR_GDBTK_SRCS = \
|
2001-05-10 18:02:58 +00:00
|
|
|
gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-bp.c \
|
2004-02-10 22:15:40 +00:00
|
|
|
gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c \
|
|
|
|
gdbtk/generic/gdbtk-interp.c \
|
2001-05-10 18:02:58 +00:00
|
|
|
gdbtk/generic/gdbtk-register.c gdbtk/generic/gdbtk-stack.c \
|
2002-09-26 17:46:04 +00:00
|
|
|
gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c \
|
|
|
|
gdbtk/generic/gdbtk-main.c
|
2008-08-02 21:36:06 +00:00
|
|
|
SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS)
|
2000-12-11 21:11:16 +00:00
|
|
|
SUBDIR_GDBTK_LDFLAGS=
|
|
|
|
SUBDIR_GDBTK_CFLAGS= -DGDBTK
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
CONFIG_OBS= @CONFIG_OBS@
|
|
|
|
CONFIG_SRCS= @CONFIG_SRCS@
|
|
|
|
CONFIG_DEPS= @CONFIG_DEPS@
|
|
|
|
CONFIG_LDFLAGS = @CONFIG_LDFLAGS@
|
1999-04-16 01:35:26 +00:00
|
|
|
ENABLE_CFLAGS= @ENABLE_CFLAGS@
|
2000-03-03 05:44:39 +00:00
|
|
|
CONFIG_ALL= @CONFIG_ALL@
|
|
|
|
CONFIG_CLEAN= @CONFIG_CLEAN@
|
2000-02-24 08:16:26 +00:00
|
|
|
CONFIG_INSTALL = @CONFIG_INSTALL@
|
|
|
|
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# -I. for config files.
|
2001-09-01 21:38:05 +00:00
|
|
|
# -I$(srcdir) for gdb internal headers.
|
1999-04-16 01:35:26 +00:00
|
|
|
# -I$(srcdir)/config for more generic config files.
|
|
|
|
|
|
|
|
# It is also possible that you will need to add -I/usr/include/sys if
|
|
|
|
# your system doesn't have fcntl.h in /usr/include (which is where it
|
|
|
|
# should be according to Posix).
|
|
|
|
DEFS = @DEFS@
|
2009-03-02 00:45:13 +00:00
|
|
|
GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/common -I$(srcdir)/config \
|
|
|
|
-DLOCALEDIR="\"$(localedir)\"" $(DEFS)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2007-11-17 00:54:18 +00:00
|
|
|
# MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory.
|
|
|
|
GLOBAL_CFLAGS = $(MH_CFLAGS)
|
2003-01-22 23:50:35 +00:00
|
|
|
|
|
|
|
PROFILE_CFLAGS = @PROFILE_CFLAGS@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# CFLAGS is specifically reserved for setting from the command line
|
|
|
|
# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
|
2000-04-07 08:57:39 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2006-08-22 19:08:31 +00:00
|
|
|
# Set by configure, for e.g. expat.
|
|
|
|
INTERNAL_CPPFLAGS = @CPPFLAGS@
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# Need to pass this to testsuite for "make check". Probably should be
|
|
|
|
# consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
|
|
|
|
# so "make check" has the same result no matter where it is run.
|
|
|
|
CXXFLAGS = -g -O
|
|
|
|
|
|
|
|
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
|
2006-02-02 02:26:48 +00:00
|
|
|
INTERNAL_CFLAGS_BASE = \
|
1999-08-31 01:14:27 +00:00
|
|
|
$(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
|
1999-04-16 01:35:26 +00:00
|
|
|
$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
|
2007-10-25 17:52:32 +00:00
|
|
|
$(BFD_CFLAGS) $(INCLUDE_CFLAGS) $(LIBDECNUMBER_CFLAGS) \
|
2009-03-25 00:58:37 +00:00
|
|
|
$(INTL_CFLAGS) $(INCGNU) $(ENABLE_CFLAGS) $(INTERNAL_CPPFLAGS)
|
2006-02-02 02:26:48 +00:00
|
|
|
INTERNAL_WARN_CFLAGS = $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS)
|
1999-09-09 00:02:17 +00:00
|
|
|
INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# LDFLAGS is specifically reserved for setting from the command line
|
|
|
|
# when running make.
|
2002-08-20 21:32:18 +00:00
|
|
|
LDFLAGS = @LDFLAGS@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# Profiling options need to go here to work.
|
|
|
|
# I think it's perfectly reasonable for a user to set -pg in CFLAGS
|
|
|
|
# and have it work; that's why CFLAGS is here.
|
2003-01-22 23:50:35 +00:00
|
|
|
# PROFILE_CFLAGS is _not_ included, however, because we use monstartup.
|
2009-03-25 00:58:37 +00:00
|
|
|
INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# If your system is missing alloca(), or, more likely, it's there but
|
|
|
|
# it doesn't work, then refer to libiberty.
|
|
|
|
|
|
|
|
# Libraries and corresponding dependencies for compiling gdb.
|
|
|
|
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
|
|
|
# LIBIBERTY appears twice on purpose.
|
|
|
|
# If you have the Cygnus libraries installed,
|
|
|
|
# you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
|
2007-10-25 17:52:32 +00:00
|
|
|
INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty -ldecnumber \
|
2008-10-27 11:37:40 +00:00
|
|
|
$(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
-lintl -liberty $(LIBGNU)
|
2007-10-25 17:52:32 +00:00
|
|
|
CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \
|
2008-10-27 11:37:40 +00:00
|
|
|
$(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
|
2009-03-25 00:58:37 +00:00
|
|
|
$(LIBEXPAT) \
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
|
2008-10-27 11:37:40 +00:00
|
|
|
CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
$(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2001-09-01 21:38:05 +00:00
|
|
|
ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
|
|
|
ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
DIST=gdb
|
|
|
|
|
|
|
|
LINT=/usr/5bin/lint
|
2001-03-07 02:57:08 +00:00
|
|
|
LINTFLAGS= $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
|
2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
* MAINTAINERS: Delete mmalloc.
* Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
* NEWS: Mention removal of --with-malloc.
* acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
* config.in: Regenerate.
* configure: Regenerate.
* configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc, USE_MMALLOC, MMCHECK_FORCE.
* gdbinit.in: Remove mmalloc.
* utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
* config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
* config/i386/go32.mh: Likewise.
* config/i386/interix.mh: Likewise.
* config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
* gdbint.texinfo: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE,
MMAP_BASE_ADDRESS, MMAP_INCREMENT.
2004-01-20 09:29:18 +00:00
|
|
|
$(BFD_CFLAGS) $(INCLUDE_CFLAGS) \
|
2001-03-07 02:57:08 +00:00
|
|
|
$(INTL_CFLAGS)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2005-07-03 20:46:50 +00:00
|
|
|
RUNTEST = runtest
|
1999-04-16 01:35:26 +00:00
|
|
|
RUNTESTFLAGS=
|
|
|
|
|
* Makefile.in (XMLFILES): New.
(COMMON_OBS): Add xml-builtin.o.
(xml-builtin.c, stamp-xml): New rules.
(xml-tdesc.o): Update.
* features/feature_to_c.sh: New file.
* xml-support.c (MAX_XINCLUDE_DEPTH): Define.
(struct gdb_xml_parser): Add dtd_name and is_xinclude.
(gdb_xml_start_element): Initialize scope after possibly reallocating
scopes. Move cleanup later. Handle the XInclude description
specially.
(gdb_xml_end_element): Only parse the body if there is a current element.
Call XML_DefaultCurrent if there is no element.
(gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
(struct xinclude_parsing_data, xinclude_start_include)
(xinclude_end_include, xml_xinclude_default)
(xml_xinclude_start_doctype, xml_xinclude_end_doctype)
(xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
(xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
* xml-support.h (xml_fetch_another, xml_process_xincludes)
(fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
* xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
XInclude directives. Use the compiled in DTD.
(fetch_xml_from_file): Add baton argument. Treat it as a containing
directory name. Do not warn here.
(file_read_description_xml): Update call. Warn here instead. Pass
a dirname as baton.
(fetch_available_features_from_target): New.
(target_read_description_xml): Use it.
* features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
to handle XInclude.
* features/xinclude.dtd: New file.
* gdb.xml/bad-include.xml, gdb.xml/inc-2.xml, gdb.xml/inc-body.xml,
gdb.xml/includes.xml, gdb.xml/tdesc-xinclude.exp: New files.
* gdb.texinfo (Target Description Format): Add section on XInclude.
2007-02-07 22:48:06 +00:00
|
|
|
# XML files to build in to GDB.
|
2007-02-26 19:20:21 +00:00
|
|
|
XMLFILES = $(srcdir)/features/gdb-target.dtd $(srcdir)/features/xinclude.dtd \
|
Implement core awareness.
* bcache.c (compare_ints): Remove
(print_percentage): Use compare_positive_ints.
* defs.h (compare_positive_ints): Declare.
* linux-nat.h (struct lin_lwp): New field core.
(linux_nat_core_of_thread_1): Declare.
* linux-nat.c (add_lwp): Init the 'core' field.
(linux_nat_wait_1): Record the core.
(linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
(linux_nat_add_target): Register the above.
* linux-thread-db.c (update_thread_core): New.
(thread_db_find_new_threads): Update core information for
every thread.
* remote.c (struct private_thread_info): New.
(free_private_thread_info, demand_private_info): New.
(PACKET_qXfer_threads, use_osdata_threads): New.
(struct thread_item, threads_parsing_context
(start_thread, end_thread, thread_attributes)
(thread_children, threads_children, threads_elements): New.
(remote_threads_info): Try qXfer:threads before anything
else.
(remote_protocol_packets): Register qXfer:threads.
(remote_open_1): Init use_osdata_threads.
(struct stop_reply): New field 'core'.
(remote_parse_stop_reply): Parse core number.
(process_stop_reply): Record core number.
(remote_xfer_partial): Handle qXfer:threads.
(remote_core_of_thread): New.
(init_remote_ops): Register remote_core_of_thread.
(_initialize_remote): Register qXfer:read.
* target.c (target_core_of_thread): New
* target.h (enum target_object): New value TARGET_OBJECT_THREADS.
(struct target_ops): New field to_core_of_threads.
(target_core_of_thread): Declare.
* gdbthread.h (struct thread_info): New field private_dtor.
* thread.c (print_thread_info): Report the core.
* ui-out.c (MAX_UI_OUT_LEVELS): Increase.
* utils.c (compare_positive_ints): New.
* features/threads.dtd: New.
* mi/mi-interp.c (mi_on_normal_stop): Report the core.
* mi/mi-main.c (struct collect_cores_data, collect_cores)
(do_nothing, free_vector_of_osdata_items)
(splay_tree_int_comparator, free_splay_tree): New.
(print_one_inferior_data): Implemented printing of selected
inferiors. Collect and print cores.
(output_cores): New.
(mi_cmd_list_thread_groups): Support --recurse. Permit specifying
thread groups together with --available.
2010-01-12 21:40:25 +00:00
|
|
|
$(srcdir)/features/library-list.dtd $(srcdir)/features/osdata.dtd \
|
|
|
|
$(srcdir)/features/threads.dtd
|
* Makefile.in (XMLFILES): New.
(COMMON_OBS): Add xml-builtin.o.
(xml-builtin.c, stamp-xml): New rules.
(xml-tdesc.o): Update.
* features/feature_to_c.sh: New file.
* xml-support.c (MAX_XINCLUDE_DEPTH): Define.
(struct gdb_xml_parser): Add dtd_name and is_xinclude.
(gdb_xml_start_element): Initialize scope after possibly reallocating
scopes. Move cleanup later. Handle the XInclude description
specially.
(gdb_xml_end_element): Only parse the body if there is a current element.
Call XML_DefaultCurrent if there is no element.
(gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
(struct xinclude_parsing_data, xinclude_start_include)
(xinclude_end_include, xml_xinclude_default)
(xml_xinclude_start_doctype, xml_xinclude_end_doctype)
(xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
(xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
* xml-support.h (xml_fetch_another, xml_process_xincludes)
(fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
* xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
XInclude directives. Use the compiled in DTD.
(fetch_xml_from_file): Add baton argument. Treat it as a containing
directory name. Do not warn here.
(file_read_description_xml): Update call. Warn here instead. Pass
a dirname as baton.
(fetch_available_features_from_target): New.
(target_read_description_xml): Use it.
* features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
to handle XInclude.
* features/xinclude.dtd: New file.
* gdb.xml/bad-include.xml, gdb.xml/inc-2.xml, gdb.xml/inc-body.xml,
gdb.xml/includes.xml, gdb.xml/tdesc-xinclude.exp: New files.
* gdb.texinfo (Target Description Format): Add section on XInclude.
2007-02-07 22:48:06 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
|
|
|
|
# interface to the serial port. Hopefully if get ported to OS/2, VMS,
|
|
|
|
# etc., then there will be (as part of the C library or perhaps as
|
|
|
|
# part of libiberty) a POSIX interface. But at least for now the
|
|
|
|
# host-dependent makefile fragment might need to use something else
|
|
|
|
# besides ser-unix.o
|
2000-08-04 09:27:18 +00:00
|
|
|
SER_HARDWIRE = @SER_HARDWIRE@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# The `remote' debugging target is supported for most architectures,
|
|
|
|
# but not all (e.g. 960)
|
* mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
* Makefile.in: Remove references to deleted files.
* README: Do not mention deleted ROM monitor interfaces.
* defs.h (enum language): Delete language_scm.
* expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
(dump_subexp_body_standard): Likewise.
* parse.c (operator_length_standard): Likewise.
* expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
* remote-mips.c: Do not include remote-utils.h.
* remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
throughout.
* value.c: Do not include scm-lang.h.
(unpack_long): Delete scm_unpack call.
* config/h8300/h8300.mt, config/mips/embed.mt,
config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
config/sh/embed.mt, config/sh/linux.mt: Remove references to
deleted files.
* NEWS: Mention removed files.
* gdb.texinfo (Memory): Reference Remote Debugging chapter.
(Character Sets, Caching Data of Remote Targets): Likewise.
(Targets): Delete Remote node. Move its text...
(Debugging Remote Programs): ...to here. Delete description
of the "remote" command.
(Remote configuration): Delete description of "set remotedevice"
and "show remotedevice".
(Embedded Processors): Delete H8/300, H8/500, and SH nodes.
2007-04-13 14:17:47 +00:00
|
|
|
REMOTE_OBS = remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# This is remote-sim.o if a simulator is to be linked in.
|
* config/arm/embed.mt (SIM_OBS, SIM): Remove.
* config/avr/avr.mt (SIM_OBS, SIM): Remove.
* config/frv/frv.mt (SIM_OBS, SIM): Remove.
* config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
* config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
* config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
* config/m32r/linux.mt (SIM_OBS, SIM): Remove.
* config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
* config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
* config/mips/embed.mt (SIM_OBS, SIM): Remove.
* config/mips/linux.mt (SIM_OBS, SIM): Remove.
* config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
* config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
* config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
* config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
* config/powerpc/ppc-sim.mt: Remove file.
* config/sh/embed.mt (SIM_OBS, SIM): Remove.
* config/sh/linux.mt (SIM_OBS, SIM): Remove.
* config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
* config/sh/sh64.mt (SIM_OBS, SIM): Remove.
* config/sparc/embed.mt (SIM_OBS, SIM): Remove.
* config/v850/v850.mt (SIM_OBS, SIM): Remove.
* config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
* configure.tgt (gdb_sim): Document variable.
(arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
(avr-*-*): Likewise.
(frv-*-*): Likewise.
(h8300-*-*): Likewise.
(iq2000-*-*): Likewise.
(m32c-*-*): Likewise.
(m32r*-*-linux*): Likewise.
(m32r*-*-*): Likewise.
(m68hc11*-*-*|m6811*-*-*): Likewise.
(mips*-*-*): Likewise.
(mips*-*-linux*): Likewise.
(mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
(mn10300-*-*): Likewise.
(powerpc-*-linux* | powerpc64-*-linux*): Likewise.
(powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
(powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
(sh*): Set gdb_sim.
(sh-*-linux*): Likewise.
(sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
(sh64-*-elf*): Likewise.
(sparc-*-rtems*): Likewise.
(v850*-*-elf): Likewise.
(xstormy16-*-*): Likewise.
* configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
(SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
* configure: Regenerate.
* Makefile.in (SIM, SIM_OBS): Substitute from configure.
(@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
2007-11-17 00:44:38 +00:00
|
|
|
SIM_OBS = @SIM_OBS@
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2007-11-17 00:54:18 +00:00
|
|
|
# Target-dependent object files.
|
|
|
|
TARGET_OBS = @TARGET_OBS@
|
|
|
|
|
2007-11-27 17:06:12 +00:00
|
|
|
# All target-dependent objects files that require 64-bit CORE_ADDR
|
|
|
|
# (used with --enable-targets=all --enable-64-bit-bfd).
|
|
|
|
ALL_64_TARGET_OBS = \
|
2007-11-17 01:02:01 +00:00
|
|
|
alphabsd-tdep.o alphafbsd-tdep.o alpha-linux-tdep.o alpha-mdebug-tdep.o \
|
|
|
|
alphanbsd-tdep.o alphaobsd-tdep.o alpha-osf1-tdep.o alpha-tdep.o \
|
2009-07-03 12:06:36 +00:00
|
|
|
amd64fbsd-tdep.o amd64-darwin-tdep.o amd64-dicos-tdep.o \
|
|
|
|
amd64-linux-tdep.o amd64nbsd-tdep.o \
|
2009-06-29 13:10:39 +00:00
|
|
|
amd64obsd-tdep.o amd64-sol2-tdep.o amd64-tdep.o amd64-windows-tdep.o \
|
2007-11-27 17:06:12 +00:00
|
|
|
ia64-linux-tdep.o ia64-tdep.o \
|
|
|
|
mips64obsd-tdep.o \
|
|
|
|
sparc64fbsd-tdep.o sparc64-linux-tdep.o sparc64nbsd-tdep.o \
|
|
|
|
sparc64obsd-tdep.o sparc64-sol2-tdep.o sparc64-tdep.o
|
|
|
|
|
|
|
|
# All other target-dependent objects files (used with --enable-targets=all).
|
|
|
|
ALL_TARGET_OBS = \
|
2010-02-25 20:30:58 +00:00
|
|
|
armbsd-tdep.o arm-linux-tdep.o arm-symbian-tdep.o \
|
|
|
|
armnbsd-tdep.o armobsd-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
arm-tdep.o arm-wince-tdep.o \
|
|
|
|
avr-tdep.o \
|
|
|
|
cris-tdep.o \
|
2009-02-17 17:56:50 +00:00
|
|
|
dicos-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
frv-linux-tdep.o frv-tdep.o \
|
|
|
|
h8300-tdep.o \
|
2008-01-19 15:03:50 +00:00
|
|
|
hppabsd-tdep.o hppanbsd-tdep.o hppaobsd-tdep.o \
|
|
|
|
hppa-hpux-tdep.o hppa-linux-tdep.o hppa-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
i386bsd-tdep.o i386-cygwin-tdep.o i386fbsd-tdep.o i386gnu-tdep.o \
|
|
|
|
i386-linux-tdep.o i386nbsd-tdep.o i386-nto-tdep.o i386obsd-tdep.o \
|
|
|
|
i386-sol2-tdep.o i386-tdep.o i387-tdep.o \
|
2009-06-29 13:10:39 +00:00
|
|
|
i386-dicos-tdep.o i386-darwin-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
iq2000-tdep.o \
|
2009-02-06 22:59:01 +00:00
|
|
|
linux-tdep.o \
|
2009-05-18 13:25:35 +00:00
|
|
|
lm32-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
m32c-tdep.o \
|
|
|
|
m32r-linux-tdep.o m32r-tdep.o \
|
|
|
|
m68hc11-tdep.o \
|
|
|
|
m68kbsd-tdep.o m68klinux-tdep.o m68k-tdep.o \
|
|
|
|
m88k-tdep.o \
|
|
|
|
mep-tdep.o \
|
* config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
elf32-microblaze.c, microblaze-rom.c, microblaze-linux-tdep.c,
microblaze-tdep.h, microblaze-tdep.c, microblaze-opc.h,
microblaze-opcm.h, microblaze-dis.c, microblaze-dis.h, sim/microblaze,
microblaze.h, and microblaze.isa.
* configure.tgt: Add targets microblaze*-linux-*, microblaze*-xilinx-*.
* Makefile.in: Build microblaze-tdep.o, microblaze-linux-tdep.o.
HFILES_NO_SRCDIR: Add microblaze-tdep.h.
* microblaze-linux-tdep.c: New.
* microblaze-tdep.c: New.
* microblaze-tdep.h: New.
* NEWS: Announce Xilinx MicroBlaze support.
2009-10-15 19:28:52 +00:00
|
|
|
microblaze-tdep.o microblaze-linux-tdep.o \
|
2007-11-27 17:06:12 +00:00
|
|
|
mips-irix-tdep.o mips-linux-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
mipsnbsd-tdep.o mips-tdep.o \
|
|
|
|
mn10300-linux-tdep.o mn10300-tdep.o \
|
2009-06-29 13:10:39 +00:00
|
|
|
moxie-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
mt-tdep.o \
|
|
|
|
nto-tdep.o \
|
|
|
|
ppc-linux-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o ppc-sysv-tdep.o \
|
|
|
|
rs6000-aix-tdep.o rs6000-tdep.o \
|
|
|
|
s390-tdep.o \
|
|
|
|
score-tdep.o \
|
|
|
|
sh64-tdep.o sh-linux-tdep.o shnbsd-tdep.o sh-tdep.o \
|
|
|
|
sparc-linux-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
|
|
|
|
sparc-sol2-tdep.o sparc-tdep.o \
|
2009-07-31 15:28:27 +00:00
|
|
|
spu-tdep.o spu-multiarch.o solib-spu.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
v850-tdep.o \
|
|
|
|
vaxnbsd-tdep.o vaxobsd-tdep.o vax-tdep.o \
|
|
|
|
xstormy16-tdep.o \
|
2008-02-14 04:49:12 +00:00
|
|
|
xtensa-config.o xtensa-tdep.o xtensa-linux-tdep.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
glibc-tdep.o \
|
|
|
|
bsd-uthread.o \
|
|
|
|
nbsd-tdep.o obsd-tdep.o \
|
|
|
|
sol2-tdep.o \
|
2009-08-18 15:22:12 +00:00
|
|
|
solib-frv.o solib-irix.o solib-svr4.o solib-target.o \
|
2009-06-29 13:10:39 +00:00
|
|
|
solib-som.o solib-pa64.o solib-darwin.o \
|
2007-11-17 01:02:01 +00:00
|
|
|
dbug-rom.o dink32-rom.o ppcbug-rom.o m32r-rom.o dsrec.o monitor.o \
|
|
|
|
remote-m32r-sdi.o \
|
|
|
|
xcoffread.o \
|
|
|
|
symfile-mem.o \
|
2009-01-12 01:10:28 +00:00
|
|
|
corelow.o \
|
2009-04-30 03:04:28 +00:00
|
|
|
windows-tdep.o \
|
|
|
|
linux-record.o
|
2007-11-17 01:02:01 +00:00
|
|
|
|
2007-11-17 00:54:18 +00:00
|
|
|
# Host-dependent makefile fragment comes in here.
|
1999-04-16 01:35:26 +00:00
|
|
|
@host_makefile_frag@
|
2007-11-17 00:54:18 +00:00
|
|
|
# End of host-dependent makefile fragment
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
2000-08-04 09:27:18 +00:00
|
|
|
"infodir=$(infodir)" \
|
gdb:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
* configure: Regenerate.
* Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
configure substitutions.
(FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
gdb/doc:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Set pdfdir and htmldir from configure
substitutions.
* configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
* configure: Regenerate.
readline:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add html target. Add dummy install-html and
install-pdf targets.
sim:
2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add dummy install-pdf, html, and
install-html targets.
2009-04-17 17:44:05 +00:00
|
|
|
"datarootdir=$(datarootdir)" \
|
|
|
|
"docdir=$(docdir)" \
|
|
|
|
"htmldir=$(htmldir)" \
|
2007-03-27 18:09:36 +00:00
|
|
|
"pdfdir=$(pdfdir)" \
|
2002-04-22 20:19:52 +00:00
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"mandir=$(mandir)" \
|
|
|
|
"datadir=$(datadir)" \
|
|
|
|
"includedir=$(includedir)" \
|
1999-04-16 01:35:26 +00:00
|
|
|
"against=$(against)" \
|
2003-08-08 17:30:37 +00:00
|
|
|
"DESTDIR=$(DESTDIR)" \
|
1999-04-16 01:35:26 +00:00
|
|
|
"AR=$(AR)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
|
|
|
"CXX=$(CXX)" \
|
|
|
|
"CXXFLAGS=$(CXXFLAGS)" \
|
|
|
|
"DLLTOOL=$(DLLTOOL)" \
|
2003-03-05 18:07:15 +00:00
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
1999-04-16 01:35:26 +00:00
|
|
|
"RANLIB=$(RANLIB)" \
|
|
|
|
"MAKEINFO=$(MAKEINFO)" \
|
1999-06-28 16:06:02 +00:00
|
|
|
"MAKEHTML=$(MAKEHTML)" \
|
|
|
|
"MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
|
1999-04-16 01:35:26 +00:00
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"RUNTEST=$(RUNTEST)" \
|
|
|
|
"RUNTESTFLAGS=$(RUNTESTFLAGS)"
|
|
|
|
|
|
|
|
# Flags that we pass when building the testsuite.
|
|
|
|
|
|
|
|
# empty for native, $(target_alias)/ for cross
|
|
|
|
target_subdir = @target_subdir@
|
|
|
|
|
|
|
|
CC_FOR_TARGET = ` \
|
|
|
|
if [ -f $${rootme}/../gcc/xgcc ] ; then \
|
|
|
|
if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
|
|
|
|
echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \
|
|
|
|
else \
|
|
|
|
echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
|
|
|
echo $(CC); \
|
|
|
|
else \
|
|
|
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
|
|
|
fi; \
|
|
|
|
fi`
|
|
|
|
|
|
|
|
CXX = gcc
|
|
|
|
CXX_FOR_TARGET = ` \
|
|
|
|
if [ -f $${rootme}/../gcc/xgcc ] ; then \
|
|
|
|
if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
|
|
|
|
echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \
|
|
|
|
else \
|
|
|
|
echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
|
|
|
echo $(CXX); \
|
|
|
|
else \
|
|
|
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
|
|
|
fi; \
|
|
|
|
fi`
|
|
|
|
|
|
|
|
# The use of $$(x_FOR_TARGET) reduces the command line length by not
|
|
|
|
# duplicating the lengthy definition.
|
|
|
|
TARGET_FLAGS_TO_PASS = \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"against=$(against)" \
|
|
|
|
'CC=$$(CC_FOR_TARGET)' \
|
|
|
|
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
|
|
|
'CXX=$$(CXX_FOR_TARGET)' \
|
|
|
|
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
|
|
|
|
"CXXFLAGS=$(CXXFLAGS)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"MAKEINFO=$(MAKEINFO)" \
|
1999-06-28 16:06:02 +00:00
|
|
|
"MAKEHTML=$(MAKEHTML)" \
|
1999-04-16 01:35:26 +00:00
|
|
|
"RUNTEST=$(RUNTEST)" \
|
2009-06-30 21:23:38 +00:00
|
|
|
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
|
|
|
"FORCE_PARALLEL=$(FORCE_PARALLEL)"
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# All source files that go into linking GDB.
|
|
|
|
# Links made at configuration time should not be specified here, since
|
|
|
|
# SFILES is used in building the distribution archive.
|
|
|
|
|
2008-10-22 19:45:05 +00:00
|
|
|
SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
|
Support lexical blocks and function bodies that occupy
non-contiguous address ranges.
* addrmap.c, addrmap.h: New files.
* block.h (struct addrmap): New forward declaration.
(struct blockvector): New member, 'map'.
(BLOCKVECTOR_MAP): New accessor macro.
* block.c: #include "addrmap.h"
(blockvector_for_pc_sect): If the blockvector we've found has
an address map, use it instead of searching the blocks.
* buildsym.c: #include "addrmap.h"
(pending_addrmap_obstack, pending_addrmap_interesting): New static
variables.
(really_free_pendings): If we have a pending addrmap, free it too.
(record_block_range): New function.
(make_blockvector): If we have an interesting pending addrmap,
record it in the new blockvector.
(start_symtab, buildsym_init): Assert that there is no pending
addrmap now; we should have cleaned up any addrmaps we'd built
previously.
(end_symtab): If there is a pending addrmap left over that didn't
get included in the blockvector, free it.
* buildsym.h (struct addrmap): New forward declaration.
(record_block_range): New prototype.
* objfiles.c: #include "addrmap.h".
(objfile_relocate): Relocate the blockvector's address map, if
present.
* dwarf2read.c (dwarf2_record_block_ranges): New function.
(read_func_scope, read_lexical_block_scope): Call it.
* Makefile.in (SFILES): Add addrmap.c.
(addrmap_h): New header dependency variable.
(COMMON_OBS): Add addrmap.o.
(addrmap.o): New rule.l
(block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
* block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
pointer to the block, not its index in the blockvector.
(block_for_pc_sect): Use the returned block, instead of looking it
up ourselves.
* block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
declarations.
* breakpoint.c (resolve_sal_pc): Use returned block, instead of
looking it up ourselves.
* stack.c (print_frame_label_vars): Disable function, which
depends on the block's index.
* buildsym.c (finish_block): Return the block we've built.
* buildsym.h (finish_block): Update prototype.
* defs.h (CORE_ADDR_MAX): New constant.
2007-12-04 23:43:57 +00:00
|
|
|
addrmap.c \
|
2006-11-28 22:10:26 +00:00
|
|
|
auxv.c ax-general.c ax-gdb.c \
|
2003-10-31 19:19:51 +00:00
|
|
|
bcache.c \
|
|
|
|
bfd-target.c \
|
|
|
|
block.c blockframe.c breakpoint.c buildsym.c \
|
2002-09-30 15:57:26 +00:00
|
|
|
c-exp.y c-lang.c c-typeprint.c c-valprint.c \
|
2003-02-20 03:12:46 +00:00
|
|
|
charset.c cli-out.c coffread.c coff-pe-read.c \
|
|
|
|
complaints.c completer.c corefile.c \
|
2003-04-15 David Carlton <carlton@math.stanford.edu>
* Makefile.in (SFILES): Add cp-namespace.c.
(COMMON_OBS): Add cp-namespace.o.
(block.o): Depend on gdb_obstack_h and cp_support_h.
(buildsym.o): Depend on cp_support_h.
(cp-namespace.o): New.
(cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
(dwarf2read.o): Depend on cp_support_h.
* jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
* dwarf2read.c (process_die): Set processing_has_namespace_info,
processing_current_namespace.
(read_namespace): Update processing_current_namespace; check for
anonymous namespaces.
(dwarf2_name): New function.
(dwarf2_extension): Ditto.
* cp-support.h: Update copyright, contributors.
Add inclusion guards.
Add opaque declaration for structs obstack, block, symbol.
(struct using_direct): New struct.
Add declarations for cp_find_first_component,
cp_entire_prefix_len, processing_has_namespace_info,
processing_current_namespace, cp_is_anonymous,
cp_add_using_directive, cp_initialize_namespace,
cp_finalize_namespace, cp_set_block_scope,
cp_scan_for_anonymous_namespaces.
* cp-namespace.c: New file.
* cp-support.c: Update copyright.
Include ctype.h, gdb_assert.h, gdbcmd.h.
New variable maint_cplus_cmd_list.
(cp_find_first_component): New function.
(cp_entire_prefix_len, maint_cplus_command)
(first_component_command, _initialize_cp_support): Ditto.
* buildsym.c: Include cp-support.h.
New variable using_list.
(add_symbol_to_list): Check for anonymous namespaces.
(finish_block): Set block's scope.
(start_symtab): Initialize C++ namespace support.
(end_symtab): Finalize C++ namespace support.
* block.h: Add opaque declarations for structs
block_namespace_info, using_direct, and obstack.
Add declarations for block_set_scope and block_set_using.
(struct block): Add 'language_specific' member.
(BLOCK_NAMESPACE): New macro.
* block.c: Include gdb_obstack.h and cp-support.h.
(struct block_namespace_info): New struct.
(block_set_scope): New function.
(block_set_using, block_initialize_namespace): Ditto.
2003-04-15 David Carlton <carlton@math.stanford.edu>
* gdb.c++/maint.exp: New file.
2003-04-15 23:07:11 +00:00
|
|
|
cp-abi.c cp-support.c cp-namespace.c cp-valprint.c \
|
2010-04-29 14:45:39 +00:00
|
|
|
d-lang.c d-valprint.c \
|
2005-05-12 16:01:08 +00:00
|
|
|
cp-name-parser.y \
|
2003-06-11 David Carlton <carlton@bactrian.org>
* dictionary.h: New.
* dictionary.c: New.
* block.h: Add opaque declaration for struct dictionary.
(struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
'sym' members.
(BLOCK_DICT): New macro.
Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
BLOCK_SHOULD_SORT.
(ALL_BLOCK_SYMBOLS): Update definition.
* Makefile.in (SFILES): Add dictionary.c.
(dictionary_h): New.
(COMMON_OBS): Add dictionary.o.
(dictionary.o): New.
(ada-lang.o): Depend on dictionary_h.
(buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
(stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
(mi-cmd-stack.o): Ditto.
(gdbtk-cmds.o): Update dependencies.
(gdbtk-stack.o): Ditto.
* ada-lang.c: Include dictionary.h.
(symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
(fill_in_ada_prototype, debug_print_block): Ditto.
(ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
'is_sorted'.
* mdebugread.c: Include dictionary.h.
(struct parse_stack): Delete 'maxsyms' member.
(parse_symbol): Update calls to new_block. Delete calls to
shrink_block. Use dictionary methods.
(psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
Update calls to new_symtab. Don't maintain maxsyms data.
(mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
(add_symbol): Just call dict_add_symbol.
(new_symtab): Delete 'maxsyms' argument.
(new_symtab): Update calls to new_block.
(new_block): Delete 'maxsyms' argument; add 'function' argument.
(shrink_block): Delete function.
(fixup_sigtramp): Update call to new_block. Add symbol via
dict_add_symbol.
* jv-lang.c: Include dictionary.h.
(get_java_class_symtab): Set the BLOCK_DICT of the blocks
appropriately. Set class_symtab->free_func. Make sure the
blockvector is big enough to hold two blocks.
(add_class_symtab_symbol): Use dictionary methods.
(free_class_block): New function.
(type_from_class): Replace explicit iteration by
ALL_BLOCK_SYMBOLS.
* symtab.h (struct symtab): Replace 'free_ptr' method by
'free_func'.
* dwarf2read.c (psymtab_to_symtab_1): Delete call to
sort_symtab_syms.
* dwarfread.c (psymtab_to_symtab_1): Delete call to
sort_symtab_syms.
* coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
Include dictionary.h.
(patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
* dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
sort_symtab_syms.
* objfiles.c: Include dictionary.h.
(objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
* buildsym.c: Include dictionary.h.
(finish_block): Use dictionary methods.
(end_symtab): Set free_func to NULL, not free_ptr.
* tracepoint.c: Include dictionary.h.
(add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
(scope_info): Ditto.
* stack.c: Include dictionary.h.
(print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
(print_block_frame_labels, print_frame_arg_vars)
(print_frame_args): Ditto.
* symmisc.c (free_symtab_block): Use dictionary methods.
(dump_symtab): Ditto.
(free_symtab): Replace use of 'free_ptr' by 'free_func'.
Include dictionary.h.
* symfile.h: Delete declarations of sort_block_syms,
sort_symtab_syms.
* symfile.c (sort_block_syms): Delete.
(sort_symtab_syms): Delete.
* symtab.c: Include dictionary.h.
(lookup_block_symbol): Use dictionary iterators.
(find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
(search_symbols, make_symbol_completion_list): Ditto.
(make_symbol_overload_list): Ditto.
* valops.c (value_of_local): Use dict_empty.
Include dictionary.h.
2003-06-11 David Carlton <carlton@bactrian.org>
* generic/gdbtk-stack.c: Include dictionary.h.
(gdb_block_vars): Update use of ALL_BLOCK_SYMBOLS.
(gdb_get_blocks, gdb_get_vars_command): Ditto.
* generic/gdbtk-cmds.c: Include dictionary.h.
(gdb_listfuncs): Update use of ALL_BLOCK_SYMBOLS.
2003-06-11 David Carlton <carlton@bactrian.org>
* mi-cmd-stack.c: Include dictionary.h.
(list_args_or_locals): Update use of ALL_BLOCK_SYMBOLS.
2003-06-11 23:29:49 +00:00
|
|
|
dbxread.c demangle.c dictionary.c disasm.c doublest.c dummy-frame.c \
|
* MAINTAINERS: Remove d10v entry.
* Makefile.in (SFILES): Remove dwarfread.c.
(COMMON_OBS): Remove dwarfread.o.
(gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
(remote-est.o, rom68k-rom.o): Delete.
* NEWS: Mention removal of d10v, target abug, target cpu32bug,
target est, target rom68k, and DWARF 1.
* configure.tgt: Mark d10v as removed.
* dwarf2read.c: Doc update.
* elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
and lnsize.
(elf_locate_sections): Do not set them.
(elf_symfile_read): Do not call dwarf_build_psymtabs.
* symfile.h (dwarf_build_psymtabs): Delete prototype.
* config/m68k/monitor.mt (TDEPFILES): Prune.
* abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
* gdb.texinfo (M68K): Remove obsolete ROM monitors.
* gdbint.texinfo (DWARF 1): Delete section and other dwarfread.c
references.
* gdb.asm/asm-source.exp: Remove d10v case.
* lib/gdb.exp (skip_cplus_tests): Likewise.
* gdb.asm/d10v.inc: Deleted.
2007-03-30 17:21:48 +00:00
|
|
|
dwarf2expr.c dwarf2loc.c dwarf2read.c dwarf2-frame.c \
|
2009-12-23 20:28:44 +00:00
|
|
|
elfread.c environ.c eval.c event-loop.c event-top.c \
|
|
|
|
exceptions.c expprint.c \
|
2010-04-24 13:12:56 +00:00
|
|
|
f-exp.y f-lang.c f-typeprint.c f-valprint.c filesystem.c \
|
|
|
|
findcmd.c findvar.c frame.c frame-base.c frame-unwind.c \
|
2002-09-30 15:57:26 +00:00
|
|
|
gdbarch.c arch-utils.c gdbtypes.c gnu-v2-abi.c gnu-v3-abi.c \
|
2003-04-21 Andrew Cagney <cagney@redhat.com>
* infcall.c: New file.
* infcall.h: New file.
* valarith.c: Include "infcall.h".
* scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
* eval.c, ada-valprint.c, ada-lang.c: Ditto.
* Makefile.in (valarith.o, scm-lang.o): Update dependencies.
(objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
(eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
(SFILES): Add "infcall.c"
(COMMON_OBS): Add "infcall.o".
(infcall.o): Specify dependencies.
* value.h (call_function_by_hand): Delete declaration.
* inferior.h (run_stack_dummy): Delete declaration.
* infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
(run_stack_dummy): Move to "infcall.c", merged into
call_function_by_hand.
* valops.c (call_function_by_hand): Moved to "infcall.c".
(find_function_addr, value_arg_coerce): Ditto.
(unwindonsignal_p, coerce_float_to_double): Ditto.
(_initialize_valops): Move "set/show coerce-float-to-double", and
"set/show unwindonsignal" commands to "infcall.c".
* v850-tdep.c, target.h: Update comments.
* sparc-tdep.c (sparc_fix_call_dummy): Update comments.
* sh-tdep.c (sh_init_extra_frame_info): Update comments.
(sh64_init_extra_frame_info): Update comments.
* mn10300-tdep.c: Update comments.
* mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
* config/sparc/tm-sparc.h: Update comments.
* breakpoint.h: Update comments.
* avr-tdep.c (avr_init_extra_frame_info): Update comments.
* arm-tdep.c: Update comment.
2003-04-21 16:48:41 +00:00
|
|
|
inf-loop.c \
|
|
|
|
infcall.c \
|
|
|
|
infcmd.c inflow.c infrun.c \
|
gdb/
* NEWS: Document inlined function support.
* Makefile.in (SFILES): Add inline-frame.c.
(COMMON_OBS): Add inline-frame.o.
* block.c (contained_in): Rewrite to use lexical nesting.
(block_linkage_function): Skip inlined function blocks.
(block_inlined_p): New.
* block.h (struct block): Update comment.
(block_inlined_p): New prototype.
* blockframe.c (get_frame_block): Handle inlined functions.
(get_frame_function): Do not use block_linkage_function.
(block_innermost_frame): Use get_frame_block and contained_in.
* breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
Skip over inlined functions. Simplify epilogue check.
(bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
Update comments.
(set_momentary_breakpoint): Only accept non-inlined frames.
(watch_command_1): Use frame_unwind_caller_pc and
frame_unwind_caller_id instead of get_prev_frame.
(until_break_command): Likewise. Use get_stack_frame_id.
* buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
* dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
* dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
(read_func_scope, new_symbol): Likewise. Handle arguments specially
for inlined functions without call site information.
(inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
(die_specification): Treat DW_AT_abstract_origin as a specification.
(read_type_die): Handle DW_TAG_inlined_subroutine.
* frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
* frame.c (fprint_frame_id): Print inline depth.
(fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
(skip_inlined_frames, get_stack_frame_id): New.
(frame_unwind_caller_id): Use skip_inlined_frames.
(frame_id_inlined_p): New.
(frame_id_eq): Make the logic match the comments. Add inline_depth
check.
(frame_id_inner): Handle inlined functions.
(frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
(frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
(get_prev_frame_1): Check for inline frames. Split out frame
allocation to get_prev_frame_raw.
(get_prev_frame_raw): New function.
(get_prev_frame): Handle inline frames.
(get_frame_pc): Use frame_unwind_pc.
(get_frame_address_in_block): Skip inlined frames on both sides.
(pc_notcurrent): Delete.
(find_frame_sal): Rewrite to handle inline call sites. Use
get_frame_address_in_block.
(deprecated_update_frame_pc_hack): Make static.
* frame.h: Update comments.
(struct frame_id): Add inline_depth.
(enum frame_type): Add INLINE_FRAME.
(frame_id_inlined_p, get_stack_frame_id): New prototypes.
* gdbthread.h (struct thread_info): Add step_stack_frame_id field.
* infcmd.c (set_step_frame): New function.
(step_once): Use set_step_frame. Handle inlined functions.
(until_next_command): Use set_step_frame.
(finish_backward), finish_forward): Use get_stack_frame_id.
(finish_command): Support inlined functions.
* inferior.h (set_step_info): New prototype.
* infrun.c (RESUME_ALL): Use minus_one_ptid.
(clear_proceed_status): Clear step_stack_frame_id.
(init_wait_for_inferior): Call clear_inline_frame_state.
(init_execution_control_state): Make static.
(set_step_info): New function.
(init_thread_stepping_state): Do not set the symtab or line here.
(stepped_in_from): New function.
(handle_inferior_event): Handle inlined functions. Use set_step_info.
(insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
(struct inferior_status): Add step_stack_frame_id.
(save_inferior_status, restore_inferior_status): Save and restore
step_stack_frame_id.
* inline-frame.c, inline-frame.h: New files.
* minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
* regcache.c (regcache_write_pc): Call reinit_frame_cache.
* s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
* stack.c (frame_show_address): New.
(print_frame_info, print_frame): Use it.
(find_frame_funname): Use get_frame_function. Handle inlined blocks.
(frame_info): Mark inlined functions.
(backtrace_command_1): Use get_current_user_frame.
(print_frame_local_vars, print_frame_label_vars): Update comments.
(return_command): Refuse inlined functions.
* symtab.c (lookup_symbol_aux_local): Stop at inlined function
boundaries.
(find_function_start_sal): Avoid inlined functions.
(completion_list_add_fields): New function.
(default_make_symbol_completion_list): Use it. Use block_static_block
and block_global_block. Check for inlined functions.
(skip_prologue_using_sal): Avoid line number comparison across
inlining.
* symtab.h (struct symbol): Add is_inlined.
(SYMBOL_INLINED): New.
* target.c (target_resume): Call clear_inline_frame_state.
* valops.c (value_of_variable): Check block_inlined_p.
gdb/doc/
* gdb.texinfo (Debugging Optimized Code): New chapter.
(Compiling for Debugging): Reference it. Move some
text to the new section.
gdb/testsuite/
* gdb.base/break.exp: Add an XFAIL for gcc/36748.
* gdb.cp/annota2.exp: Accept frames-invalid in more places.
* gdb.opt/Makefile.in (EXECUTABLES): Update.
* gdb.opt/clobbered-registers-O2.exp: Update to GPL v3.
* gdb.opt/inline-bt.c, gdb.opt/inline-bt.exp,
gdb.opt/inline-cmds.c, gdb.opt/inline-cmds.exp,
gdb.opt/inline-locals.c, gdb.opt/inline-locals.exp,
gdb.opt/inline-markers.c: New files.
* lib/gdb.exp (skip_inline_frame_tests): New function.
(skip_inline_var_tests): New function.
2009-06-28 00:20:24 +00:00
|
|
|
inline-frame.c \
|
2003-02-05 Jim Ingham <jingham@apple.com>
Keith Seitz <keiths@redhat.com>
Elena Zannoni <ezannoni@redhat.com>
Andrew Cagney <ac131313@redhat.com>
* Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
(SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
(SUBDIR_MI_OBS): Add "mi-interp.o".
(SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
(SFILES): Add "interps.c".
(COMMON_OBS): Add "interps.o".
(interps_h, mi_main_h): Define.
(interps.o, cli-interp.o, mi-interp.o): Add dependencies.
(mi-main.o, main.o, event-top.o): Update dependencies.
* cli/cli-interp.c: New file.
* interps.h, interps.c: New files.
* top.c: (gdb_init): Don't install the default interpreter, handed
by captured_main.
* main.c: Include "interps.h".
(interpreter_p): Note that it should malloc'ed.
(captured_command_loop): Call current_interp_command_loop.
(captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
xfree and xstrdup when updating interpreter_p. Install the
default interpreter. Add hack to stop mi1's copyright notice
being encoded.
* event-top.h (gdb_setup_readline): Declare.
(gdb_disable_readline): Declare.
* event-top.c: Include "interps.h".
(display_gdb_prompt): Call current_interp_display_prompt_p.
(gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
gdb_stdlog, and gdb_stdtarg.
(_initialize_event_loop): Don't call gdb_setup_readline.
* cli-out.c (cli_out_set_stream): New function.
* cli-out.h (cli_out_set_stream): Declare.
2003-02-06 01:19:12 +00:00
|
|
|
interps.c \
|
1999-04-16 01:35:26 +00:00
|
|
|
jv-exp.y jv-lang.c jv-valprint.c jv-typeprint.c \
|
2002-09-30 15:57:26 +00:00
|
|
|
language.c linespec.c \
|
|
|
|
m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c \
|
|
|
|
macrotab.c macroexp.c macrocmd.c macroscope.c main.c maint.c \
|
gdb/
2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* Makefile.in (SFILES): Add memory-map.c and xml-support.c.
(memory_map_h, xml_support_h): New.
(target_h): Add vec_h dependency.
(COMMON_OBS): Add memory-map.o and xml-support.o.
(memory-map.o, xml-support.o): New rules.
(remote.o): Update.
* exceptions.h (enum errors): Add XML_PARSE_ERROR.
* infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
* memattr.c (default_mem_attrib): Initialize blocksize.
(target_mem_region_list, mem_use_target)
(target_mem_regions_valid, mem_region_cmp, mem_region_init)
(require_user_regions, require_target_regions)
(invalidate_target_mem_regions): New.
(create_mem_region): Use mem_region_init.
(mem_clear): Move higher.
(lookup_mem_region): Use require_target_regions.
(mem_command): Implement "mem auto".
(mem_info_command): Handle target-supplied regions and flash
attributes.
(mem_enable_command, mem_disable_command, mem_delete_command): Use
require_user_regions.
(_initialize_mem): Mention "mem auto" in help.
* memattr.h (enum mem_access_mode): Add MEM_FLASH.
(struct mem_attrib): Add blocksize.
(invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
prototypes.
* remote.c: Include "memory-map.h".
(PACKET_qXfer_memory_map): New enum value.
(remote_protocol_features): Add qXfer:memory-map:read.
(remote_xfer_partial): Handle memory maps.
(remote_memory_map): New.
(init_remote_ops, init_remote_async_ops): Set to_memory_map.
(_initialize_remote): Register qXfer:memory-map:read.
* target.c (update_current_target): Mention to_memory_map.
(target_memory_map, target_pre_inferior): New.
(target_preopen): Call target_pre_inferior.
* target.h: Include "vec.h".
(enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
(struct target_ops): Add to_memory_map.
(target_memory_map, target_pre_inferior): New prototypes.
* memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
gdb/doc/
2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.texinfo (Memory Region Attributes): Mention target-supplied
memory regions and "mem auto".
2006-09-21 13:54:03 +00:00
|
|
|
mdebugread.c memattr.c mem-break.c minsyms.c mipsread.c memory-map.c \
|
2010-02-28 15:04:13 +00:00
|
|
|
mi/mi-common.c \
|
2002-11-19 15:17:50 +00:00
|
|
|
objc-exp.y objc-lang.c \
|
2008-12-02 07:57:38 +00:00
|
|
|
objfiles.c osabi.c observer.c osdata.c \
|
2010-11-05 14:31:30 +00:00
|
|
|
opencl-lang.c \
|
2002-09-30 15:57:26 +00:00
|
|
|
p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c printcmd.c \
|
2010-05-28 18:50:35 +00:00
|
|
|
proc-service.list progspace.c \
|
gdb
* xcoffread.c: Include psymtab.h.
(xcoff_sym_fns): Update.
* symtab.h (struct partial_symbol): Remove.
(PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
(struct partial_symtab): Remove.
(PSYMTAB_TO_SYMTAB): Remove.
(lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
(find_pc_sect_psymtab): Remove.
(find_pc_sect_symtab_via_partial): Declare.
(find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
(find_main_psymtab): Remove.
(find_main_filename): Declare.
(fixup_psymbol_section): Remove.
(fixup_section): Declare.
* symtab.c: Include psymtab.h.
(lookup_symtab): Use lookup_symtab method.
(lookup_partial_symtab): Remove.
(find_pc_sect_psymtab_closer): Remove.
(find_pc_sect_psymtab): Remove.
(find_pc_sect_symtab_via_partial): New function.
(find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
(fixup_section): No longer static.
(fixup_psymbol_section): Remove.
(lookup_symbol_aux): Use lookup_symbol_aux_quick.
(lookup_global_symbol_from_objfile): Likewise.
(lookup_symbol_aux_psymtabs): Remove.
(lookup_symbol_aux_quick): New function.
(lookup_symbol_global): Use lookup_symbol_aux_quick.
(lookup_partial_symbol): Remove.
(basic_lookup_transparent_type_quick): New function.
(basic_lookup_transparent_type): Use it.
(find_main_psymtab): Remove.
(find_main_filename): New function.
(find_pc_sect_symtab): Use find_pc_sect_symtab method.
(find_line_symtab): Use expand_symtabs_with_filename method.
(output_partial_symbol_filename): New function.
(sources_info): Use map_partial_symbol_filenames.
(struct search_symbols_data): New type.
(search_symbols_file_matches): New function.
(search_symbols_name_matches): Likewise.
(search_symbols): Use expand_symtabs_matching method.
(struct add_name_data): Rename from add_macro_name_data.
(add_macro_name): Update.
(add_partial_symbol_name): New function.
(default_make_symbol_completion_list): Use
map_partial_symbol_names.
(struct add_partial_symbol_name): New type.
(maybe_add_partial_symtab_filename): New function.
(make_source_files_completion_list): Use
map_partial_symbol_filenames.
(expand_line_sal): Use expand_symtabs_with_filename method.
* symmisc.c: Include psymtab.h.
(print_objfile_statistics): Use print_stats method.
(dump_objfile): Use dump method.
(dump_psymtab, maintenance_print_psymbols)
(maintenance_info_psymtabs, maintenance_check_symtabs)
(extend_psymbol_list): Remove.
* symfile.h (struct quick_symbol_functions): New struct.
(struct sym_fns) <qf>: New field.
(sort_pst_symbols): Remove.
(increment_reading_symtab): Declare.
* symfile.c: Include psymtab.h.
(compare_psymbols, sort_pst_symbols): Remove.
(psymtab_to_symtab): Remove.
(increment_reading_symtab): New function.
(symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
method.
(set_initial_language): Use find_main_filename.
(allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
(free_named_symtabs): Remove unused code.
(start_psymtab_common, add_psymbol_to_bcache)
(append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
Remove.
* stack.c: Include psymtab.h, symfile.h.
(backtrace_command_1): Use find_pc_sect_symtab_via_partial.
* source.h (psymtab_to_fullname): Don't declare.
* source.c: Include psymtab.h.
(select_source_symtab): Use find_last_source_symtab method.
(forget_cached_source_info): Use forget_cached_source_info
method.
(find_and_open_source): No longer static.
(psymtab_to_fullname): Remove.
* somread.c: Include psymtab.h.
(som_sym_fns): Update.
* psympriv.h: New file.
* psymtab.h: New file.
* psymtab.c: New file.
* objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
(ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
* objfiles.c: Include psymtab.h.
(objfile_relocate1): Use relocate method.
(objfile_has_partial_symbols): Use has_symbols method.
* mipsread.c: Include psymtab.h.
(ecoff_sym_fns): Update.
* mi/mi-cmd-file.c: Include psymtab.h.
(print_partial_file_name): New function.
(mi_cmd_file_list_exec_source_files): Use
map_partial_symbol_filenames.
* mdebugread.c: Include psympriv.h.
* machoread.c: Include psympriv.h.
(macho_sym_fns): Update.
* m2-exp.y (yylex): Use lookup_symtab.
* elfread.c: Include psympriv.h.
(elf_sym_fns): Update.
* dwarf2read.c: Include psympriv.h.
* dbxread.c: Include psympriv.h.
(aout_sym_fns): Update.
* cp-support.c: Include psymtab.h.
(read_in_psymtabs): Remove.
(make_symbol_overload_list_qualified): Use
expand_symtabs_for_function method.
* coffread.c: Include psympriv.h.
(coff_sym_fns): Update.
* blockframe.c: Include psymtab.h.
(find_pc_partial_function): Use find_pc_sect_symtab method.
* ada-lang.h (ada_update_initial_language): Update.
* ada-lang.c: Include psymtab.h.
(ada_update_initial_language): Remove 'main_pst' argument.
(ada_lookup_partial_symbol): Remove.
(struct ada_psym_data): New type.
(ada_add_psyms): New function.
(ada_add_non_local_symbols): Use map_ada_symtabs method.
(struct add_partial_datum): New type.
(ada_add_partial_symbol_completions): New function.
(ada_make_symbol_completion_list): Use map_partial_symbol_names.
(ada_exception_support_info_sniffer): Update.
* Makefile.in (SFILES): Add psymtab.c.
(COMMON_OBS): Add psymtab.o.
(HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
gdb/doc
* gdbint.texinfo (Symbol Handling): Update.
2010-03-10 18:20:08 +00:00
|
|
|
prologue-value.c psymtab.c \
|
2008-10-17 19:43:47 +00:00
|
|
|
regcache.c reggroups.c remote.c remote-fileio.c reverse.c \
|
2003-01-27 21:41:41 +00:00
|
|
|
sentinel-frame.c \
|
* solib.h (CLEAR_SOLIB, SOLIB_ADD)
(SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
(SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
(DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
(IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
comments.
* breakpoint.c: Include "solib.h".
(insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
solib_address.
(remove_solib_event_breakpoints, create_solib_event_breakpoint)
(disable_breakpoints_in_shlibs)
(disable_breakpoints_in_unloaded_shlib)
(re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
defined. If PC_SOLIB isn't defined, call solib_address.
(_initialize_breakpoint): Unconditionally install observer.
* corelow.c: Include "solib.h".
[SOLIB_ADD] (solib_add_stub): Remove prototype.
(core_close) [!CLEAR_SOLIB]: Call clear_solib.
(solib_add_stub) [!SOLIB_ADD] Call solib_add.
(core_open): Unconditionally call solib_add_stub.
* fork-child.c: Include "solib.h".
(fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
solib_create_inferior_hook.
* infcmd.c: Include "solib.h".
(attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
call re_enable_breakpoints_in_shlibs.
* infrun.c: Include "solib.h".
(SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
defined.
(stop_on_solib_events, show_stop_on_solib_events): Include
unconditionally.
(follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
solib_create_inferior_hook.
(handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
[!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
(_initialize_infrun): Unconditionally add "stop_on_solib-events"
command.
* remote.c: Include "solib.h".
(remote_open_1): Unconditionally call no_shared_libraries.
[!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
* stack.c: Include "solib.h".
(print_frame) [!PC_SOLIB] Call shlib_for_pc.
* xcoffsolib.c (no_shared_libraries): Remove function.
* Makefile.in (SFILES): Add solib.c.
(ALLDEPFILES): Remove solib.c.
(COMMON_OBS): Add solib.o.
(breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
(remote.o, stack.o): Update dependencies.
2005-05-12 20:21:18 +00:00
|
|
|
serial.c ser-base.c ser-unix.c \
|
2010-06-15 17:57:38 +00:00
|
|
|
solib.c solib-target.c source.c \
|
2004-05-02 10:14:02 +00:00
|
|
|
stabsread.c stack.c std-regs.c symfile.c symfile-mem.c symmisc.c \
|
|
|
|
symtab.c \
|
2006-11-28 22:10:26 +00:00
|
|
|
target.c target-descriptions.c target-memory.c \
|
|
|
|
thread.c top.c tracepoint.c \
|
2003-06-08 16:09:46 +00:00
|
|
|
trad-frame.c \
|
2004-03-23 14:12:30 +00:00
|
|
|
tramp-frame.c \
|
2003-06-08 16:09:46 +00:00
|
|
|
typeprint.c \
|
2002-09-30 15:57:26 +00:00
|
|
|
ui-out.c utils.c ui-file.h ui-file.c \
|
2003-07-07 14:36:58 +00:00
|
|
|
user-regs.c \
|
2006-09-21 13:47:56 +00:00
|
|
|
valarith.c valops.c valprint.c value.c varobj.c vec.c \
|
gdb/
2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* Makefile.in (SFILES): Add memory-map.c and xml-support.c.
(memory_map_h, xml_support_h): New.
(target_h): Add vec_h dependency.
(COMMON_OBS): Add memory-map.o and xml-support.o.
(memory-map.o, xml-support.o): New rules.
(remote.o): Update.
* exceptions.h (enum errors): Add XML_PARSE_ERROR.
* infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
* memattr.c (default_mem_attrib): Initialize blocksize.
(target_mem_region_list, mem_use_target)
(target_mem_regions_valid, mem_region_cmp, mem_region_init)
(require_user_regions, require_target_regions)
(invalidate_target_mem_regions): New.
(create_mem_region): Use mem_region_init.
(mem_clear): Move higher.
(lookup_mem_region): Use require_target_regions.
(mem_command): Implement "mem auto".
(mem_info_command): Handle target-supplied regions and flash
attributes.
(mem_enable_command, mem_disable_command, mem_delete_command): Use
require_user_regions.
(_initialize_mem): Mention "mem auto" in help.
* memattr.h (enum mem_access_mode): Add MEM_FLASH.
(struct mem_attrib): Add blocksize.
(invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
prototypes.
* remote.c: Include "memory-map.h".
(PACKET_qXfer_memory_map): New enum value.
(remote_protocol_features): Add qXfer:memory-map:read.
(remote_xfer_partial): Handle memory maps.
(remote_memory_map): New.
(init_remote_ops, init_remote_async_ops): Set to_memory_map.
(_initialize_remote): Register qXfer:memory-map:read.
* target.c (update_current_target): Mention to_memory_map.
(target_memory_map, target_pre_inferior): New.
(target_preopen): Call target_pre_inferior.
* target.h: Include "vec.h".
(enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
(struct target_ops): Add to_memory_map.
(target_memory_map, target_pre_inferior): New prototypes.
* memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
gdb/doc/
2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.texinfo (Memory Region Attributes): Mention target-supplied
memory regions and "mem auto".
2006-09-21 13:54:03 +00:00
|
|
|
wrapper.c \
|
2008-09-22 15:12:19 +00:00
|
|
|
xml-tdesc.c xml-support.c \
|
2009-04-30 02:58:37 +00:00
|
|
|
inferior.c gdb_usleep.c \
|
2009-10-26 18:30:39 +00:00
|
|
|
record.c gcore.c \
|
2009-09-15 03:30:08 +00:00
|
|
|
jit.c \
|
|
|
|
xml-syscall.c \
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# Header files that need to have srcdir added. Note that in the cases
|
|
|
|
# where we use a macro like $(gdbcmd_h), things are carefully arranged
|
|
|
|
# so that each .h file is listed exactly once (M-x tags-search works
|
|
|
|
# wrong if TAGS has files twice). Because this is tricky to get
|
|
|
|
# right, it is probably easiest just to list .h files here directly.
|
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
HFILES_NO_SRCDIR = osf-share/cma_debug_client.h \
|
|
|
|
osf-share/HP800/cma_thread_io.h osf-share/cma_sequence.h \
|
|
|
|
osf-share/cma_mutex.h osf-share/cma_semaphore_defs.h \
|
|
|
|
osf-share/cma_list.h osf-share/cma_handle.h osf-share/cma_stack.h \
|
|
|
|
osf-share/cma_util.h osf-share/RIOS/cma_thread_io.h \
|
|
|
|
osf-share/cma_errors.h osf-share/cma_tcb_defs.h osf-share/cma_attr.h \
|
|
|
|
osf-share/cma_stack_int.h osf-share/cma_init.h \
|
|
|
|
osf-share/cma_deb_core.h osf-share/AT386/cma_thread_io.h \
|
|
|
|
osf-share/cma_sched.h proc-utils.h arm-tdep.h ax-gdb.h ppcnbsd-tdep.h \
|
2010-02-02 23:16:53 +00:00
|
|
|
cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
|
2008-10-02 17:39:08 +00:00
|
|
|
exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
i386bsd-nat.h xml-support.h xml-tdesc.h alphabsd-tdep.h gdb_obstack.h \
|
|
|
|
ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.h \
|
2010-04-29 14:45:39 +00:00
|
|
|
c-lang.h d-lang.h frame.h event-loop.h block.h cli/cli-setshow.h \
|
2008-10-28 20:50:18 +00:00
|
|
|
cli/cli-decode.h cli/cli-cmds.h cli/cli-dump.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
cli/cli-script.h macrotab.h symtab.h version.h gnulib/wchar.in.h \
|
2010-07-28 18:32:33 +00:00
|
|
|
gnulib/string.in.h gnulib/str-two-way.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
gnulib/stdint.in.h remote.h gdb.h sparc-nat.h gdbserver/win32-low.h \
|
|
|
|
gdbserver/i387-fp.h gdbserver/server.h gdbserver/terminal.h \
|
|
|
|
gdbserver/mem-break.h gdbserver/wincecompat.h gdbserver/target.h \
|
|
|
|
gdbserver/linux-low.h gdbserver/gdb_proc_service.h \
|
|
|
|
gdbserver/regcache.h gdbthread.h dwarf2-frame.h nbsd-nat.h dcache.h \
|
|
|
|
amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
|
|
|
|
gdbarch.h bsd-uthread.h gdb_thread_db.h gdb_stat.h memory-map.h \
|
|
|
|
mdebugread.h m88k-tdep.h stabsread.h hppa-linux-offsets.h linux-fork.h \
|
2010-11-02 18:55:54 +00:00
|
|
|
ser-unix.h inf-ptrace.h terminal.h ui-out.h frame-base.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
f-lang.h dwarf2loc.h value.h sparc-tdep.h defs.h target-descriptions.h \
|
2008-10-02 17:39:08 +00:00
|
|
|
objfiles.h vec.h disasm.h mips-tdep.h ser-base.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
gdb_curses.h bfd-target.h memattr.h inferior.h ax.h dummy-frame.h \
|
|
|
|
inflow.h fbsd-nat.h libunwind-frame.h completer.h inf-ttrace.h \
|
2009-10-21 14:14:57 +00:00
|
|
|
solib-target.h gdb_vfork.h alpha-tdep.h dwarf2expr.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
m2-lang.h stack.h charset.h addrmap.h command.h solist.h source.h \
|
|
|
|
target.h prologue-value.h cp-abi.h tui/tui-hooks.h tui/tui.h \
|
|
|
|
tui/tui-file.h tui/tui-command.h tui/tui-disasm.h tui/tui-wingeneral.h \
|
|
|
|
tui/tui-windata.h tui/tui-data.h tui/tui-win.h tui/tui-stack.h \
|
|
|
|
tui/tui-winsource.h tui/tui-regs.h tui/tui-io.h tui/tui-layout.h \
|
|
|
|
tui/tui-source.h xcoffsolib.h sol2-tdep.h gregset.h sh-tdep.h \
|
|
|
|
expression.h score-tdep.h gdb_select.h ser-tcp.h buildsym.h valprint.h \
|
|
|
|
call-cmds.h typeprint.h mi/mi-getopt.h mi/mi-parse.h mi/mi-console.h \
|
|
|
|
mi/mi-out.h mi/mi-main.h mi/mi-common.h mi/mi-cmds.h linux-nat.h \
|
|
|
|
complaints.h gdb_proc_service.h gdb_regex.h xtensa-tdep.h inf-loop.h \
|
|
|
|
gdb_wait.h gdb_assert.h solib.h ppc-tdep.h cp-support.h glibc-tdep.h \
|
|
|
|
interps.h auxv.h gdbcmd.h tramp-frame.h mipsnbsd-tdep.h \
|
|
|
|
amd64-linux-tdep.h linespec.h i387-tdep.h mn10300-tdep.h \
|
|
|
|
sparc64-tdep.h monitor.h ppcobsd-tdep.h srec.h solib-pa64.h \
|
|
|
|
coff-pe-read.h parser-defs.h gdb_ptrace.h mips-linux-tdep.h \
|
|
|
|
m68k-tdep.h spu-tdep.h jv-lang.h environ.h solib-irix.h amd64-tdep.h \
|
|
|
|
doublest.h regset.h hppa-tdep.h ppc-linux-tdep.h rs6000-tdep.h \
|
|
|
|
gdb_locale.h gdb_dirent.h arch-utils.h trad-frame.h gnu-nat.h \
|
2009-01-30 22:14:52 +00:00
|
|
|
language.h nbsd-tdep.h wrapper.h solib-svr4.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
macroexp.h ui-file.h regcache.h gdb_string.h tracepoint.h i386-tdep.h \
|
2010-11-02 18:55:54 +00:00
|
|
|
inf-child.h p-lang.h event-top.h gdbtypes.h user-regs.h \
|
2009-06-30 22:36:27 +00:00
|
|
|
regformats/regdef.h config/alpha/nm-osf3.h config/i386/nm-i386gnu.h \
|
2010-06-11 12:44:15 +00:00
|
|
|
config/i386/nm-fbsd.h \
|
2009-06-30 22:36:27 +00:00
|
|
|
config/nm-nto.h config/sparc/nm-sol2.h config/nm-linux.h \
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
config/rs6000/nm-rs6000.h top.h bsd-kvm.h gdb-stabs.h reggroups.h \
|
|
|
|
annotate.h sim-regno.h dictionary.h dfp.h main.h frame-unwind.h \
|
|
|
|
remote-fileio.h i386-linux-tdep.h vax-tdep.h objc-lang.h \
|
2009-03-24 01:37:48 +00:00
|
|
|
sentinel-frame.h bcache.h symfile.h windows-tdep.h linux-tdep.h \
|
gdb
* xcoffread.c: Include psymtab.h.
(xcoff_sym_fns): Update.
* symtab.h (struct partial_symbol): Remove.
(PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
(struct partial_symtab): Remove.
(PSYMTAB_TO_SYMTAB): Remove.
(lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
(find_pc_sect_psymtab): Remove.
(find_pc_sect_symtab_via_partial): Declare.
(find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
(find_main_psymtab): Remove.
(find_main_filename): Declare.
(fixup_psymbol_section): Remove.
(fixup_section): Declare.
* symtab.c: Include psymtab.h.
(lookup_symtab): Use lookup_symtab method.
(lookup_partial_symtab): Remove.
(find_pc_sect_psymtab_closer): Remove.
(find_pc_sect_psymtab): Remove.
(find_pc_sect_symtab_via_partial): New function.
(find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
(fixup_section): No longer static.
(fixup_psymbol_section): Remove.
(lookup_symbol_aux): Use lookup_symbol_aux_quick.
(lookup_global_symbol_from_objfile): Likewise.
(lookup_symbol_aux_psymtabs): Remove.
(lookup_symbol_aux_quick): New function.
(lookup_symbol_global): Use lookup_symbol_aux_quick.
(lookup_partial_symbol): Remove.
(basic_lookup_transparent_type_quick): New function.
(basic_lookup_transparent_type): Use it.
(find_main_psymtab): Remove.
(find_main_filename): New function.
(find_pc_sect_symtab): Use find_pc_sect_symtab method.
(find_line_symtab): Use expand_symtabs_with_filename method.
(output_partial_symbol_filename): New function.
(sources_info): Use map_partial_symbol_filenames.
(struct search_symbols_data): New type.
(search_symbols_file_matches): New function.
(search_symbols_name_matches): Likewise.
(search_symbols): Use expand_symtabs_matching method.
(struct add_name_data): Rename from add_macro_name_data.
(add_macro_name): Update.
(add_partial_symbol_name): New function.
(default_make_symbol_completion_list): Use
map_partial_symbol_names.
(struct add_partial_symbol_name): New type.
(maybe_add_partial_symtab_filename): New function.
(make_source_files_completion_list): Use
map_partial_symbol_filenames.
(expand_line_sal): Use expand_symtabs_with_filename method.
* symmisc.c: Include psymtab.h.
(print_objfile_statistics): Use print_stats method.
(dump_objfile): Use dump method.
(dump_psymtab, maintenance_print_psymbols)
(maintenance_info_psymtabs, maintenance_check_symtabs)
(extend_psymbol_list): Remove.
* symfile.h (struct quick_symbol_functions): New struct.
(struct sym_fns) <qf>: New field.
(sort_pst_symbols): Remove.
(increment_reading_symtab): Declare.
* symfile.c: Include psymtab.h.
(compare_psymbols, sort_pst_symbols): Remove.
(psymtab_to_symtab): Remove.
(increment_reading_symtab): New function.
(symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
method.
(set_initial_language): Use find_main_filename.
(allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
(free_named_symtabs): Remove unused code.
(start_psymtab_common, add_psymbol_to_bcache)
(append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
Remove.
* stack.c: Include psymtab.h, symfile.h.
(backtrace_command_1): Use find_pc_sect_symtab_via_partial.
* source.h (psymtab_to_fullname): Don't declare.
* source.c: Include psymtab.h.
(select_source_symtab): Use find_last_source_symtab method.
(forget_cached_source_info): Use forget_cached_source_info
method.
(find_and_open_source): No longer static.
(psymtab_to_fullname): Remove.
* somread.c: Include psymtab.h.
(som_sym_fns): Update.
* psympriv.h: New file.
* psymtab.h: New file.
* psymtab.c: New file.
* objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
(ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
* objfiles.c: Include psymtab.h.
(objfile_relocate1): Use relocate method.
(objfile_has_partial_symbols): Use has_symbols method.
* mipsread.c: Include psymtab.h.
(ecoff_sym_fns): Update.
* mi/mi-cmd-file.c: Include psymtab.h.
(print_partial_file_name): New function.
(mi_cmd_file_list_exec_source_files): Use
map_partial_symbol_filenames.
* mdebugread.c: Include psympriv.h.
* machoread.c: Include psympriv.h.
(macho_sym_fns): Update.
* m2-exp.y (yylex): Use lookup_symtab.
* elfread.c: Include psympriv.h.
(elf_sym_fns): Update.
* dwarf2read.c: Include psympriv.h.
* dbxread.c: Include psympriv.h.
(aout_sym_fns): Update.
* cp-support.c: Include psymtab.h.
(read_in_psymtabs): Remove.
(make_symbol_overload_list_qualified): Use
expand_symtabs_for_function method.
* coffread.c: Include psympriv.h.
(coff_sym_fns): Update.
* blockframe.c: Include psymtab.h.
(find_pc_partial_function): Use find_pc_sect_symtab method.
* ada-lang.h (ada_update_initial_language): Update.
* ada-lang.c: Include psymtab.h.
(ada_update_initial_language): Remove 'main_pst' argument.
(ada_lookup_partial_symbol): Remove.
(struct ada_psym_data): New type.
(ada_add_psyms): New function.
(ada_add_non_local_symbols): Use map_ada_symtabs method.
(struct add_partial_datum): New type.
(ada_add_partial_symbol_completions): New function.
(ada_make_symbol_completion_list): Use map_partial_symbol_names.
(ada_exception_support_info_sniffer): Update.
* Makefile.in (SFILES): Add psymtab.c.
(COMMON_OBS): Add psymtab.o.
(HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
gdb/doc
* gdbint.texinfo (Symbol Handling): Update.
2010-03-10 18:20:08 +00:00
|
|
|
gdb_usleep.h jit.h xml-syscall.h ada-operator.inc microblaze-tdep.h \
|
2010-09-13 17:59:59 +00:00
|
|
|
psymtab.h psympriv.h progspace.h
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# Header files that already have srcdir in them, or which are in objdir.
|
|
|
|
|
2002-06-24 04:47:09 +00:00
|
|
|
HFILES_WITH_SRCDIR = ../bfd/bfd.h
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# GDB "info" files, which should be included in their entirety
|
|
|
|
INFOFILES = gdb.info*
|
|
|
|
|
|
|
|
REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar
|
|
|
|
|
|
|
|
# {X,T,NAT}DEPFILES are something of a pain in that it's hard to
|
|
|
|
# default their values the way we do for SER_HARDWIRE; in the future
|
|
|
|
# maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
|
|
|
|
# variables analogous to SER_HARDWIRE which get defaulted in this
|
|
|
|
# Makefile.in
|
|
|
|
|
2007-11-17 00:54:18 +00:00
|
|
|
DEPFILES = $(TARGET_OBS) $(SER_HARDWIRE) $(NATDEPFILES) \
|
2005-09-26 21:45:37 +00:00
|
|
|
$(REMOTE_OBS) $(SIM_OBS)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS)
|
2004-02-15 14:49:23 +00:00
|
|
|
# Don't include YYFILES (*.c) because we already include *.y in SFILES,
|
1999-04-16 01:35:26 +00:00
|
|
|
# and it's more useful to see it in the .y file.
|
|
|
|
TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
|
2005-09-26 21:45:37 +00:00
|
|
|
$(CONFIG_SRCS)
|
1999-04-16 01:35:26 +00:00
|
|
|
TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
|
|
|
|
|
2005-09-26 21:45:37 +00:00
|
|
|
COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
|
2004-02-08 21:42:06 +00:00
|
|
|
version.o \
|
2004-02-08 04:25:07 +00:00
|
|
|
annotate.o \
|
Support lexical blocks and function bodies that occupy
non-contiguous address ranges.
* addrmap.c, addrmap.h: New files.
* block.h (struct addrmap): New forward declaration.
(struct blockvector): New member, 'map'.
(BLOCKVECTOR_MAP): New accessor macro.
* block.c: #include "addrmap.h"
(blockvector_for_pc_sect): If the blockvector we've found has
an address map, use it instead of searching the blocks.
* buildsym.c: #include "addrmap.h"
(pending_addrmap_obstack, pending_addrmap_interesting): New static
variables.
(really_free_pendings): If we have a pending addrmap, free it too.
(record_block_range): New function.
(make_blockvector): If we have an interesting pending addrmap,
record it in the new blockvector.
(start_symtab, buildsym_init): Assert that there is no pending
addrmap now; we should have cleaned up any addrmaps we'd built
previously.
(end_symtab): If there is a pending addrmap left over that didn't
get included in the blockvector, free it.
* buildsym.h (struct addrmap): New forward declaration.
(record_block_range): New prototype.
* objfiles.c: #include "addrmap.h".
(objfile_relocate): Relocate the blockvector's address map, if
present.
* dwarf2read.c (dwarf2_record_block_ranges): New function.
(read_func_scope, read_lexical_block_scope): Call it.
* Makefile.in (SFILES): Add addrmap.c.
(addrmap_h): New header dependency variable.
(COMMON_OBS): Add addrmap.o.
(addrmap.o): New rule.l
(block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
* block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
pointer to the block, not its index in the blockvector.
(block_for_pc_sect): Use the returned block, instead of looking it
up ourselves.
* block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
declarations.
* breakpoint.c (resolve_sal_pc): Use returned block, instead of
looking it up ourselves.
* stack.c (print_frame_label_vars): Disable function, which
depends on the block's index.
* buildsym.c (finish_block): Return the block we've built.
* buildsym.h (finish_block): Update prototype.
* defs.h (CORE_ADDR_MAX): New constant.
2007-12-04 23:43:57 +00:00
|
|
|
addrmap.o \
|
2004-02-01 22:35:08 +00:00
|
|
|
auxv.o \
|
2003-10-31 19:19:51 +00:00
|
|
|
bfd-target.o \
|
|
|
|
blockframe.o breakpoint.o findvar.o regcache.o \
|
2007-10-25 17:52:32 +00:00
|
|
|
charset.o disasm.o dummy-frame.o dfp.o \
|
2004-11-09 20:41:57 +00:00
|
|
|
source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o \
|
gdb
* xcoffread.c: Include psymtab.h.
(xcoff_sym_fns): Update.
* symtab.h (struct partial_symbol): Remove.
(PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
(struct partial_symtab): Remove.
(PSYMTAB_TO_SYMTAB): Remove.
(lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
(find_pc_sect_psymtab): Remove.
(find_pc_sect_symtab_via_partial): Declare.
(find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
(find_main_psymtab): Remove.
(find_main_filename): Declare.
(fixup_psymbol_section): Remove.
(fixup_section): Declare.
* symtab.c: Include psymtab.h.
(lookup_symtab): Use lookup_symtab method.
(lookup_partial_symtab): Remove.
(find_pc_sect_psymtab_closer): Remove.
(find_pc_sect_psymtab): Remove.
(find_pc_sect_symtab_via_partial): New function.
(find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
(fixup_section): No longer static.
(fixup_psymbol_section): Remove.
(lookup_symbol_aux): Use lookup_symbol_aux_quick.
(lookup_global_symbol_from_objfile): Likewise.
(lookup_symbol_aux_psymtabs): Remove.
(lookup_symbol_aux_quick): New function.
(lookup_symbol_global): Use lookup_symbol_aux_quick.
(lookup_partial_symbol): Remove.
(basic_lookup_transparent_type_quick): New function.
(basic_lookup_transparent_type): Use it.
(find_main_psymtab): Remove.
(find_main_filename): New function.
(find_pc_sect_symtab): Use find_pc_sect_symtab method.
(find_line_symtab): Use expand_symtabs_with_filename method.
(output_partial_symbol_filename): New function.
(sources_info): Use map_partial_symbol_filenames.
(struct search_symbols_data): New type.
(search_symbols_file_matches): New function.
(search_symbols_name_matches): Likewise.
(search_symbols): Use expand_symtabs_matching method.
(struct add_name_data): Rename from add_macro_name_data.
(add_macro_name): Update.
(add_partial_symbol_name): New function.
(default_make_symbol_completion_list): Use
map_partial_symbol_names.
(struct add_partial_symbol_name): New type.
(maybe_add_partial_symtab_filename): New function.
(make_source_files_completion_list): Use
map_partial_symbol_filenames.
(expand_line_sal): Use expand_symtabs_with_filename method.
* symmisc.c: Include psymtab.h.
(print_objfile_statistics): Use print_stats method.
(dump_objfile): Use dump method.
(dump_psymtab, maintenance_print_psymbols)
(maintenance_info_psymtabs, maintenance_check_symtabs)
(extend_psymbol_list): Remove.
* symfile.h (struct quick_symbol_functions): New struct.
(struct sym_fns) <qf>: New field.
(sort_pst_symbols): Remove.
(increment_reading_symtab): Declare.
* symfile.c: Include psymtab.h.
(compare_psymbols, sort_pst_symbols): Remove.
(psymtab_to_symtab): Remove.
(increment_reading_symtab): New function.
(symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
method.
(set_initial_language): Use find_main_filename.
(allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
(free_named_symtabs): Remove unused code.
(start_psymtab_common, add_psymbol_to_bcache)
(append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
Remove.
* stack.c: Include psymtab.h, symfile.h.
(backtrace_command_1): Use find_pc_sect_symtab_via_partial.
* source.h (psymtab_to_fullname): Don't declare.
* source.c: Include psymtab.h.
(select_source_symtab): Use find_last_source_symtab method.
(forget_cached_source_info): Use forget_cached_source_info
method.
(find_and_open_source): No longer static.
(psymtab_to_fullname): Remove.
* somread.c: Include psymtab.h.
(som_sym_fns): Update.
* psympriv.h: New file.
* psymtab.h: New file.
* psymtab.c: New file.
* objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
(ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
* objfiles.c: Include psymtab.h.
(objfile_relocate1): Use relocate method.
(objfile_has_partial_symbols): Use has_symbols method.
* mipsread.c: Include psymtab.h.
(ecoff_sym_fns): Update.
* mi/mi-cmd-file.c: Include psymtab.h.
(print_partial_file_name): New function.
(mi_cmd_file_list_exec_source_files): Use
map_partial_symbol_filenames.
* mdebugread.c: Include psympriv.h.
* machoread.c: Include psympriv.h.
(macho_sym_fns): Update.
* m2-exp.y (yylex): Use lookup_symtab.
* elfread.c: Include psympriv.h.
(elf_sym_fns): Update.
* dwarf2read.c: Include psympriv.h.
* dbxread.c: Include psympriv.h.
(aout_sym_fns): Update.
* cp-support.c: Include psymtab.h.
(read_in_psymtabs): Remove.
(make_symbol_overload_list_qualified): Use
expand_symtabs_for_function method.
* coffread.c: Include psympriv.h.
(coff_sym_fns): Update.
* blockframe.c: Include psymtab.h.
(find_pc_partial_function): Use find_pc_sect_symtab method.
* ada-lang.h (ada_update_initial_language): Update.
* ada-lang.c: Include psymtab.h.
(ada_update_initial_language): Remove 'main_pst' argument.
(ada_lookup_partial_symbol): Remove.
(struct ada_psym_data): New type.
(ada_add_psyms): New function.
(ada_add_non_local_symbols): Use map_ada_symtabs method.
(struct add_partial_datum): New type.
(ada_add_partial_symbol_completions): New function.
(ada_make_symbol_completion_list): Use map_partial_symbol_names.
(ada_exception_support_info_sniffer): Update.
* Makefile.in (SFILES): Add psymtab.c.
(COMMON_OBS): Add psymtab.o.
(HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
gdb/doc
* gdbint.texinfo (Symbol Handling): Update.
2010-03-10 18:20:08 +00:00
|
|
|
block.o symtab.o psymtab.o symfile.o symmisc.o linespec.o dictionary.o \
|
2003-04-21 Andrew Cagney <cagney@redhat.com>
* infcall.c: New file.
* infcall.h: New file.
* valarith.c: Include "infcall.h".
* scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
* eval.c, ada-valprint.c, ada-lang.c: Ditto.
* Makefile.in (valarith.o, scm-lang.o): Update dependencies.
(objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
(eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
(SFILES): Add "infcall.c"
(COMMON_OBS): Add "infcall.o".
(infcall.o): Specify dependencies.
* value.h (call_function_by_hand): Delete declaration.
* inferior.h (run_stack_dummy): Delete declaration.
* infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
(run_stack_dummy): Move to "infcall.c", merged into
call_function_by_hand.
* valops.c (call_function_by_hand): Moved to "infcall.c".
(find_function_addr, value_arg_coerce): Ditto.
(unwindonsignal_p, coerce_float_to_double): Ditto.
(_initialize_valops): Move "set/show coerce-float-to-double", and
"set/show unwindonsignal" commands to "infcall.c".
* v850-tdep.c, target.h: Update comments.
* sparc-tdep.c (sparc_fix_call_dummy): Update comments.
* sh-tdep.c (sh_init_extra_frame_info): Update comments.
(sh64_init_extra_frame_info): Update comments.
* mn10300-tdep.c: Update comments.
* mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
* config/sparc/tm-sparc.h: Update comments.
* breakpoint.h: Update comments.
* avr-tdep.c (avr_init_extra_frame_info): Update comments.
* arm-tdep.c: Update comment.
2003-04-21 16:48:41 +00:00
|
|
|
infcall.o \
|
|
|
|
infcmd.o infrun.o \
|
2000-07-07 Michael Snyder <msnyder@cleaver.cygnus.com>
* findvar.c (_initialize_findvar, build_findvar, write_fp, read_fp,
generic_target_write_fp, generic_target_read_fp, write_sp, read_sp,
generic_target_write_sp, generic_target_read_sp, write_pc, read_pc,
generic_target_write_pc, generic_target_read_pc, write_pc_pid,
read_pc_pid, supply_register, write_register_pid, write_register,
read_register_pid, read_register, write_register_bytes,
read_register_bytes, write_register_gen, read_register_gen,
registers_fetched, registers_changed, find_saved_register,
read_relative_register_raw_bytes, default_get_saved_register,
read_relative_register_raw_bytes_for_frame, get_saved_register):
Move from this file into new file regcache.c.
(register_valid, registers_pid, registers): Ditto.
* regcache.c: New file to hold the register cache.
(register_cached): New function to read register_valid array.
* value.h (register_cached): Declare.
* defs.h (default_get_saved_register): Delete decl of static function.
* Makefile.in: Add regcache module.
2000-07-10 06:16:51 +00:00
|
|
|
expprint.o environ.o stack.o thread.o \
|
2005-01-12 Andrew Cagney <cagney@gnu.org>
* exceptions.h (enum return_reason, RETURN_MASK)
(RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
(return_mask, throw_exception, catch_exceptions_ftype)
(catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
(catch_command_errors_ftype, catch_command_errors): Move to
exceptions.h.
* exceptions.c, exceptions.h: New files.
* top.c: Do not include <setjmp.h>.
(SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
(throw_exception, catcher, catch_exceptions)
(catch_exceptions_with_msg, struct catch_errors_args)
(do_catch_errors, catch_errors, struct captured_command_args)
(do_captured_command, catch_command_errors): Move to exceptions.c.
* wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
* tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
* symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
* remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
* remote-e7000.c, objc-lang.c, ocd.c: Ditto.
* remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
* main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
* hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
* corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
* ada-valprint.c, ada-lang.c: Ditto.
* Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
exceptions.o. Update all dependencies.
2005-01-12 18:31:35 +00:00
|
|
|
exceptions.o \
|
2010-04-24 13:12:56 +00:00
|
|
|
filesystem.o \
|
2004-10-01 17:26:14 +00:00
|
|
|
inf-child.o \
|
2003-02-05 Jim Ingham <jingham@apple.com>
Keith Seitz <keiths@redhat.com>
Elena Zannoni <ezannoni@redhat.com>
Andrew Cagney <ac131313@redhat.com>
* Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
(SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
(SUBDIR_MI_OBS): Add "mi-interp.o".
(SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
(SFILES): Add "interps.c".
(COMMON_OBS): Add "interps.o".
(interps_h, mi_main_h): Define.
(interps.o, cli-interp.o, mi-interp.o): Add dependencies.
(mi-main.o, main.o, event-top.o): Update dependencies.
* cli/cli-interp.c: New file.
* interps.h, interps.c: New files.
* top.c: (gdb_init): Don't install the default interpreter, handed
by captured_main.
* main.c: Include "interps.h".
(interpreter_p): Note that it should malloc'ed.
(captured_command_loop): Call current_interp_command_loop.
(captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
xfree and xstrdup when updating interpreter_p. Install the
default interpreter. Add hack to stop mi1's copyright notice
being encoded.
* event-top.h (gdb_setup_readline): Declare.
(gdb_disable_readline): Declare.
* event-top.c: Include "interps.h".
(display_gdb_prompt): Call current_interp_display_prompt_p.
(gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
gdb_stdlog, and gdb_stdtarg.
(_initialize_event_loop): Don't call gdb_setup_readline.
* cli-out.c (cli_out_set_stream): New function.
* cli-out.h (cli_out_set_stream): Declare.
2003-02-06 01:19:12 +00:00
|
|
|
interps.o \
|
2004-02-08 04:25:07 +00:00
|
|
|
main.o \
|
2002-05-16 21:15:53 +00:00
|
|
|
macrotab.o macrocmd.o macroexp.o macroscope.o \
|
2010-02-28 15:04:13 +00:00
|
|
|
mi-common.o \
|
2000-11-30 Fernando Nasser <fnasser@redhat.com>
* linespec.h: New file. Declarations for linespec.c.
* linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c,
symtab.c, tracepoint.c: Include the above.
* completer.c: New file. Line completion stuff for GDB.
(get_gdb_completer_word_break_characters,
get_gdb_completer_quote_characters): New functions. Accessors for
useful completer internal data.
(filename_completer, line_completion_function, skip_quoted): Moved
here from top.c.
* completer.h: New file. Declarations for the above.
* linespec.c (decode_line_1): Use
get_gdb_completer_word_break_characters and
get_gdb_completer_quote_characters.
* top.c: Include completer.h.
(filename_completer, line_completion_function, skip_quoted):
Moved to completer.c.
* corefile.c, exec.c, source.c, symfile.c, linespec.c: Include
completer.h.
* Makefile.in (SFILES): Add completer.c.
(COMMON_OBS): Add completer.o.
(completer.o): New target.
(linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o,
symtab.o, tracepoint.o): Add linespec.h to dependencies list.
(corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h
to dependencies list.
2000-12-01 00:43:47 +00:00
|
|
|
event-loop.o event-top.o inf-loop.o completer.o \
|
2004-02-08 21:42:06 +00:00
|
|
|
gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o \
|
|
|
|
memattr.o mem-break.o target.o parse.o language.o buildsym.o \
|
2008-05-09 17:02:03 +00:00
|
|
|
findcmd.o \
|
2003-07-07 14:36:58 +00:00
|
|
|
std-regs.o \
|
2001-07-19 18:09:11 +00:00
|
|
|
signals.o \
|
2008-10-17 19:43:47 +00:00
|
|
|
exec.o reverse.o \
|
|
|
|
bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o \
|
2007-06-18 15:46:38 +00:00
|
|
|
dbxread.o coffread.o coff-pe-read.o \
|
* MAINTAINERS: Remove d10v entry.
* Makefile.in (SFILES): Remove dwarfread.c.
(COMMON_OBS): Remove dwarfread.o.
(gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
(remote-est.o, rom68k-rom.o): Delete.
* NEWS: Mention removal of d10v, target abug, target cpu32bug,
target est, target rom68k, and DWARF 1.
* configure.tgt: Mark d10v as removed.
* dwarf2read.c: Doc update.
* elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
and lnsize.
(elf_locate_sections): Do not set them.
(elf_symfile_read): Do not call dwarf_build_psymtabs.
* symfile.h (dwarf_build_psymtabs): Delete prototype.
* config/m68k/monitor.mt (TDEPFILES): Prune.
* abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
* gdb.texinfo (M68K): Remove obsolete ROM monitors.
* gdbint.texinfo (DWARF 1): Delete section and other dwarfread.c
references.
* gdb.asm/asm-source.exp: Remove d10v case.
* lib/gdb.exp (skip_cplus_tests): Likewise.
* gdb.asm/d10v.inc: Deleted.
2007-03-30 17:21:48 +00:00
|
|
|
dwarf2read.o mipsread.o stabsread.o corefile.o \
|
2003-05-31 19:18:05 +00:00
|
|
|
dwarf2expr.o dwarf2loc.o dwarf2-frame.o \
|
2010-04-29 14:45:39 +00:00
|
|
|
ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o \
|
2008-10-22 19:45:05 +00:00
|
|
|
ada-tasks.o \
|
2000-02-03 04:14:45 +00:00
|
|
|
ui-out.o cli-out.o \
|
2006-09-21 13:47:56 +00:00
|
|
|
varobj.o vec.o wrapper.o \
|
1999-04-16 01:35:26 +00:00
|
|
|
jv-lang.o jv-valprint.o jv-typeprint.o \
|
2010-11-05 14:31:30 +00:00
|
|
|
m2-lang.o opencl-lang.o p-lang.o p-typeprint.o p-valprint.o \
|
2003-01-27 21:41:41 +00:00
|
|
|
sentinel-frame.o \
|
|
|
|
complaints.o typeprint.o \
|
2004-10-02 09:55:15 +00:00
|
|
|
ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o \
|
2010-04-29 14:45:39 +00:00
|
|
|
ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o \
|
|
|
|
m2-valprint.o \
|
2007-03-30 12:57:44 +00:00
|
|
|
serial.o mdebugread.o top.o utils.o \
|
2001-07-18 20:53:35 +00:00
|
|
|
ui-file.o \
|
2003-07-07 14:36:58 +00:00
|
|
|
user-regs.o \
|
2003-01-18 Andrew Cagney <ac131313@redhat.com>
* dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
(dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
(struct frame_unwind): Declare opaque.
(dummy_frame_p): Declare function.
* dummy-frame.c (dummy_frame_id_unwind): Make static.
(dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
* dummy-frame.c: Include "frame-unwind.h".
(dummy_frame_p): New function.
(dummy_frame_unwind): New variable.
* frame.c: Include "frame-unwind.h".
(frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
to use the new unwind field.
(set_unwind_by_pc): Delete function.
(create_new_frame, get_prev_frame): Set unwind field using
frame_unwind_find_by_pc.
(trad_frame_unwind, trad_frame_unwinder): New variables.
* frame.h (trad_frame_unwind): Declare variable.
(frame_id_unwind_ftype): Delete declaration.
(frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
(struct frame_unwind): Declare opaque.
(struct frame_info): Replace the fields id_unwind, pc_unwind and
register_unwind with a single unwind pointer.
* frame-unwind.h, frame-unwind.c: New files.
* Makefile.in (SFILES): Add frame-unwind.c.
(frame_unwind_h): Define.
(COMMON_OBS): Add frame-unwind.o.
(frame-unwind.o): Specify dependencies.
(frame.o, dummy-frame.o): Update dependencies.
2003-01-18 17:25:23 +00:00
|
|
|
frame.o frame-unwind.o doublest.o \
|
2003-04-01 19:11:01 +00:00
|
|
|
frame-base.o \
|
gdb/
* NEWS: Document inlined function support.
* Makefile.in (SFILES): Add inline-frame.c.
(COMMON_OBS): Add inline-frame.o.
* block.c (contained_in): Rewrite to use lexical nesting.
(block_linkage_function): Skip inlined function blocks.
(block_inlined_p): New.
* block.h (struct block): Update comment.
(block_inlined_p): New prototype.
* blockframe.c (get_frame_block): Handle inlined functions.
(get_frame_function): Do not use block_linkage_function.
(block_innermost_frame): Use get_frame_block and contained_in.
* breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
Skip over inlined functions. Simplify epilogue check.
(bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
Update comments.
(set_momentary_breakpoint): Only accept non-inlined frames.
(watch_command_1): Use frame_unwind_caller_pc and
frame_unwind_caller_id instead of get_prev_frame.
(until_break_command): Likewise. Use get_stack_frame_id.
* buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
* dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
* dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
(read_func_scope, new_symbol): Likewise. Handle arguments specially
for inlined functions without call site information.
(inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
(die_specification): Treat DW_AT_abstract_origin as a specification.
(read_type_die): Handle DW_TAG_inlined_subroutine.
* frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
* frame.c (fprint_frame_id): Print inline depth.
(fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
(skip_inlined_frames, get_stack_frame_id): New.
(frame_unwind_caller_id): Use skip_inlined_frames.
(frame_id_inlined_p): New.
(frame_id_eq): Make the logic match the comments. Add inline_depth
check.
(frame_id_inner): Handle inlined functions.
(frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
(frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
(get_prev_frame_1): Check for inline frames. Split out frame
allocation to get_prev_frame_raw.
(get_prev_frame_raw): New function.
(get_prev_frame): Handle inline frames.
(get_frame_pc): Use frame_unwind_pc.
(get_frame_address_in_block): Skip inlined frames on both sides.
(pc_notcurrent): Delete.
(find_frame_sal): Rewrite to handle inline call sites. Use
get_frame_address_in_block.
(deprecated_update_frame_pc_hack): Make static.
* frame.h: Update comments.
(struct frame_id): Add inline_depth.
(enum frame_type): Add INLINE_FRAME.
(frame_id_inlined_p, get_stack_frame_id): New prototypes.
* gdbthread.h (struct thread_info): Add step_stack_frame_id field.
* infcmd.c (set_step_frame): New function.
(step_once): Use set_step_frame. Handle inlined functions.
(until_next_command): Use set_step_frame.
(finish_backward), finish_forward): Use get_stack_frame_id.
(finish_command): Support inlined functions.
* inferior.h (set_step_info): New prototype.
* infrun.c (RESUME_ALL): Use minus_one_ptid.
(clear_proceed_status): Clear step_stack_frame_id.
(init_wait_for_inferior): Call clear_inline_frame_state.
(init_execution_control_state): Make static.
(set_step_info): New function.
(init_thread_stepping_state): Do not set the symtab or line here.
(stepped_in_from): New function.
(handle_inferior_event): Handle inlined functions. Use set_step_info.
(insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
(struct inferior_status): Add step_stack_frame_id.
(save_inferior_status, restore_inferior_status): Save and restore
step_stack_frame_id.
* inline-frame.c, inline-frame.h: New files.
* minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
* regcache.c (regcache_write_pc): Call reinit_frame_cache.
* s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
* stack.c (frame_show_address): New.
(print_frame_info, print_frame): Use it.
(find_frame_funname): Use get_frame_function. Handle inlined blocks.
(frame_info): Mark inlined functions.
(backtrace_command_1): Use get_current_user_frame.
(print_frame_local_vars, print_frame_label_vars): Update comments.
(return_command): Refuse inlined functions.
* symtab.c (lookup_symbol_aux_local): Stop at inlined function
boundaries.
(find_function_start_sal): Avoid inlined functions.
(completion_list_add_fields): New function.
(default_make_symbol_completion_list): Use it. Use block_static_block
and block_global_block. Check for inlined functions.
(skip_prologue_using_sal): Avoid line number comparison across
inlining.
* symtab.h (struct symbol): Add is_inlined.
(SYMBOL_INLINED): New.
* target.c (target_resume): Call clear_inline_frame_state.
* valops.c (value_of_variable): Check block_inlined_p.
gdb/doc/
* gdb.texinfo (Debugging Optimized Code): New chapter.
(Compiling for Debugging): Reference it. Move some
text to the new section.
gdb/testsuite/
* gdb.base/break.exp: Add an XFAIL for gcc/36748.
* gdb.cp/annota2.exp: Accept frames-invalid in more places.
* gdb.opt/Makefile.in (EXECUTABLES): Update.
* gdb.opt/clobbered-registers-O2.exp: Update to GPL v3.
* gdb.opt/inline-bt.c, gdb.opt/inline-bt.exp,
gdb.opt/inline-cmds.c, gdb.opt/inline-cmds.exp,
gdb.opt/inline-locals.c, gdb.opt/inline-locals.exp,
gdb.opt/inline-markers.c: New files.
* lib/gdb.exp (skip_inline_frame_tests): New function.
(skip_inline_var_tests): New function.
2009-06-28 00:20:24 +00:00
|
|
|
inline-frame.o \
|
2007-04-10 11:58:15 +00:00
|
|
|
gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o \
|
2003-04-15 David Carlton <carlton@math.stanford.edu>
* Makefile.in (SFILES): Add cp-namespace.c.
(COMMON_OBS): Add cp-namespace.o.
(block.o): Depend on gdb_obstack_h and cp_support_h.
(buildsym.o): Depend on cp_support_h.
(cp-namespace.o): New.
(cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
(dwarf2read.o): Depend on cp_support_h.
* jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
* dwarf2read.c (process_die): Set processing_has_namespace_info,
processing_current_namespace.
(read_namespace): Update processing_current_namespace; check for
anonymous namespaces.
(dwarf2_name): New function.
(dwarf2_extension): Ditto.
* cp-support.h: Update copyright, contributors.
Add inclusion guards.
Add opaque declaration for structs obstack, block, symbol.
(struct using_direct): New struct.
Add declarations for cp_find_first_component,
cp_entire_prefix_len, processing_has_namespace_info,
processing_current_namespace, cp_is_anonymous,
cp_add_using_directive, cp_initialize_namespace,
cp_finalize_namespace, cp_set_block_scope,
cp_scan_for_anonymous_namespaces.
* cp-namespace.c: New file.
* cp-support.c: Update copyright.
Include ctype.h, gdb_assert.h, gdbcmd.h.
New variable maint_cplus_cmd_list.
(cp_find_first_component): New function.
(cp_entire_prefix_len, maint_cplus_command)
(first_component_command, _initialize_cp_support): Ditto.
* buildsym.c: Include cp-support.h.
New variable using_list.
(add_symbol_to_list): Check for anonymous namespaces.
(finish_block): Set block's scope.
(start_symtab): Initialize C++ namespace support.
(end_symtab): Finalize C++ namespace support.
* block.h: Add opaque declarations for structs
block_namespace_info, using_direct, and obstack.
Add declarations for block_set_scope and block_set_using.
(struct block): Add 'language_specific' member.
(BLOCK_NAMESPACE): New macro.
* block.c: Include gdb_obstack.h and cp-support.h.
(struct block_namespace_info): New struct.
(block_set_scope): New function.
(block_set_using, block_initialize_namespace): Ditto.
2003-04-15 David Carlton <carlton@math.stanford.edu>
* gdb.c++/maint.exp: New file.
2003-04-15 23:07:11 +00:00
|
|
|
cp-namespace.o \
|
2004-05-20 00:53:06 +00:00
|
|
|
reggroups.o regset.o \
|
2004-03-23 14:12:30 +00:00
|
|
|
trad-frame.o \
|
* solib.h (CLEAR_SOLIB, SOLIB_ADD)
(SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
(SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
(DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
(IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
comments.
* breakpoint.c: Include "solib.h".
(insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
solib_address.
(remove_solib_event_breakpoints, create_solib_event_breakpoint)
(disable_breakpoints_in_shlibs)
(disable_breakpoints_in_unloaded_shlib)
(re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
defined. If PC_SOLIB isn't defined, call solib_address.
(_initialize_breakpoint): Unconditionally install observer.
* corelow.c: Include "solib.h".
[SOLIB_ADD] (solib_add_stub): Remove prototype.
(core_close) [!CLEAR_SOLIB]: Call clear_solib.
(solib_add_stub) [!SOLIB_ADD] Call solib_add.
(core_open): Unconditionally call solib_add_stub.
* fork-child.c: Include "solib.h".
(fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
solib_create_inferior_hook.
* infcmd.c: Include "solib.h".
(attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
call re_enable_breakpoints_in_shlibs.
* infrun.c: Include "solib.h".
(SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
defined.
(stop_on_solib_events, show_stop_on_solib_events): Include
unconditionally.
(follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
solib_create_inferior_hook.
(handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
[!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
(_initialize_infrun): Unconditionally add "stop_on_solib-events"
command.
* remote.c: Include "solib.h".
(remote_open_1): Unconditionally call no_shared_libraries.
[!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
* stack.c: Include "solib.h".
(print_frame) [!PC_SOLIB] Call shlib_for_pc.
* xcoffsolib.c (no_shared_libraries): Remove function.
* Makefile.in (SFILES): Add solib.c.
(ALLDEPFILES): Remove solib.c.
(COMMON_OBS): Add solib.o.
(breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
(remote.o, stack.o): Update dependencies.
2005-05-12 20:21:18 +00:00
|
|
|
tramp-frame.o \
|
2010-06-15 17:57:38 +00:00
|
|
|
solib.o solib-target.o \
|
2009-09-15 03:30:08 +00:00
|
|
|
prologue-value.o memory-map.o xml-support.o xml-syscall.o \
|
2008-09-22 15:12:19 +00:00
|
|
|
target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
|
2009-10-26 18:28:13 +00:00
|
|
|
inferior.o osdata.o gdb_usleep.o record.o gcore.o \
|
2009-10-19 Pedro Alves <pedro@codesourcery.com>
Stan Shebs <stan@codesourcery.com>
Add base multi-executable/process support to GDB.
gdb/
* Makefile.in (SFILES): Add progspace.c.
(COMMON_OBS): Add progspace.o.
* progspace.h: New.
* progspace.c: New.
* breakpoint.h (struct bp_target_info) <placed_address_space>: New
field.
(struct bp_location) <pspace>: New field.
(struct breakpoint) <pspace>: New field.
(bpstat_stop_status, breakpoint_here_p)
(moribund_breakpoint_here_p, breakpoint_inserted_here_p)
(regular_breakpoint_inserted_here_p)
(software_breakpoint_inserted_here_p, breakpoint_thread_match)
(set_default_breakpoint): Adjust prototypes.
(remove_breakpoints_pid, breakpoint_program_space_exit): Declare.
(insert_single_step_breakpoint, deprecated_insert_raw_breakpoint):
Adjust prototypes.
* breakpoint.c (executing_startup): Delete.
(default_breakpoint_sspace): New.
(breakpoint_restore_shadows): Skip if the address space doesn't
match.
(update_watchpoint): Record the frame's program space in the
breakpoint location.
(insert_bp_location): Record the address space in target_info.
Adjust to pass the symbol space to solib_name_from_address.
(breakpoint_program_space_exit): New.
(insert_breakpoint_locations): Switch the symbol space and thread
when inserting breakpoints. Don't insert breakpoints in a vfork
parent waiting for vfork done if we're not attached to the vfork
child.
(remove_breakpoints_pid): New.
(reattach_breakpoints): Switch to a thread of PID. Ignore
breakpoints of other symbol spaces.
(create_internal_breakpoint): Store the symbol space in the sal.
(create_longjmp_master_breakpoint): Iterate over all symbol
spaces.
(update_breakpoints_after_exec): Ignore breakpoints for other
symbol spaces.
(remove_breakpoint): Rename to ...
(remove_breakpoint_1): ... this. Pass the breakpoints symbol
space to solib_name_from_address.
(remove_breakpoint): New.
(mark_breakpoints_out): Ignore breakpoints from other symbol
spaces.
(breakpoint_init_inferior): Ditto.
(breakpoint_here_p): Add an address space argument and adjust to
use breakpoint_address_match.
(moribund_breakpoint_here_p): Ditto.
(regular_breakpoint_inserted_here_p): Ditto.
(breakpoint_inserted_here_p): Ditto.
(software_breakpoint_inserted_here_p): Ditto.
(breakpoint_thread_match): Ditto.
(bpstat_check_location): Ditto.
(bpstat_stop_status): Ditto.
(print_breakpoint_location): If there's a location to print,
switch the current symbol space.
(print_one_breakpoint_location): Add `allflag' argument.
(print_one_breakpoint): Ditto. Adjust.
(do_captured_breakpoint_query): Adjust.
(breakpoint_1): Adjust.
(breakpoint_has_pc): Also match the symbol space.
(describe_other_breakpoints): Add a symbol space argument and
adjust.
(set_default_breakpoint): Add a symbol space argument. Set
default_breakpoint_sspace.
(breakpoint_address_match): New.
(check_duplicates_for): Add an address space argument, and adjust.
(set_raw_breakpoint): Record the symbol space in the location and
in the breakpoint.
(set_longjmp_breakpoint): Skip longjmp master breakpoints from
other symbol spaces.
(remove_thread_event_breakpoints, remove_solib_event_breakpoints)
(disable_breakpoints_in_shlibs): Skip breakpoints from other
symbol spaces.
(disable_breakpoints_in_unloaded_shlib): Match symbol spaces.
(create_catchpoint): Set the symbol space in the sal.
(disable_breakpoints_before_startup): Skip breakpoints from other
symbol spaces. Set executing_startup in the current symbol space.
(enable_breakpoints_after_startup): Clear executing_startup in the
current symbol space. Skip breakpoints from other symbol spaces.
(clone_momentary_breakpoint): Also copy the symbol space.
(add_location_to_breakpoint): Set the location's symbol space.
(bp_loc_is_permanent): Switch thread and symbol space.
(create_breakpoint): Adjust.
(expand_line_sal_maybe): Expand comment to mention symbol spaces.
Switch thread and symbol space when reading memory.
(parse_breakpoint_sals): Set the symbol space in the sal.
(break_command_really): Ditto.
(skip_prologue_sal): Switch and space.
(resolve_sal_pc): Ditto.
(watch_command_1): Record the symbol space in the sal.
(create_ada_exception_breakpoint): Adjust.
(clear_command): Adjust. Match symbol spaces.
(update_global_location_list): Use breakpoint_address_match.
(breakpoint_re_set_one): Switch thread and space.
(breakpoint_re_set): Save symbol space.
(breakpoint_re_set_thread): Also reset the symbol space.
(deprecated_insert_raw_breakpoint): Add an address space argument.
Adjust.
(insert_single_step_breakpoint): Ditto.
(single_step_breakpoint_inserted_here_p): Ditto.
(clear_syscall_counts): New.
(_initialize_breakpoint): Install it as inferior_exit observer.
* exec.h: Include "progspace.h".
(exec_bfd, exec_bfd_mtime): New defines.
(exec_close): Declare.
* exec.c: Include "gdbthread.h" and "progspace.h".
(exec_bfd, exec_bfd_mtime, current_target_sections_1): Delete.
(using_exec_ops): New.
(exec_close_1): Rename to exec_close, and make public.
(exec_close): Rename to exec_close_1, and adjust all callers. Add
description. Remove target sections and close executables from
all program spaces.
(exec_file_attach): Add comment.
(add_target_sections): Check on `using_exec_ops' to check if the
target should be pushed.
(remove_target_sections): Only unpush the target if there are no
more target sections in any symbol space.
* gdbcore.h: Include "exec.h".
(exec_bfd, exec_bfd_mtime): Remove declarations.
* frame.h (get_frame_program_space, get_frame_address_space)
(frame_unwind_program_space): Declare.
* frame.c (struct frame_info) <pspace, aspace>: New fields.
(create_sentinel_frame): Add program space argument. Set the
pspace and aspace fields of the frame object.
(get_current_frame, create_new_frame): Adjust.
(get_frame_program_space): New.
(frame_unwind_program_space): New.
(get_frame_address_space): New.
* stack.c (print_frame_info): Adjust.
(print_frame): Use the frame's program space.
* gdbthread.h (any_live_thread_of_process): Declare.
* thread.c (any_live_thread_of_process): New.
(switch_to_thread): Switch the program space as well.
(restore_selected_frame): Don't warn if trying to restore frame
level 0.
* inferior.h: Include "progspace.h".
(detach_fork): Declare.
(struct inferior) <removable, aspace, pspace>
<vfork_parent, vfork_child, pending_detach>
<waiting_for_vfork_done>: New fields.
<terminal_info>: Remove field.
<data, num_data>: New fields.
(register_inferior_data, register_inferior_data_with_cleanup)
(clear_inferior_data, set_inferior_data, inferior_data): Declare.
(exit_inferior, exit_inferior_silent, exit_inferior_num_silent)
(inferior_appeared): Declare.
(find_inferior_pid): Typo.
(find_inferior_id, find_inferior_for_program_space): Declare.
(set_current_inferior, save_current_inferior, prune_inferiors)
(number_of_inferiors): Declare.
(inferior_list): Declare.
* inferior.c: Include "gdbcore.h" and "symfile.h".
(inferior_list): Make public.
(delete_inferior_1): Always delete thread silently.
(find_inferior_id): Make public.
(current_inferior_): New.
(current_inferior): Use it.
(set_current_inferior): New.
(restore_inferior): New.
(save_current_inferior): New.
(free_inferior): Free the per-inferior data.
(add_inferior_silent): Allocate per-inferior data.
Call inferior_appeared.
(delete_threads_of_inferior): New.
(delete_inferior_1): Adjust interface to take an inferior pointer.
(delete_inferior): Adjust.
(delete_inferior_silent): Adjust.
(exit_inferior_1): New.
(exit_inferior): New.
(exit_inferior_silent): New.
(exit_inferior_num_silent): New.
(detach_inferior): Adjust.
(inferior_appeared): New.
(discard_all_inferiors): Adjust.
(find_inferior_id): Make public. Assert pid is not zero.
(find_inferior_for_program_space): New.
(have_inferiors): Check if we have any inferior with pid not zero.
(have_live_inferiors): Go over all pushed targets looking for
process_stratum.
(prune_inferiors): New.
(number_of_inferiors): New.
(print_inferior): Add executable column. Print vfork parent/child
relationships.
(inferior_command): Adjust to cope with not running inferiors.
(remove_inferior_command): New.
(add_inferior_command): New.
(clone_inferior_command): New.
(struct inferior_data): New.
(struct inferior_data_registration): New.
(struct inferior_data_registry): New.
(inferior_data_registry): New.
(register_inferior_data_with_cleanup): New.
(register_inferior_data): New.
(inferior_alloc_data): New.
(inferior_free_data): New.
(clear_inferior_data): New.
(set_inferior_data): New.
(inferior_data): New.
(initialize_inferiors): New.
(_initialize_inferiors): Register "add-inferior",
"remove-inferior" and "clone-inferior" commands.
* objfiles.h: Include "progspace.h".
(struct objfile) <pspace>: New field.
(symfile_objfile, object_files): Don't declare.
(ALL_PSPACE_OBJFILES): New.
(ALL_PSPACE_OBJFILES_SAFE): New.
(ALL_OBJFILES, ALL_OBJFILES_SAFE): Adjust.
(ALL_PSPACE_SYMTABS): New.
(ALL_PRIMARY_SYMTABS): Adjust.
(ALL_PSPACE_PRIMARY_SYMTABS): New.
(ALL_PSYMTABS): Adjust.
(ALL_PSPACE_PSYMTABS): New.
* objfiles.c (object_files, symfile_objfile): Delete.
(struct objfile_sspace_info): New.
(objfiles_pspace_data): New.
(objfiles_pspace_data_cleanup): New.
(get_objfile_pspace_data): New.
(objfiles_changed_p): Delete.
(allocate_objfile): Set the objfile's program space. Adjust to
reference objfiles_changed_p in pspace data.
(free_objfile): Adjust to reference objfiles_changed_p in pspace
data.
(objfile_relocate): Ditto.
(update_section_map): Add pspace argument. Adjust to iterate over
objfiles in the passed in pspace.
(find_pc_section): Delete sections and num_sections statics.
Adjust to refer to program space's objfiles_changed_p. Adjust to
refer to sections and num_sections store in the objfile's pspace
data.
(objfiles_changed): Adjust to reference objfiles_changed_p in
pspace data.
(_initialize_objfiles): New.
* linespec.c (decode_all_digits, decode_dollar): Set the sal's
program space.
* source.c (current_source_pspace): New.
(get_current_source_symtab_and_line): Set the sal's program space.
(set_current_source_symtab_and_line): Set current_source_pspace.
(select_source_symtab): Ditto. Use ALL_OBJFILES.
(forget_cached_source_info): Iterate over all program spaces.
* symfile.c (clear_symtab_users): Adjust.
* symmisc.c (print_symbol_bcache_statistics): Iterate over all
program spaces.
(print_objfile_statistics): Ditto.
(maintenance_print_msymbols): Ditto.
(maintenance_print_objfiles): Ditto.
(maintenance_info_symtabs): Ditto.
(maintenance_info_psymtabs): Ditto.
* symtab.h (SYMTAB_PSPACE): New.
(struct symtab_and_line) <pspace>: New field.
* symtab.c (init_sal): Clear the sal's program space.
(find_pc_sect_symtab): Set the sal's program space. Switch thread
and space.
(append_expanded_sal): Add program space argument. Iterate over
all program spaces.
(expand_line_sal): Iterate over all program spaces. Switch
program space.
* target.h (enum target_waitkind) <TARGET_WAITKIND_VFORK_DONE>: New.
(struct target_ops) <to_thread_address_space>: New field.
(target_thread_address_space): Define.
* target.c (target_detach): Only remove breakpoints from the
inferior we're detaching.
(target_thread_address_space): New.
* defs.h (initialize_progspace): Declare.
* top.c (gdb_init): Call it.
* solist.h (struct so_list) <sspace>: New field.
* solib.h (struct program_space): Forward declare.
(solib_name_from_address): Adjust prototype.
* solib.c (so_list_head): Replace with a macro referencing the
program space.
(update_solib_list): Set the so's program space.
(solib_name_from_address): Add a program space argument and adjust.
* solib-svr4.c (struct svr4_info) <pid>: Delete field.
<interp_text_sect_low, interp_text_sect_high, interp_plt_sect_low>
<interp_plt_sect_high>: New fields.
(svr4_info_p, svr4_info): Delete.
(solib_svr4_sspace_data): New.
(get_svr4_info): Rewrite.
(svr4_sspace_data_cleanup): New.
(open_symbol_file_object): Adjust.
(svr4_default_sos): Adjust.
(svr4_fetch_objfile_link_map): Adjust.
(interp_text_sect_low, interp_text_sect_high, interp_plt_sect_low)
(interp_plt_sect_high): Delete.
(svr4_in_dynsym_resolve_code): Adjust.
(enable_break): Adjust.
(svr4_clear_solib): Revert bit that removed the svr4_info here,
and reinstate clearing debug_base, debug_loader_offset_p,
debug_loader_offset and debug_loader_name.
(_initialize_svr4_solib): Register solib_svr4_pspace_data. Don't
install an inferior_exit observer anymore.
* printcmd.c (struct display) <pspace>: New field.
(display_command): Set the display's sspace.
(do_one_display): Match the display's sspace.
(display_uses_solib_p): Ditto.
* linux-fork.c (detach_fork): Moved to infrun.c.
(_initialize_linux_fork): Moved "detach-on-fork" command to
infrun.c.
* infrun.c (detach_fork): Moved from linux-fork.c.
(proceed_after_vfork_done): New.
(handle_vfork_child_exec_or_exit): New.
(follow_exec_mode_replace, follow_exec_mode_keep)
(follow_exec_mode_names, follow_exec_mode_string)
(show_follow_exec_mode_string): New.
(follow_exec): New. Reinstate the mark_breakpoints_out call.
Remove shared libraries before attaching new executable. If user
wants to keep the inferior, keep it.
(displaced_step_fixup): Adjust to pass an address space to the
breakpoints module.
(resume): Ditto.
(clear_proceed_status): In all-stop mode, always clear the proceed
status of all threads.
(prepare_to_proceed): Adjust to pass an address space to the
breakpoints module.
(proceed): Ditto.
(adjust_pc_after_break): Ditto.
(handle_inferior_event): When handling a process exit, switch the
program space to the inferior's that had exited. Call
handle_vfork_child_exec_or_exit. Adjust to pass an address space
to the breakpoints module. In non-stop mode, when following a
fork and detach-fork is off, also resume the other branch. Handle
TARGET_WAITKIND_VFORK_DONE. Set the program space in sals.
(normal_stop): Prune inferiors.
(_initialize_infrun): Install the new "follow-exec-mode" command.
"detach-on-fork" moved here.
* regcache.h (get_regcache_aspace): Declare.
* regcache.c (struct regcache) <aspace>: New field.
(regcache_xmalloc): Clear the aspace.
(get_regcache_aspace): New.
(regcache_cpy): Copy the aspace field.
(regcache_cpy_no_passthrough): Ditto.
(get_thread_regcache): Fetch the thread's address space from the
target, and store it in the regcache.
* infcall.c (call_function_by_hand): Set the sal's pspace.
* arch-utils.c (default_has_shared_address_space): New.
* arch-utils.h (default_has_shared_address_space): Declare.
* gdbarch.sh (has_shared_address_space): New.
* gdbarch.h, gdbarch.c: Regenerate.
* linux-tdep.c: Include auxv.h, target.h, elf/common.h.
(linux_has_shared_address_space): New.
(_initialize_linux_tdep): Declare.
* arm-tdep.c (arm_software_single_step): Pass the frame's address
space to insert_single_step_breakpoint.
* arm-linux-tdep.c (arm_linux_software_single_step): Pass the
frame's pspace to breakpoint functions.
* cris-tdep.c (crisv32_single_step_through_delay): Ditto.
(cris_software_single_step): Ditto.
* mips-tdep.c (deal_with_atomic_sequence): Add frame argument.
Pass the frame's pspace to breakpoint functions.
(mips_software_single_step): Adjust.
(mips_single_step_through_delay): Adjust.
* rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
* rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
* solib-irix.c (enable_break): Adjust to pass the current frame's
address space to breakpoint functions.
* sparc-tdep.c (sparc_software_single_step): Ditto.
* spu-tdep.c (spu_software_single_step): Ditto.
* alpha-tdep.c (alpha_software_single_step): Ditto.
* record.c (record_wait): Adjust to pass an address space to the
breakpoints module.
* fork-child.c (fork_inferior): Set the new inferior's program and
address spaces.
* inf-ptrace.c (inf_ptrace_follow_fork): Copy the parent's program
and address spaces.
(inf_ptrace_attach): Set the inferior's program and address spaces.
* linux-nat.c: Include "solib.h".
(linux_child_follow_fork): Manage parent and child's program and
address spaces. Clone the parent's program space if necessary.
Don't wait for the vfork to be done here. Refuse to resume if
following the vfork parent while leaving the child stopped.
(resume_callback): Don't resume a vfork parent.
(linux_nat_resume): Also check for pending events in the
lp->waitstatus field.
(linux_handle_extended_wait): Report TARGET_WAITKIND_VFORK_DONE
events to the core.
(stop_wait_callback): Don't wait for SIGSTOP on vfork parents.
(cancel_breakpoint): Adjust.
* linux-thread-db.c (thread_db_wait): Don't remove thread event
breakpoints here.
(thread_db_mourn_inferior): Don't mark breakpoints out here.
Remove thread event breakpoints after mourning.
* corelow.c: Include progspace.h.
(core_open): Set the inferior's program and address spaces.
* remote.c (remote_add_inferior): Set the new inferior's program
and address spaces.
(remote_start_remote): Update address spaces.
(extended_remote_create_inferior_1): Don't init the thread list if
we already debugging other inferiors.
* darwin-nat.c (darwin_attach): Set the new inferior's program and
address spaces.
* gnu-nat.c (gnu_attach): Ditto.
* go32-nat.c (go32_create_inferior): Ditto.
* inf-ttrace.c (inf_ttrace_follow_fork, inf_ttrace_attach): Ditto.
* monitor.c (monitor_open): Ditto.
* nto-procfs.c (procfs_attach, procfs_create_inferior): Ditto.
* procfs.c (do_attach): Ditto.
* windows-nat.c (do_initial_windows_stuff): Ditto.
* inflow.c (inferior_process_group)
(terminal_init_inferior_with_pgrp, terminal_inferior,
(terminal_ours_1, inflow_inferior_exit, copy_terminal_info)
(child_terminal_info, new_tty_postfork, set_sigint_trap): Adjust
to use per-inferior data instead of inferior->terminal_info.
(inflow_inferior_data): New.
(inflow_new_inferior): Delete.
(inflow_inferior_data_cleanup): New.
(get_inflow_inferior_data): New.
* mi/mi-interp.c (mi_new_inferior): Rename to...
(mi_inferior_appeared): ... this.
(mi_interpreter_init): Adjust.
* tui/tui-disasm.c: Include "progspace.h".
(tui_set_disassem_content): Pass an address space to
breakpoint_here_p.
* NEWS: Mention multi-program debugging support. Mention new
commands "add-inferior", "clone-inferior", "remove-inferior",
"maint info program-spaces", and new option "set
follow-exec-mode".
2009-10-19 Pedro Alves <pedro@codesourcery.com>
Stan Shebs <stan@codesourcery.com>
gdb/doc/
* observer.texi (new_inferior): Rename to...
(inferior_appeared): ... this.
2009-10-19 Pedro Alves <pedro@codesourcery.com>
Stan Shebs <stan@codesourcery.com>
gdb/testsuite/
* gdb.base/foll-vfork.exp: Adjust to spell out "follow-fork".
* gdb.base/foll-exec.exp: Adjust to expect a process id before
"Executing new program".
* gdb.base/foll-fork.exp: Adjust to spell out "follow-fork".
* gdb.base/multi-forks.exp: Ditto. Adjust to the inferior being
left listed after having been killed.
* gdb.base/attach.exp: Adjust to spell out "symbol-file".
* gdb.base/maint.exp: Adjust test.
* Makefile.in (ALL_SUBDIRS): Add gdb.multi.
* gdb.multi/Makefile.in: New.
* gdb.multi/base.exp: New.
* gdb.multi/goodbye.c: New.
* gdb.multi/hangout.c: New.
* gdb.multi/hello.c: New.
* gdb.multi/bkpt-multi-exec.c: New.
* gdb.multi/bkpt-multi-exec.exp: New.
* gdb.multi/crashme.c: New.
2009-10-19 Pedro Alves <pedro@codesourcery.com>
Stan Shebs <stan@codesourcery.com>
gdb/doc/
* gdb.texinfo (Inferiors): Rename node to ...
(Inferiors and Programs): ... this. Mention running multiple
programs in the same debug session.
<info inferiors>: Mention the new 'Executable' column if "info
inferiors". Update examples. Document the "add-inferior",
"clone-inferior", "remove-inferior" and "maint info
program-spaces" commands.
(Process): Rename node to...
(Forks): ... this. Document "set|show follow-exec-mode".
2009-10-19 09:51:43 +00:00
|
|
|
jit.o progspace.o
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
TSOBS = inflow.o
|
|
|
|
|
2010-11-23 14:37:26 +00:00
|
|
|
SUBDIRS = doc @subdirs@ data-directory
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
CLEANDIRS = $(SUBDIRS) gnulib
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2010-10-06 16:46:12 +00:00
|
|
|
# List of subdirectories in the build tree that must exist.
|
|
|
|
# This is used to force build failures in existing trees when
|
|
|
|
# a new directory is added.
|
|
|
|
# The format here is for the `case' shell command.
|
|
|
|
REQUIRED_SUBDIRS = doc | testsuite | gnulib | data-directory
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# For now, shortcut the "configure GDB for fewer languages" stuff.
|
2004-02-15 14:49:23 +00:00
|
|
|
YYFILES = c-exp.c \
|
2005-05-12 16:01:08 +00:00
|
|
|
cp-name-parser.c \
|
2004-02-15 14:49:23 +00:00
|
|
|
objc-exp.c \
|
2005-10-21 06:26:27 +00:00
|
|
|
ada-lex.c \
|
2004-02-15 14:49:23 +00:00
|
|
|
ada-exp.c \
|
|
|
|
jv-exp.c \
|
|
|
|
f-exp.c m2-exp.c p-exp.c
|
|
|
|
YYOBJ = c-exp.o \
|
2005-05-12 16:01:08 +00:00
|
|
|
cp-name-parser.o \
|
2004-02-15 14:49:23 +00:00
|
|
|
objc-exp.o \
|
2004-10-02 09:55:15 +00:00
|
|
|
ada-exp.o \
|
2004-02-15 14:49:23 +00:00
|
|
|
jv-exp.o \
|
|
|
|
f-exp.o m2-exp.o p-exp.o
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# Things which need to be built when making a distribution.
|
|
|
|
|
|
|
|
DISTSTUFF = $(YYFILES)
|
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
|
|
|
|
# All generated files which can be included by another file.
|
2008-09-12 10:39:03 +00:00
|
|
|
generated_files = config.h observer.h observer.inc ada-lex.c \
|
|
|
|
$(GNULIB_H) $(NAT_GENERATED_FILES)
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
.c.o:
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
$(COMPILE) $<
|
|
|
|
$(POSTCOMPILE)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2010-10-06 16:02:45 +00:00
|
|
|
all: gdb$(EXEEXT) $(CONFIG_ALL)
|
1999-04-16 01:35:26 +00:00
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
|
2004-02-18 19:01:36 +00:00
|
|
|
.PHONY: all-tui
|
|
|
|
all-tui: $(TUI)$(EXEEXT)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
installcheck:
|
|
|
|
|
|
|
|
# The check target can not use subdir_do, because subdir_do does not
|
|
|
|
# use TARGET_FLAGS_TO_PASS.
|
|
|
|
check: force
|
|
|
|
@if [ -f testsuite/Makefile ]; then \
|
|
|
|
rootme=`pwd`; export rootme; \
|
|
|
|
rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
|
|
|
|
cd testsuite; \
|
|
|
|
$(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
|
|
|
|
else true; fi
|
|
|
|
|
2004-06-08 05:32:51 +00:00
|
|
|
# The idea is to parallelize testing of multilibs, for example:
|
|
|
|
# make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
|
|
|
|
# will run 3 concurrent sessions of check, eventually testing all 10
|
|
|
|
# combinations. GNU make is required for the % pattern to work, as is
|
|
|
|
# a shell that expands alternations within braces. If GNU make is not
|
2009-06-30 21:23:38 +00:00
|
|
|
# used, this rule will harmlessly fail to match. Used FORCE_PARALLEL to
|
|
|
|
# prevent serialized checking due to the passed RUNTESTFLAGS.
|
2009-09-08 18:50:40 +00:00
|
|
|
# FIXME: use config.status --config not --version, when available.
|
2004-06-08 05:32:51 +00:00
|
|
|
check//%: force
|
|
|
|
@if [ -f testsuite/config.status ]; then \
|
|
|
|
rootme=`pwd`; export rootme; \
|
|
|
|
rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
|
|
|
|
target=`echo "$@" | sed 's,//.*,,'`; \
|
|
|
|
variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
|
|
|
|
vardots=`echo "$$variant" | sed 's,/,.,g'`; \
|
|
|
|
testdir=testsuite.$$vardots; \
|
2009-09-08 18:50:40 +00:00
|
|
|
if [ ! -f $$testdir/Makefile ] && [ -f testsuite/config.status ]; then \
|
|
|
|
configargs=`cd testsuite && ./config.status --version | \
|
|
|
|
sed -n -e 's,"$$,,' -e 's,^ *with options ",,p'`; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $$testdir && \
|
|
|
|
(cd $$testdir && \
|
|
|
|
eval $(SHELL) "\"\$$rootsrc/testsuite/configure\" $$configargs" \
|
|
|
|
"\"--srcdir=\$$rootsrc/testsuite\"" \
|
|
|
|
); \
|
2004-06-08 05:32:51 +00:00
|
|
|
else :; fi && cd $$testdir && \
|
|
|
|
$(MAKE) $(TARGET_FLAGS_TO_PASS) \
|
|
|
|
RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
|
2009-06-30 21:23:38 +00:00
|
|
|
FORCE_PARALLEL=$(if $(FORCE_PARALLEL),1,$(if $(RUNTESTFLAGS),,1)) \
|
2004-06-08 05:32:51 +00:00
|
|
|
"$$target"; \
|
|
|
|
else true; fi
|
|
|
|
|
2007-03-27 18:09:36 +00:00
|
|
|
info install-info clean-info dvi pdf install-pdf html install-html: force
|
1999-04-16 01:35:26 +00:00
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
|
|
|
|
|
|
|
|
gdb.z:gdb.1
|
2004-02-01 22:35:08 +00:00
|
|
|
nroff -man $(srcdir)/gdb.1 | col -b > gdb.t
|
1999-04-16 01:35:26 +00:00
|
|
|
pack gdb.t ; rm -f gdb.t
|
|
|
|
mv gdb.t.z gdb.z
|
|
|
|
|
|
|
|
# Traditionally "install" depends on "all". But it may be useful
|
2004-02-01 22:35:08 +00:00
|
|
|
# not to; for example, if the user has made some trivial change to a
|
1999-04-16 01:35:26 +00:00
|
|
|
# source file and doesn't care about rebuilding or just wants to save the
|
|
|
|
# time it takes for make to check that all is up to date.
|
|
|
|
# install-only is intended to address that need.
|
2010-10-21 23:50:46 +00:00
|
|
|
install: all
|
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) install-only
|
2009-09-15 03:30:08 +00:00
|
|
|
|
2010-10-06 16:02:45 +00:00
|
|
|
install-only: $(CONFIG_INSTALL)
|
1999-04-16 01:35:26 +00:00
|
|
|
transformed_name=`t='$(program_transform_name)'; \
|
2003-07-11 17:53:20 +00:00
|
|
|
echo gdb | sed -e "$$t"` ; \
|
1999-04-16 01:35:26 +00:00
|
|
|
if test "x$$transformed_name" = x; then \
|
|
|
|
transformed_name=gdb ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi ; \
|
2003-08-08 17:30:37 +00:00
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
|
2002-11-09 03:14:11 +00:00
|
|
|
$(INSTALL_PROGRAM) gdb$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
|
2003-05-14 16:14:25 +00:00
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
2002-11-09 03:14:11 +00:00
|
|
|
$(DESTDIR)$(man1dir) ; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gdb.1 \
|
2010-08-10 18:35:53 +00:00
|
|
|
$(DESTDIR)$(man1dir)/$$transformed_name.1
|
2004-02-01 22:35:08 +00:00
|
|
|
@$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
2004-02-18 19:01:36 +00:00
|
|
|
.PHONY: install-tui
|
|
|
|
install-tui:
|
|
|
|
transformed_name=`t='$(program_transform_name)'; \
|
|
|
|
echo $(TUI) | sed -e "$$t"` ; \
|
|
|
|
if test "x$$transformed_name" = x; then \
|
|
|
|
transformed_name=$(TUI) ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi ; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
|
|
|
|
$(INSTALL_PROGRAM) $(TUI)$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
|
|
|
$(DESTDIR)$(man1dir) ; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gdb.1 \
|
|
|
|
$(DESTDIR)$(man1dir)/$$transformed_name.1
|
|
|
|
|
2010-08-18 22:57:46 +00:00
|
|
|
install-python:
|
2010-08-19 18:40:46 +00:00
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2000-02-24 08:16:26 +00:00
|
|
|
uninstall: force $(CONFIG_UNINSTALL)
|
1999-04-16 01:35:26 +00:00
|
|
|
transformed_name=`t='$(program_transform_name)'; \
|
|
|
|
echo gdb | sed -e $$t` ; \
|
|
|
|
if test "x$$transformed_name" = x; then \
|
|
|
|
transformed_name=gdb ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi ; \
|
2003-08-08 17:30:37 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(man1dir)/$$transformed_name.1
|
2004-02-01 22:35:08 +00:00
|
|
|
@$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
2004-02-18 19:01:36 +00:00
|
|
|
.PHONY: uninstall-tui
|
|
|
|
uninstall-tui:
|
|
|
|
transformed_name=`t='$(program_transform_name)'; \
|
|
|
|
echo $(TUI) | sed -e $$t` ; \
|
|
|
|
if test "x$$transformed_name" = x; then \
|
|
|
|
transformed_name=$(TUI) ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi ; \
|
|
|
|
rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(man1dir)/$$transformed_name.1
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2005-03-11 02:24:23 +00:00
|
|
|
# The C++ name parser can be built standalone for testing.
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
test-cp-name-parser.o: cp-name-parser.c
|
|
|
|
$(COMPILE) -DTEST_CPNAMES cp-name-parser.c
|
|
|
|
$(POSTCOMPILE)
|
2005-03-11 02:24:23 +00:00
|
|
|
|
2005-05-12 16:01:08 +00:00
|
|
|
test-cp-name-parser$(EXEEXT): test-cp-name-parser.o $(LIBIBERTY)
|
|
|
|
$(CC_LD) $(INTERNAL_LDFLAGS) -o test-cp-name-parser$(EXEEXT) \
|
|
|
|
test-cp-name-parser.o $(LIBIBERTY)
|
2005-03-11 02:24:23 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
# We do this by grepping through sources. If that turns out to be too slow,
|
|
|
|
# maybe we could just require every .o file to have an initialization routine
|
2002-01-06 15:02:01 +00:00
|
|
|
# of a given name (top.o -> _initialize_top, etc.).
|
1999-04-16 01:35:26 +00:00
|
|
|
#
|
|
|
|
# Formatting conventions: The name of the _initialize_* routines must start
|
|
|
|
# in column zero, and must not be inside #if.
|
|
|
|
#
|
|
|
|
# Note that the set of files with init functions might change, or the names
|
|
|
|
# of the functions might change, so this files needs to depend on all the
|
|
|
|
# object files that will be linked into gdb.
|
2004-02-08 21:42:06 +00:00
|
|
|
|
|
|
|
# FIXME: There is a problem with this approach - init.c may force
|
|
|
|
# unnecessary files to be linked in.
|
2002-06-11 01:31:36 +00:00
|
|
|
|
|
|
|
# FIXME: cagney/2002-06-09: gdb/564: gdb/563: Force the order so that
|
2004-02-08 21:42:06 +00:00
|
|
|
# the first call is to _initialize_gdbtypes (implemented by explicitly
|
|
|
|
# putting that function's name first in the init.l-tmp file). This is
|
|
|
|
# a hack to ensure that all the architecture dependant global
|
|
|
|
# builtin_type_* variables are initialized before anything else
|
|
|
|
# (per-architecture code is called in the same order that it is
|
|
|
|
# registered). The ``correct fix'' is to have all the builtin types
|
|
|
|
# made part of the architecture and initialize them on-demand (using
|
|
|
|
# gdbarch_data) just like everything else. The catch is that other
|
|
|
|
# modules still take the address of these builtin types forcing them
|
|
|
|
# to be variables, sigh!
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2003-03-20 22:43:10 +00:00
|
|
|
# NOTE: cagney/2003-03-18: The sed pattern ``s|^\([^ /]...'' is
|
|
|
|
# anchored on the first column and excludes the ``/'' character so
|
|
|
|
# that it doesn't add the $(srcdir) prefix to any file that already
|
|
|
|
# has an absolute path. It turns out that $(DEC)'s True64 make
|
|
|
|
# automatically adds the $(srcdir) prefixes when it encounters files
|
|
|
|
# in sub-directories such as cli/ and mi/.
|
|
|
|
|
2004-02-08 21:42:06 +00:00
|
|
|
# NOTE: cagney/2004-02-08: The ``case "$$fs" in'' eliminates
|
|
|
|
# duplicates. Files in the gdb/ directory can end up appearing in
|
|
|
|
# COMMON_OBS (as a .o file) and CONFIG_SRCS (as a .c file).
|
|
|
|
|
|
|
|
INIT_FILES = $(COMMON_OBS) $(TSOBS) $(CONFIG_SRCS)
|
1999-12-07 03:56:43 +00:00
|
|
|
init.c: $(INIT_FILES)
|
1999-04-16 01:35:26 +00:00
|
|
|
@echo Making init.c
|
1999-09-28 21:55:21 +00:00
|
|
|
@rm -f init.c-tmp init.l-tmp
|
2004-02-08 21:42:06 +00:00
|
|
|
@touch init.c-tmp
|
|
|
|
@echo gdbtypes > init.l-tmp
|
2009-01-09 21:15:10 +00:00
|
|
|
@-LANG=C ; export LANG ; \
|
|
|
|
LC_ALL=C ; export LC_ALL ; \
|
2006-07-12 18:04:30 +00:00
|
|
|
echo $(INIT_FILES) | \
|
1999-04-16 01:35:26 +00:00
|
|
|
tr ' ' '\012' | \
|
2003-01-31 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: Delete nindy files.
* nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
* nindy-share/nindy.c, nindy-share/env.h: Delete files.
* nindy-share/coff.h, nindy-share/block_io.h: Delete files.
* nindy-share/b.out.h, nindy-share/VERSION: Delete files.
* nindy-share/README, nindy-share/Onindy.c: Delete files.
* nindy-tdep.c, nindy-share/Makefile: Delete files.
* Makefile.in (init.c): Remove nindy references.
(saber_gdb): Delete rule.
(ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
and a68v-nat.c.
(hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
(Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
(HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
nindy-share/stop.h.
* hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
* saber.suppress: Delete file.
2003-01-31 20:43:54 +00:00
|
|
|
sed \
|
2004-02-08 21:42:06 +00:00
|
|
|
-e '/^gdbtypes.[co]$$/d' \
|
|
|
|
-e '/^init.[co]$$/d' \
|
|
|
|
-e '/xdr_ld.[co]$$/d' \
|
|
|
|
-e '/xdr_ptrace.[co]$$/d' \
|
|
|
|
-e '/xdr_rdb.[co]$$/d' \
|
|
|
|
-e '/udr.[co]$$/d' \
|
|
|
|
-e '/udip2soc.[co]$$/d' \
|
|
|
|
-e '/udi2go32.[co]$$/d' \
|
|
|
|
-e '/version.[co]$$/d' \
|
|
|
|
-e '/^[a-z0-9A-Z_]*_[SU].[co]$$/d' \
|
|
|
|
-e '/[a-z0-9A-Z_]*-exp.tab.[co]$$/d' \
|
|
|
|
-e 's/\.[co]$$/.c/' \
|
2009-03-02 00:45:13 +00:00
|
|
|
-e 's,signals\.c,common/signals\.c,' \
|
2003-03-20 22:43:10 +00:00
|
|
|
-e 's|^\([^ /][^ ]*\)|$(srcdir)/\1|g' | \
|
2004-02-08 21:42:06 +00:00
|
|
|
while read f; do \
|
|
|
|
sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' $$f 2>/dev/null; \
|
|
|
|
done | \
|
|
|
|
while read f; do \
|
2004-02-10 16:43:58 +00:00
|
|
|
case " $$fs " in \
|
|
|
|
*" $$f "* ) ;; \
|
|
|
|
* ) echo $$f ; fs="$$fs $$f";; \
|
2004-02-08 21:42:06 +00:00
|
|
|
esac; \
|
|
|
|
done >> init.l-tmp
|
1999-09-28 21:55:21 +00:00
|
|
|
@echo '/* Do not modify this file. */' >>init.c-tmp
|
|
|
|
@echo '/* It is created automatically by the Makefile. */'>>init.c-tmp
|
2004-02-08 21:42:06 +00:00
|
|
|
@echo '#include "defs.h" /* For initialize_file_ftype. */' >>init.c-tmp
|
|
|
|
@echo '#include "call-cmds.h" /* For initialize_all_files. */' >>init.c-tmp
|
|
|
|
@sed -e 's/\(.*\)/extern initialize_file_ftype _initialize_\1;/' <init.l-tmp >>init.c-tmp
|
1999-09-28 21:55:21 +00:00
|
|
|
@echo 'void' >>init.c-tmp
|
|
|
|
@echo 'initialize_all_files (void)' >>init.c-tmp
|
|
|
|
@echo '{' >>init.c-tmp
|
2004-02-08 21:42:06 +00:00
|
|
|
@sed -e 's/\(.*\)/ _initialize_\1 ();/' <init.l-tmp >>init.c-tmp
|
1999-04-16 01:35:26 +00:00
|
|
|
@echo '}' >>init.c-tmp
|
1999-09-28 21:55:21 +00:00
|
|
|
@rm init.l-tmp
|
1999-04-16 01:35:26 +00:00
|
|
|
@mv init.c-tmp init.c
|
|
|
|
|
|
|
|
.PRECIOUS: init.c
|
|
|
|
|
|
|
|
# Removing the old gdb first works better if it is running, at least on SunOS.
|
2004-02-08 04:25:07 +00:00
|
|
|
gdb$(EXEEXT): gdb.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
|
1999-04-16 01:35:26 +00:00
|
|
|
rm -f gdb$(EXEEXT)
|
2003-01-04 19:27:19 +00:00
|
|
|
$(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
2004-02-08 04:25:07 +00:00
|
|
|
-o gdb$(EXEEXT) gdb.o libgdb.a \
|
2002-09-26 17:46:04 +00:00
|
|
|
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2004-02-18 19:01:36 +00:00
|
|
|
$(TUI)$(EXEEXT): tui-main.o libgdb.a $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
|
|
|
|
rm -f $(TUI)$(EXEEXT)
|
|
|
|
$(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
|
|
|
-o $(TUI)$(EXEEXT) tui-main.o libgdb.a \
|
|
|
|
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
|
|
|
|
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
# Convenience rule to handle recursion.
|
2008-04-14 19:47:29 +00:00
|
|
|
$(LIBGNU) $(GNULIB_H): all-lib
|
|
|
|
all-lib: gnulib/Makefile
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib subdir_do
|
|
|
|
.PHONY: all-lib
|
|
|
|
|
2010-10-06 16:02:45 +00:00
|
|
|
# Convenience rule to handle recursion.
|
|
|
|
.PHONY: all-data-directory
|
|
|
|
all-data-directory: data-directory/Makefile
|
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=data-directory subdir_do
|
|
|
|
|
1999-08-31 01:14:27 +00:00
|
|
|
# Create a library of the gdb object files and build GDB by linking
|
|
|
|
# against that.
|
|
|
|
#
|
|
|
|
# init.o is very important. It pulls in the rest of GDB.
|
2004-02-08 21:42:06 +00:00
|
|
|
LIBGDB_OBS= $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
|
1999-08-31 01:14:27 +00:00
|
|
|
libgdb.a: $(LIBGDB_OBS)
|
|
|
|
-rm -f libgdb.a
|
|
|
|
$(AR) q libgdb.a $(LIBGDB_OBS)
|
|
|
|
$(RANLIB) libgdb.a
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
# This is useful when debugging GDB, because some Unix's don't let you run GDB
|
|
|
|
# on itself without copying the executable. So "make gdb1" will make
|
|
|
|
# gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
|
|
|
|
# Removing gdb1 before the copy is the right thing if gdb1 is open
|
|
|
|
# in another process.
|
|
|
|
gdb1$(EXEEXT): gdb$(EXEEXT)
|
|
|
|
rm -f gdb1$(EXEEXT)
|
|
|
|
cp gdb$(EXEEXT) gdb1$(EXEEXT)
|
|
|
|
|
|
|
|
# Put the proper machine-specific files first, so M-. on a machine
|
|
|
|
# specific routine gets the one for the correct machine. (FIXME: those
|
|
|
|
# files go in twice; we should be removing them from the main list).
|
|
|
|
|
|
|
|
# TAGS depends on all the files that go into it so you can rebuild TAGS
|
|
|
|
# with `make TAGS' and not have to say `rm TAGS' first.
|
|
|
|
|
2009-04-21 20:19:13 +00:00
|
|
|
GDB_NM_FILE = @GDB_NM_FILE@
|
2005-09-28 02:55:41 +00:00
|
|
|
TAGS: $(DEPFILES) $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR)
|
1999-04-16 01:35:26 +00:00
|
|
|
@echo Making TAGS
|
2009-04-21 20:19:13 +00:00
|
|
|
@etags $(srcdir)/$(GDB_NM_FILE) \
|
2005-09-28 02:55:41 +00:00
|
|
|
`(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
|
1999-04-16 01:35:26 +00:00
|
|
|
echo $(srcdir)/$$i ; \
|
|
|
|
done ; for i in $(TAGFILES_WITH_SRCDIR); do \
|
|
|
|
echo $$i ; \
|
|
|
|
done) | sed -e 's/\.o$$/\.c/'` \
|
|
|
|
`find $(srcdir)/config -name '*.h' -print`
|
|
|
|
|
|
|
|
tags: TAGS
|
|
|
|
|
2000-03-03 05:44:39 +00:00
|
|
|
clean mostlyclean: $(CONFIG_CLEAN)
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(CLEANDIRS)" subdir_do
|
2001-05-12 00:31:09 +00:00
|
|
|
rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp version.c-tmp
|
1999-04-16 01:35:26 +00:00
|
|
|
rm -f init.c version.c
|
1999-08-31 01:14:27 +00:00
|
|
|
rm -f gdb$(EXEEXT) core make.log
|
1999-04-16 01:35:26 +00:00
|
|
|
rm -f gdb[0-9]$(EXEEXT)
|
2005-05-12 16:01:08 +00:00
|
|
|
rm -f test-cp-name-parser$(EXEEXT)
|
2007-02-26 19:20:21 +00:00
|
|
|
rm -f xml-builtin.c stamp-xml
|
2009-03-02 01:27:35 +00:00
|
|
|
rm -f $(DEPDIR)/*
|
2005-03-11 02:24:23 +00:00
|
|
|
|
2004-02-18 19:01:36 +00:00
|
|
|
.PHONY: clean-tui
|
|
|
|
clean-tui:
|
|
|
|
rm -f $(TUI)$(EXEEXT)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2004-02-15 14:49:23 +00:00
|
|
|
# This used to depend on c-exp.c m2-exp.c TAGS
|
1999-04-16 01:35:26 +00:00
|
|
|
# I believe this is wrong; the makefile standards for distclean just
|
|
|
|
# describe removing files; the only sort of "re-create a distribution"
|
|
|
|
# functionality described is if the distributed files are unmodified.
|
2001-11-18 05:09:26 +00:00
|
|
|
# NB: While GDBSERVER might be configured on native systems, it isn't
|
2006-05-19 20:42:47 +00:00
|
|
|
# always included in SUBDIRS. Remove the gdbserver files explicitly.
|
1999-04-16 01:35:26 +00:00
|
|
|
distclean: clean
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do
|
2001-11-18 05:09:26 +00:00
|
|
|
rm -f gdbserver/config.status gdbserver/config.log
|
|
|
|
rm -f gdbserver/tm.h gdbserver/xm.h gdbserver/nm.h
|
|
|
|
rm -f gdbserver/Makefile gdbserver/config.cache
|
2007-11-17 00:41:17 +00:00
|
|
|
rm -f nm.h config.status config.h stamp-h .gdbinit
|
1999-04-16 01:35:26 +00:00
|
|
|
rm -f y.output yacc.acts yacc.tmp y.tab.h
|
|
|
|
rm -f config.log config.cache
|
|
|
|
rm -f Makefile
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
rm -rf $(DEPDIR)
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
maintainer-clean: local-maintainer-clean do-maintainer-clean distclean
|
|
|
|
realclean: maintainer-clean
|
|
|
|
|
|
|
|
local-maintainer-clean:
|
|
|
|
@echo "This command is intended for maintainers to use;"
|
|
|
|
@echo "it deletes files that may require special tools to rebuild."
|
2004-02-15 14:49:23 +00:00
|
|
|
rm -f c-exp.c \
|
2005-05-12 16:01:08 +00:00
|
|
|
cp-name-parser.c \
|
2004-02-15 14:49:23 +00:00
|
|
|
ada-lex.c ada-exp.c \
|
|
|
|
objc-exp.c \
|
1999-04-16 01:35:26 +00:00
|
|
|
jv-exp.tab \
|
2004-02-15 14:49:23 +00:00
|
|
|
f-exp.c m2-exp.c p-exp.c
|
1999-04-16 01:35:26 +00:00
|
|
|
rm -f TAGS $(INFOFILES)
|
|
|
|
rm -f $(YYFILES)
|
2007-11-17 00:41:17 +00:00
|
|
|
rm -f nm.h config.status
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
do-maintainer-clean:
|
* Makefile.in (LIBGNU, INCGNU): Define.
(INTERNAL_CFLAGS_BASE): Add INCGNU.
(INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
(CLEANDIRS): New.
($(LIBGNU), all-lib): New rules.
(clean, distclean, do-maintainer-clean): Use CLEANDIRS.
* configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
* gnulib: New directory, from gnulib-tool.
* configure, aclocal.m4: Regenerated.
* Makefile.in (LIBOBJS): New.
(OBS): Use LIBOBJS.
(memmem.o): New rule.
* configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
* configure: Regenerated.
2008-04-14 18:04:00 +00:00
|
|
|
@$(MAKE) $(FLAGS_TO_PASS) DO=maintainer-clean "DODIRS=$(CLEANDIRS)" \
|
1999-04-16 01:35:26 +00:00
|
|
|
subdir_do
|
|
|
|
|
2004-07-29 Andrew Cagney <cagney@gnu.org>
Fix PR i18n/761.
* Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
(.PHONY): Add all-po install-po, uninstall-po, clean-po,
$(PACKAGE).pot and update-po.
(all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
(po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
(update-po): New rules.
(localedir): Define using autoconf.
(diststuff): Add $(PACKAGE).pot and $(CATALOGS)
(GDB_CFLAGS): Define LOCALEDIR using $(localedir).
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
* configure.in: Generate CATALOGS and LINGUAS from contents of
src/gdb/po/ directory. Set @localedir@ in Makefile.in.
* configure: Re-generate.
* po/gdbtext: New file
2004-07-30 14:30:08 +00:00
|
|
|
diststuff: $(DISTSTUFF) $(PACKAGE).pot $(CATALOGS)
|
2000-02-16 04:45:41 +00:00
|
|
|
cd doc; $(MAKE) $(MFLAGS) diststuff
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
subdir_do: force
|
|
|
|
@for i in $(DODIRS); do \
|
2010-10-06 16:46:12 +00:00
|
|
|
case $$i in \
|
|
|
|
$(REQUIRED_SUBDIRS)) \
|
|
|
|
if [ ! -f ./$$i/Makefile ] ; then \
|
|
|
|
echo "Missing $$i/Makefile" >&2 ; \
|
|
|
|
exit 1 ; \
|
|
|
|
fi ;; \
|
|
|
|
esac ; \
|
1999-04-16 01:35:26 +00:00
|
|
|
if [ -f ./$$i/Makefile ] ; then \
|
|
|
|
if (cd ./$$i; \
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
|
|
|
|
else exit 1 ; fi ; \
|
|
|
|
else true ; fi ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
Makefile: Makefile.in config.status @frags@
|
2006-05-15 17:11:59 +00:00
|
|
|
# Regenerate the Makefile and the tm.h / nm.h links.
|
2008-04-14 19:47:29 +00:00
|
|
|
CONFIG_FILES="Makefile" \
|
2006-05-15 17:11:59 +00:00
|
|
|
CONFIG_COMMANDS= \
|
|
|
|
CONFIG_HEADERS= \
|
|
|
|
$(SHELL) config.status
|
2008-04-14 19:47:29 +00:00
|
|
|
|
|
|
|
gnulib/Makefile: gnulib/Makefile.in gnulib/Makefile.in config.status @frags@
|
|
|
|
CONFIG_FILES="gnulib/Makefile" \
|
|
|
|
CONFIG_COMMANDS="depfiles" \
|
|
|
|
CONFIG_HEADERS= \
|
|
|
|
CONFIG_LINKS= \
|
|
|
|
$(SHELL) config.status
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2010-10-06 16:02:45 +00:00
|
|
|
data-directory/Makefile: data-directory/Makefile.in config.status @frags@
|
|
|
|
CONFIG_FILES="data-directory/Makefile" \
|
|
|
|
CONFIG_COMMANDS="depfiles" \
|
|
|
|
CONFIG_HEADERS= \
|
|
|
|
CONFIG_LINKS= \
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
config.h: stamp-h ; @true
|
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
etc/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure, config.status): New rules.
(Makefile): Depend on config.status.
* configure.in: Accept --enable-maintainer-mode, set and
substitute MAINT accordingly.
gdb/
* Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
(AUTOCONF, configure_deps, AUTOHEADER): New variables.
($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
(am--refresh): New rules.
(stamp-h, config.status): List config.in and configure including
$(srcdir)/ prefix.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2009-07-30 22:44:50 +00:00
|
|
|
stamp-h: $(srcdir)/config.in config.status
|
2006-05-15 17:11:59 +00:00
|
|
|
CONFIG_HEADERS=config.h:config.in \
|
2008-08-09 18:57:08 +00:00
|
|
|
CONFIG_COMMANDS="default depdir" \
|
2006-05-15 17:11:59 +00:00
|
|
|
CONFIG_FILES= \
|
|
|
|
CONFIG_LINKS= \
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
etc/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure, config.status): New rules.
(Makefile): Depend on config.status.
* configure.in: Accept --enable-maintainer-mode, set and
substitute MAINT accordingly.
gdb/
* Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
(AUTOCONF, configure_deps, AUTOHEADER): New variables.
($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
(am--refresh): New rules.
(stamp-h, config.status): List config.in and configure including
$(srcdir)/ prefix.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2009-07-30 22:44:50 +00:00
|
|
|
config.status: $(srcdir)/configure configure.tgt configure.host
|
1999-04-16 01:35:26 +00:00
|
|
|
$(SHELL) config.status --recheck
|
|
|
|
|
intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.
etc/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure, config.status): New rules.
(Makefile): Depend on config.status.
* configure.in: Accept --enable-maintainer-mode, set and
substitute MAINT accordingly.
gdb/
* Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, aclocal_m4_deps)
(AUTOCONF, configure_deps, AUTOHEADER): New variables.
($(srcdir)/aclocal.m4, $(srcdir)/configure, $(srcdir)/config.in)
(am--refresh): New rules.
(stamp-h, config.status): List config.in and configure including
$(srcdir)/ prefix.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2009-07-30 22:44:50 +00:00
|
|
|
ACLOCAL = aclocal
|
|
|
|
ACLOCAL_AMFLAGS = -I gnulib/m4
|
|
|
|
aclocal_m4_deps = \
|
|
|
|
configure.ac \
|
|
|
|
gnulib/m4/extensions.m4 \
|
|
|
|
gnulib/m4/gnulib-common.m4 \
|
|
|
|
gnulib/m4/gnulib-comp.m4 \
|
|
|
|
gnulib/m4/include_next.m4 \
|
|
|
|
gnulib/m4/longlong.m4 \
|
|
|
|
gnulib/m4/memchr.m4 \
|
|
|
|
gnulib/m4/memcmp.m4 \
|
|
|
|
gnulib/m4/memmem.m4 \
|
|
|
|
gnulib/m4/onceonly_2_57.m4 \
|
|
|
|
gnulib/m4/stdint.m4 \
|
|
|
|
gnulib/m4/string_h.m4 \
|
|
|
|
gnulib/m4/wchar.m4 \
|
|
|
|
../config/extensions.m4 \
|
|
|
|
../config/lead-dot.m4 \
|
|
|
|
../config/proginstall.m4 \
|
|
|
|
../bfd/bfd.m4 \
|
|
|
|
../config/acinclude.m4 \
|
|
|
|
../config/override.m4 \
|
|
|
|
../config/gettext-sister.m4 \
|
|
|
|
../config/lib-ld.m4 \
|
|
|
|
../config/lib-prefix.m4 \
|
|
|
|
../config/lib-link.m4 \
|
|
|
|
../config/acx.m4 \
|
|
|
|
../config/tcl.m4 \
|
|
|
|
../config/depstand.m4 \
|
|
|
|
../config/lcmessage.m4 \
|
|
|
|
../config/codeset.m4
|
|
|
|
|
|
|
|
$(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_m4_deps)
|
|
|
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
|
|
|
|
|
|
|
AUTOCONF = autoconf
|
|
|
|
configure_deps = $(srcdir)/configure.ac $(srcdir)/aclocal.m4
|
|
|
|
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(configure_deps)
|
|
|
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
|
|
|
|
|
AUTOHEADER = autoheader
|
|
|
|
$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@ $(configure_deps)
|
|
|
|
cd $(srcdir) && $(AUTOHEADER)
|
|
|
|
rm -f stamp-h
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
# automatic rebuilding in automake-generated Makefiles requires
|
|
|
|
# this rule in the toplevel Makefile, which, with GNU make, causes
|
|
|
|
# the desired updates through the implicit regeneration of the Makefile
|
|
|
|
# and all of its prerequisites.
|
|
|
|
am--refresh:
|
|
|
|
@:
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
force:
|
|
|
|
|
|
|
|
# Documentation!
|
|
|
|
# GDB QUICK REFERENCE (TeX dvi file, CM fonts)
|
|
|
|
doc/refcard.dvi:
|
|
|
|
cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS)
|
|
|
|
|
|
|
|
# GDB QUICK REFERENCE (PostScript output, common PS fonts)
|
|
|
|
doc/refcard.ps:
|
|
|
|
cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS)
|
|
|
|
|
|
|
|
# GDB MANUAL: TeX dvi file
|
|
|
|
doc/gdb.dvi:
|
|
|
|
cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS)
|
|
|
|
|
|
|
|
# GDB MANUAL: info file
|
|
|
|
doc/gdb.info:
|
|
|
|
cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS)
|
|
|
|
|
|
|
|
# Make copying.c from COPYING
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
$(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ $(srcdir)/../COPYING3 $(srcdir)/copying.awk
|
2000-04-13 05:33:41 +00:00
|
|
|
awk -f $(srcdir)/copying.awk \
|
2007-08-23 20:33:48 +00:00
|
|
|
< $(srcdir)/../COPYING3 > $(srcdir)/copying.tmp
|
2000-04-13 05:33:41 +00:00
|
|
|
mv $(srcdir)/copying.tmp $(srcdir)/copying.c
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2001-05-12 00:31:09 +00:00
|
|
|
version.c: Makefile version.in
|
|
|
|
rm -f version.c-tmp version.c
|
|
|
|
echo '#include "version.h"' >> version.c-tmp
|
2002-02-23 20:36:49 +00:00
|
|
|
echo 'const char version[] = "'"`sed q ${srcdir}/version.in`"'";' >> version.c-tmp
|
2001-05-12 00:31:09 +00:00
|
|
|
echo 'const char host_name[] = "$(host_alias)";' >> version.c-tmp
|
|
|
|
echo 'const char target_name[] = "$(target_alias)";' >> version.c-tmp
|
|
|
|
mv version.c-tmp version.c
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2004-04-15 14:29:21 +00:00
|
|
|
observer.h: observer.sh doc/observer.texi
|
|
|
|
${srcdir}/observer.sh h ${srcdir}/doc/observer.texi observer.h
|
|
|
|
|
|
|
|
observer.inc: observer.sh doc/observer.texi
|
|
|
|
${srcdir}/observer.sh inc ${srcdir}/doc/observer.texi observer.inc
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
lint: $(LINTFILES)
|
|
|
|
$(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
|
2005-09-26 21:45:37 +00:00
|
|
|
`echo $(DEPFILES) $(CONFIG_OBS) | sed 's/\.o /\.c /g'`
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
gdb.cxref: $(SFILES)
|
|
|
|
cxref -I. $(SFILES) >gdb.cxref
|
|
|
|
|
|
|
|
force_update:
|
|
|
|
|
|
|
|
# GNU Make has an annoying habit of putting *all* the Makefile variables
|
|
|
|
# into the environment, unless you include this target as a circumvention.
|
|
|
|
# Rumor is that this will be fixed (and this target can be removed)
|
|
|
|
# in GNU Make 4.0.
|
|
|
|
.NOEXPORT:
|
|
|
|
|
|
|
|
# GNU Make 3.63 has a different problem: it keeps tacking command line
|
|
|
|
# overrides onto the definition of $(MAKE). This variable setting
|
|
|
|
# will remove them.
|
|
|
|
MAKEOVERRIDES=
|
|
|
|
|
2003-01-31 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: Delete nindy files.
* nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
* nindy-share/nindy.c, nindy-share/env.h: Delete files.
* nindy-share/coff.h, nindy-share/block_io.h: Delete files.
* nindy-share/b.out.h, nindy-share/VERSION: Delete files.
* nindy-share/README, nindy-share/Onindy.c: Delete files.
* nindy-tdep.c, nindy-share/Makefile: Delete files.
* Makefile.in (init.c): Remove nindy references.
(saber_gdb): Delete rule.
(ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
and a68v-nat.c.
(hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
(Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
(HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
nindy-share/stop.h.
* hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
* saber.suppress: Delete file.
2003-01-31 20:43:54 +00:00
|
|
|
ALLDEPFILES = \
|
2002-07-30 19:59:06 +00:00
|
|
|
aix-thread.c \
|
2006-07-10 19:40:27 +00:00
|
|
|
alpha-nat.c alphabsd-nat.c alpha-linux-nat.c \
|
|
|
|
alpha-tdep.c alpha-mdebug-tdep.c \
|
|
|
|
alpha-linux-tdep.c alpha-osf1-tdep.c \
|
|
|
|
alphabsd-tdep.c alphafbsd-tdep.c alphanbsd-tdep.c alphaobsd-tdep.c \
|
* amd64-tdep.h: Renamed from x86-64-tdep.h.
* amd64-tdep.c: Renamed from x86-64-tdep.c. Include
"amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-linux-tdep.h: Renamed from x86-64-linux.h.
* amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64bsd-nat.c: Update copyright year.
Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
* configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
* Makefile.in (amd64_linux_tdep_h): Renamed from
x86_64_linux_tdep_h.
(amd64_tdep_h): Renamed from x86_64_tdep_h.
(amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
(amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
(amd64obsd-tdep.o): Update dependencies.
(amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
dependencies.
(x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
dependencies.
(ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
amd64-linux-nat.c amd64-linux-tdep.c.
* config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
* config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
* config/i386/linux64.mt: Renamed from x86-64linux.mt.
(TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
amd64-tdep.o and amd64-linux-tdep.o.
(TM_FILE): Set to tm-linux64.h.
* config/i386/linux64.mh: Renamed from x86-64linux.mh.
(NAT_FILE): Set to nm-linux64.h.
(NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
* config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
2004-02-25 20:45:31 +00:00
|
|
|
amd64-nat.c amd64-tdep.c \
|
2005-09-26 21:45:37 +00:00
|
|
|
amd64bsd-nat.c amd64fbsd-nat.c amd64fbsd-tdep.c \
|
2004-02-18 17:16:46 +00:00
|
|
|
amd64nbsd-nat.c amd64nbsd-tdep.c \
|
* amd64-tdep.h: Renamed from x86-64-tdep.h.
* amd64-tdep.c: Renamed from x86-64-tdep.c. Include
"amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-linux-tdep.h: Renamed from x86-64-linux.h.
* amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64bsd-nat.c: Update copyright year.
Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
* configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
* Makefile.in (amd64_linux_tdep_h): Renamed from
x86_64_linux_tdep_h.
(amd64_tdep_h): Renamed from x86_64_tdep_h.
(amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
(amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
(amd64obsd-tdep.o): Update dependencies.
(amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
dependencies.
(x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
dependencies.
(ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
amd64-linux-nat.c amd64-linux-tdep.c.
* config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
* config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
* config/i386/linux64.mt: Renamed from x86-64linux.mt.
(TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
amd64-tdep.o and amd64-linux-tdep.o.
(TM_FILE): Set to tm-linux64.h.
* config/i386/linux64.mh: Renamed from x86-64linux.mh.
(NAT_FILE): Set to nm-linux64.h.
(NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
* config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
2004-02-25 20:45:31 +00:00
|
|
|
amd64obsd-nat.c amd64obsd-tdep.c \
|
2009-07-03 12:06:36 +00:00
|
|
|
amd64-darwin-tdep.c \
|
2009-02-17 17:56:50 +00:00
|
|
|
amd64-dicos-tdep.c \
|
* amd64-tdep.h: Renamed from x86-64-tdep.h.
* amd64-tdep.c: Renamed from x86-64-tdep.c. Include
"amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64-linux-tdep.h: Renamed from x86-64-linux.h.
* amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
"amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
and "x86-64-tdep.c".
* amd64bsd-nat.c: Update copyright year.
Include "amd64-tdep.h" instead of "x86-64-tdep.h".
* amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* amd64obsd-nat.c: Include "amd64-tdep.h" instead of
"x86-64-tdep.h".
* configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
* configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
* Makefile.in (amd64_linux_tdep_h): Renamed from
x86_64_linux_tdep_h.
(amd64_tdep_h): Renamed from x86_64_tdep_h.
(amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
(amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
(amd64obsd-tdep.o): Update dependencies.
(amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
dependencies.
(x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
dependencies.
(ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
amd64-linux-nat.c amd64-linux-tdep.c.
* config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
* config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
* config/i386/linux64.mt: Renamed from x86-64linux.mt.
(TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
amd64-tdep.o and amd64-linux-tdep.o.
(TM_FILE): Set to tm-linux64.h.
* config/i386/linux64.mh: Renamed from x86-64linux.mh.
(NAT_FILE): Set to nm-linux64.h.
(NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
* config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
* config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
amd64-tdep.o.
2004-02-25 20:45:31 +00:00
|
|
|
amd64-linux-nat.c amd64-linux-tdep.c \
|
2004-11-01 21:05:56 +00:00
|
|
|
amd64-sol2-tdep.c \
|
2010-02-25 20:30:58 +00:00
|
|
|
arm-linux-nat.c arm-linux-tdep.c arm-symbian-tdep.c arm-tdep.c \
|
2006-08-02 21:32:37 +00:00
|
|
|
armnbsd-nat.c armbsd-tdep.c armnbsd-tdep.c armobsd-tdep.c \
|
2002-04-25 20:34:56 +00:00
|
|
|
avr-tdep.c \
|
2005-01-12 21:54:13 +00:00
|
|
|
bsd-uthread.c bsd-kvm.c \
|
* core-aout.c: Delete file.
* Makefile.in (ALLDEPFILES): Remove core-aout.c.
(core-aout.o): Delete rule.
* gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
* config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
* arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
* config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
KERNEL_U_ADDR): Remove.
* i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
(cannot_fetch_register, cannot_store_register): Remove.
(fetch_register): Inline cannot_fetch_register and register_addr.
(store_register): Inline cannot_store_register and register_addr.
* config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
* config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
Remove.
* m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
(fetch_register): Inline register_addr.
(store_register): Inline register_addr.
* config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
* config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
* config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
* config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
REGISTER_U_ADDR): Remove.
* hppa-linux-nat.c (register_addr): Rename to ...
(hppa_linux_register_addr): ... this. Make static.
(fetch_register, store_register): Adapt callers.
* config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
* ppc-linux-nat.c (kernel_u_size): Remove.
* config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
* vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
* config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
(NAT_FILE): Remove.
* config/vax/nm-vax.h: Delete file.
2007-04-25 22:10:09 +00:00
|
|
|
core-regset.c corelow.c \
|
2009-07-03 12:06:36 +00:00
|
|
|
dcache.c dicos-tdep.c darwin-nat.c \
|
2009-02-17 17:56:50 +00:00
|
|
|
exec.c \
|
2004-09-19 15:37:55 +00:00
|
|
|
fbsd-nat.c \
|
|
|
|
fork-child.c \
|
2003-11-09 17:28:08 +00:00
|
|
|
glibc-tdep.c \
|
2003-10-06 21:56:40 +00:00
|
|
|
go32-nat.c h8300-tdep.c \
|
2004-11-20 17:23:57 +00:00
|
|
|
hppa-tdep.c hppa-hpux-tdep.c hppa-hpux-nat.c \
|
2004-05-08 03:27:24 +00:00
|
|
|
hppa-linux-tdep.c hppa-linux-nat.c \
|
2004-06-26 10:06:35 +00:00
|
|
|
hppabsd-nat.c hppabsd-tdep.c \
|
2008-01-19 15:03:50 +00:00
|
|
|
hppaobsd-tdep.c \
|
|
|
|
hppanbsd-nat.c hppanbsd-tdep.c \
|
* Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
(remote-st.o, uw-thread.o): Delete.
(HFILES_NO_SRCDIR, ALLDEPFILES): Update.
* configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
rs6000-*-lynxos* to an obsoletion stanza.
* configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
i[34567]86-*-netware*.
* NEWS: Mention deleted targets.
* coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
config/i386/i386v4.mh, config/i386/i386v42mp.mh,
config/i386/ncr3000.mh, config/i386/ncr3000.mt,
config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
config/rs6000/tm-rs6000ly.h: Delete files.
2007-03-29 19:58:29 +00:00
|
|
|
i386-tdep.c i386-linux-nat.c \
|
2004-11-14 03:57:04 +00:00
|
|
|
i386v4-nat.c i386-cygwin-tdep.c \
|
* i386fbsd-tdep.c: New file.
(i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
i386bsd-tdep.c.
(_initialize_i386fbsd_tdep): New function.
(i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
(i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs, TDEP->sizeof_gregset and
TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
TDEP->sc_num_regs.
(i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
to initialize TDEP->sc_num_regs.
* i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
(_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
FreeBSD ELF OS/ABI's here.
* Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
(i386fbsd-tdep.o): New target.
* config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
* config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2003-10-11 15:22:39 +00:00
|
|
|
i386bsd-nat.c i386bsd-tdep.c i386fbsd-nat.c i386fbsd-tdep.c \
|
2004-06-27 16:22:43 +00:00
|
|
|
i386nbsd-nat.c i386nbsd-tdep.c i386obsd-nat.c i386obsd-tdep.c \
|
2002-05-11 17:22:27 +00:00
|
|
|
i387-tdep.c \
|
2009-07-03 12:06:36 +00:00
|
|
|
i386-darwin-tdep.c i386-darwin-nat.c \
|
2008-05-01 23:09:14 +00:00
|
|
|
i386-dicos-tdep.c \
|
Unified support for hardware breakpoints and watchpoints on
x86 targets:
* config/i386/nm-i386.h: New file.
* config/i386/nm-i386.h: (i386_cleanup_dregs)
(i386_insert_watchpoint, i386_remove_watchpoint)
(i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): Declare prototypes.
[I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
Define if not already defined.
(TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
(STOPPED_BY_WATCHPOINT, target_stopped_data_address)
(target_insert_watchpoint, target_remove_watchpoint)
(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
to call the appropriate i386_* functions.
* i386-nat.c: New file.
* i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
(I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
(I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
(dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
(maint_show_dr): New variables.
(i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
(i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
(i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
(i386_stopped_data_address, i386_stopped_by_hwbp)
(i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
functions.
(_initialize_i386_nat): New function.
[I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
`show-debug-regs', sets maint_show_dr to non-zero value and
activates debugging print-outs in functions which insert, remove,
and test watchpoints and hardware breakpoints.
* Makefile.in (i386-nat.o): New target.
(ALLDEPFILES): Add i386-nat.o.
2001-03-21 11:36:58 +00:00
|
|
|
i386-linux-tdep.c i386-nat.c \
|
2004-10-30 19:49:41 +00:00
|
|
|
i386-sol2-nat.c i386-sol2-tdep.c \
|
2002-08-15 22:24:01 +00:00
|
|
|
i386gnu-nat.c i386gnu-tdep.c \
|
2000-04-26 07:16:15 +00:00
|
|
|
ia64-linux-nat.c ia64-linux-tdep.c ia64-tdep.c \
|
2004-11-23 21:14:33 +00:00
|
|
|
inf-ptrace.c inf-ttrace.c \
|
* inftarg.c, infptrace.c: Remove files.
* Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
(inftarg.o, infptrace.o): Remove rules.
* gdbcore.h (register_addr): Remove prototype.
* inferior.h (kill_inferior, store_inferior_registers,
fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
call_ptrace, pre_fork_inferior): Remove prototypes.
* target.h (child_xfer_memory, child_pid_to_exec_file,
child_core_file_to_sym_file, child_post_attach,
child_post_startup_inferior, child_acknowledge_created_inferior,
child_insert_fork_catchpoint, child_remove_fork_catchpoint,
child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
child_insert_exec_catchpoint, child_remove_exec_catchpoint,
child_follow_fork, child_reported_exec_events_per_exec_call,
child_has_exited, child_thread_alive): Remove prototypes.
2007-05-07 00:21:04 +00:00
|
|
|
irix5-nat.c \
|
2003-11-14 21:17:51 +00:00
|
|
|
libunwind-frame.c \
|
2006-07-10 19:40:27 +00:00
|
|
|
linux-fork.c \
|
2009-02-06 22:59:01 +00:00
|
|
|
linux-tdep.c \
|
2009-04-30 03:04:28 +00:00
|
|
|
linux-record.c \
|
2009-05-18 13:25:35 +00:00
|
|
|
lm32-tdep.c \
|
2001-07-22 12:41:49 +00:00
|
|
|
m68hc11-tdep.c \
|
2004-10-01 07:29:34 +00:00
|
|
|
m32r-tdep.c \
|
|
|
|
m32r-linux-nat.c m32r-linux-tdep.c \
|
1999-04-16 01:35:26 +00:00
|
|
|
m68k-tdep.c \
|
2004-04-30 23:28:52 +00:00
|
|
|
m68kbsd-nat.c m68kbsd-tdep.c \
|
* Makefile.in (ALLDEPFILES): Update.
(alpha-linux-nat.o, sparc-linux-nat.o): New rules.
(amd64-linux-nat.o, arm-linux-nat.o, hppa-linux-nat.o)
(i386-linux-nat.o, ia64-linux-nat.o, linux-nat.o, m32r-linux-nat.o)
(m68klinux-nat.o, mips-linux-nat.o, ppc-linux-nat.o, s390-nat.o)
(sparc64-linux-nat.o): Update dependencies.
* alpha-linux-nat.c, sparc-linux-nat.c: New files.
* amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(amd64_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(amd64_linux_child_post_start_inferior): Renamed from
child_post_startup_inferior and made static. Call
super_post_startup_inferior.
(super_post_startup_inferior): New.
(_initialize_amd64_linux_nat): Set it. Call linux_target and
add_target.
* arm-linux-nat.c (arm_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(arm_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(_initialize_arm_linux_nat): Add a prototype. Use linux_target and
add_target.
* hppa-linux-nat.c (hppa_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(hppa_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(_initialize_hppa_linux_nat): New function.
* i386-linux-nat.c (i386_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(i386_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(i386_linux_resume): Renamed from child_resume and made static.
(i386_linux_child_post_start_inferior): Renamed from
child_post_startup_inferior and made static. Call
super_post_startup_inferior.
(super_post_startup_inferior): New.
(_initialize_i386_linux_nat): New function.
* i386-nat.c: Remove LINUX_CHILD_POST_STARTUP_INFERIOR #ifndef.
* ia64-linux-nat.c (ia64_linux_xfer_unwind_table): Remove.
(super_xfer_partial): New.
(ia64_linux_xfer_partial): New function. Use it.
(_initialize_ia64_linux_nat): New function.
* ia64-tdep.c (getunwind_table): Revert 2005-06-08 change; use
target_read_partial and document the problem.
* inf-ptrace.c (inf_ptrace_fetch_register): Use
CANNOT_FETCH_REGISTER. Fix some comments.
(inf_ptrace_store_register): Use CANNOT_STORE_REGISTER. Fix some
comments.
* linux-nat.c: Include "inf-ptrace.h" and "auxv.h".
(linux_ops, super_xfer_partial): New variables.
(linux_child_post_startup_inferior): Make static.
(child_post_startup_inferior): Delete.
(linux_nat_attach, linux_nat_detach, resume_callback)
(linux_nat_resume, linux_nat_wait, linux_nat_create_inferior)
(linux_nat_mourn_inferior): Use linux_ops instead of
deprecated_child_ops.
(child_wait): Do not depend on CHILD_WAIT.
(linux_nat_xfer_memory): Remove, replace by ...
(linux_nat_xfer_partial): ... this. Use linux_ops->to_xfer_partial
instead of linux_proc_xfer_memory and child_xfer_memory.
(linux_nat_fetch_registers, linux_nat_store_registers)
(linux_nat_child_post_startup_inferior): New functions.
(init_linux_nat_ops): Use the new functions.
(linux_proc_xfer_memory): Remove, replace by ...
(linux_proc_xfer_partial): ... this. Make static.
(linux_xfer_partial, linux_register_u_offset, linux_target): New
functions.
(_initialize_linux_nat): Do not modify deprecated_child_ops.
* linux-nat.h (linux_proc_xfer_memory): Remove prototype.
(struct mem_attrib, struct target_ops): Remove forward declarations.
(linux_child_post_startup_inferior): Remove prototype.
(linux_target): Add prototype.
* linux-thread-db.c (thread_db_xfer_memory): Remove, replace by ...
(thread_db_xfer_partial): ... this.
(init_thread_db_ops): Set to_xfer_partial instead of
deprecated_xfer_memory.
* m32r-linux-nat.c (m32r_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(m32r_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(_initialize_m32r_linux_nat): New function.
* m68klinux-nat.c (m68k_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(m68k_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(old_fetch_inferior_registers, old_store_inferior_registers): Made
static.
(_initialize_m68k_linux_nat): Use linux_target and add_target.
* mips-linux-nat.c (_initialize_mips_linux_nat): New function.
* ppc-linux-nat.c (ppc_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(ppc_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(_initialize_ppc_linux_nat): New function.
* s390-nat.c (s390_linux_fetch_inferior_registers): Renamed
from fetch_inferior_registers and made static.
(s390_linux_store_inferior_registers): Renamed from
store_inferior_registers and made static.
(_initialize_s390_nat): New function.
* sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
linux_target and add_target.
* config/nm-linux.h: Don't include "auxv.h".
(struct target_waitstatus, child_wait, CHILD_WAIT)
(CHILD_PID_TO_EXEC_FILE, CHILD_INSERT_FORK_CATCHPOINT)
(CHILD_INSERT_VFORK_CATCHPOINT, CHILD_INSERT_EXEC_CATCHPOINT)
(CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH, CHILD_FOLLOW_FORK)
(DEPRECATED_KILL_INFERIOR, NATIVE_XFER_AUXV): Delete.
* config/alpha/alpha-linux.mh (NATDEPFILES): Replace infptrace.o
and inftarg.o with inf-ptrace.o and alpha-linux-nat.o.
* config/sparc/linux.mh (NATDEPFILES): Replace infptrace.o and
inftarg.o with sparc-linux-nat.o.
* config/sparc/linux64.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.
* config/arm/linux.mh (NATDEPFILES): Replace infptrace.o and
inftarg.o with inf-ptrace.o.
* config/i386/linux.mh (NATDEPFILES): Likewise.
* config/i386/linux64.mh (NATDEPFILES): Likewise.
* config/ia64/linux.mh (NATDEPFILES): Likewise.
* config/m32r/linux.mh (NATDEPFILES): Likewise.
* config/m68k/linux.mh (NATDEPFILES): Likewise.
* config/mips/linux.mh (NATDEPFILES): Likewise.
* config/pa/linux.mh (NATDEPFILES): Likewise.
* config/powerpc/linux.mh (NATDEPFILES): Likewise.
* config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
* config/s390/s390.mh (NATDEPFILES): Likewise.
* config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Don't define.
(LINUX_CHILD_POST_STARTUP_INFERIOR): Don't define.
* config/i386/nm-linux64.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
Don't define.
* config/ia64/nm-linux.h: Don't include "target.h".
(NATIVE_XFER_UNWIND_TABLE, ia64_linux_xfer_unwind_table): Remove.
* config/djgpp/fnchange.lst: Add alpha-linux-tdep.c,
alpha-linux-nat.c, sparc-linux-tdep.c, and sparc-linux-nat.c.
2005-09-10 18:11:14 +00:00
|
|
|
m68klinux-nat.c m68klinux-tdep.c \
|
2004-05-24 21:00:09 +00:00
|
|
|
m88k-tdep.c m88kbsd-nat.c \
|
* config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
elf32-microblaze.c, microblaze-rom.c, microblaze-linux-tdep.c,
microblaze-tdep.h, microblaze-tdep.c, microblaze-opc.h,
microblaze-opcm.h, microblaze-dis.c, microblaze-dis.h, sim/microblaze,
microblaze.h, and microblaze.isa.
* configure.tgt: Add targets microblaze*-linux-*, microblaze*-xilinx-*.
* Makefile.in: Build microblaze-tdep.o, microblaze-linux-tdep.o.
HFILES_NO_SRCDIR: Add microblaze-tdep.h.
* microblaze-linux-tdep.c: New.
* microblaze-tdep.c: New.
* microblaze-tdep.h: New.
* NEWS: Announce Xilinx MicroBlaze support.
2009-10-15 19:28:52 +00:00
|
|
|
microblaze-tdep.c microblaze-linux-tdep.c \
|
2006-02-10 21:53:51 +00:00
|
|
|
mingw-hdep.c \
|
2001-11-17 18:38:29 +00:00
|
|
|
mips-linux-nat.c mips-linux-tdep.c \
|
2002-07-27 01:41:15 +00:00
|
|
|
mips-irix-tdep.c \
|
2006-12-16 21:00:29 +00:00
|
|
|
mips-tdep.c \
|
2002-05-21 21:23:44 +00:00
|
|
|
mipsnbsd-nat.c mipsnbsd-tdep.c \
|
2004-10-29 20:49:14 +00:00
|
|
|
mips64obsd-nat.c mips64obsd-tdep.c \
|
2006-12-17 13:30:44 +00:00
|
|
|
nbsd-nat.c nbsd-tdep.c obsd-tdep.c \
|
2005-09-26 21:45:37 +00:00
|
|
|
solib-osf.c \
|
2007-04-10 11:58:15 +00:00
|
|
|
somread.c solib-som.c \
|
2006-02-10 21:53:51 +00:00
|
|
|
posix-hdep.c \
|
2004-04-18 16:50:29 +00:00
|
|
|
ppc-sysv-tdep.c ppc-linux-nat.c ppc-linux-tdep.c \
|
|
|
|
ppcnbsd-nat.c ppcnbsd-tdep.c \
|
2004-04-22 21:13:06 +00:00
|
|
|
ppcobsd-nat.c ppcobsd-tdep.c \
|
2001-02-09 01:47:34 +00:00
|
|
|
procfs.c \
|
* mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
* Makefile.in: Remove references to deleted files.
* README: Do not mention deleted ROM monitor interfaces.
* defs.h (enum language): Delete language_scm.
* expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
(dump_subexp_body_standard): Likewise.
* parse.c (operator_length_standard): Likewise.
* expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
* remote-mips.c: Do not include remote-utils.h.
* remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
throughout.
* value.c: Do not include scm-lang.h.
(unpack_long): Delete scm_unpack call.
* config/h8300/h8300.mt, config/mips/embed.mt,
config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
config/sh/embed.mt, config/sh/linux.mt: Remove references to
deleted files.
* NEWS: Mention removed files.
* gdb.texinfo (Memory): Reference Remote Debugging chapter.
(Character Sets, Caching Data of Remote Targets): Likewise.
(Targets): Delete Remote node. Move its text...
(Debugging Remote Programs): ...to here. Delete description
of the "remote" command.
(Remote configuration): Delete description of "set remotedevice"
and "show remotedevice".
(Embedded Processors): Delete H8/300, H8/500, and SH nodes.
2007-04-13 14:17:47 +00:00
|
|
|
remote-m32r-sdi.c remote-mips.c \
|
2006-05-17 14:40:39 +00:00
|
|
|
remote-sim.c \
|
* mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
* Makefile.in: Remove references to deleted files.
* README: Do not mention deleted ROM monitor interfaces.
* defs.h (enum language): Delete language_scm.
* expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
(dump_subexp_body_standard): Likewise.
* parse.c (operator_length_standard): Likewise.
* expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
* remote-mips.c: Do not include remote-utils.h.
* remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
throughout.
* value.c: Do not include scm-lang.h.
(unpack_long): Delete scm_unpack call.
* config/h8300/h8300.mt, config/mips/embed.mt,
config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
config/sh/embed.mt, config/sh/linux.mt: Remove references to
deleted files.
* NEWS: Mention removed files.
* gdb.texinfo (Memory): Reference Remote Debugging chapter.
(Character Sets, Caching Data of Remote Targets): Likewise.
(Targets): Delete Remote node. Move its text...
(Debugging Remote Programs): ...to here. Delete description
of the "remote" command.
(Remote configuration): Delete description of "set remotedevice"
and "show remotedevice".
(Embedded Processors): Delete H8/300, H8/500, and SH nodes.
2007-04-13 14:17:47 +00:00
|
|
|
dcache.c \
|
1999-04-16 01:35:26 +00:00
|
|
|
rs6000-nat.c rs6000-tdep.c \
|
2001-11-06 21:58:53 +00:00
|
|
|
s390-tdep.c s390-nat.c \
|
2007-01-04 07:09:54 +00:00
|
|
|
score-tdep.c \
|
* NEWS: Mention native Windows support.
* Makefile.in (gdb_select_h, ser_tcp_h): New.
(ALLDEPFILES): Add ser-mingw.c.
(event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
(ser-tcp.o, ser-unix.o): Update.
(ser-mingw.o): New rule.
* configure: Regenerated.
* configure.ac: Add ser-mingw.o for mingw32.
* ser-mingw.c: New file.
* event-loop.c: Include "gdb_select.h".
(gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
* ser-base.c: Include "gdb_select.h".
(ser_base_wait_for): Use gdb_select.
* serial.c (serial_for_fd): New function.
(serial_fdopen): Try "terminal" before "hardwire". Initialize
the allocated struct serial.
(serial_wait_handle): New function.
* serial.h (serial_for_fd, serial_wait_handle): New prototypes.
(struct serial_ops) [USE_WIN32API]: Add wait_handle.
* gdb_select.h: New file.
* ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
(net_close, net_read_prim, net_write_prim): Make global.
(net_open): Likewise. Pass an exception set to select. Whitespace fix.
Document why we can not use gdb_select.
(_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
* ser-tcp.h: New file.
* inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
(handle_sigio): Use gdb_select.
(initialize_stdin_serial): New function.
* terminal.h (initialize_stdin_serial): New prototype.
* top.c (gdb_init): Call initialize_stdin_serial.
* mingw-hdep.c (gdb_select): New function, moved from gdb_select in
event-loop.c. Add exception condition support. Use serial_for_fd
and serial_wait_handle. Fix timeout handling.
* posix-hdep.c: Include "gdb_select.h".
(gdb_select): New function.
* remote-st.c (connect_command): Use gdb_select.
* ser-unix.c: Include "gdb_select.h".
(hardwire_send_break, wait_for): Use gdb_select.
2006-02-10 22:01:43 +00:00
|
|
|
ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \
|
2003-09-08 11:26:21 +00:00
|
|
|
sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \
|
2006-01-15 00:22:50 +00:00
|
|
|
sol2-tdep.c \
|
* solib.h (CLEAR_SOLIB, SOLIB_ADD)
(SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
(SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
(DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
(IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
comments.
* breakpoint.c: Include "solib.h".
(insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
solib_address.
(remove_solib_event_breakpoints, create_solib_event_breakpoint)
(disable_breakpoints_in_shlibs)
(disable_breakpoints_in_unloaded_shlib)
(re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
defined. If PC_SOLIB isn't defined, call solib_address.
(_initialize_breakpoint): Unconditionally install observer.
* corelow.c: Include "solib.h".
[SOLIB_ADD] (solib_add_stub): Remove prototype.
(core_close) [!CLEAR_SOLIB]: Call clear_solib.
(solib_add_stub) [!SOLIB_ADD] Call solib_add.
(core_open): Unconditionally call solib_add_stub.
* fork-child.c: Include "solib.h".
(fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
solib_create_inferior_hook.
* infcmd.c: Include "solib.h".
(attach_command) [!SOLIB_ADD]: Call shlib_rescan. Unconditionally
call re_enable_breakpoints_in_shlibs.
* infrun.c: Include "solib.h".
(SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
defined.
(stop_on_solib_events, show_stop_on_solib_events): Include
unconditionally.
(follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
solib_create_inferior_hook.
(handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
[!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
(_initialize_infrun): Unconditionally add "stop_on_solib-events"
command.
* remote.c: Include "solib.h".
(remote_open_1): Unconditionally call no_shared_libraries.
[!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
* stack.c: Include "solib.h".
(print_frame) [!PC_SOLIB] Call shlib_for_pc.
* xcoffsolib.c (no_shared_libraries): Remove function.
* Makefile.in (SFILES): Add solib.c.
(ALLDEPFILES): Remove solib.c.
(COMMON_OBS): Add solib.o.
(breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
(remote.o, stack.o): Update dependencies.
2005-05-12 20:21:18 +00:00
|
|
|
solib-irix.c solib-svr4.c solib-sunos.c \
|
2009-04-25 10:05:22 +00:00
|
|
|
sparc-linux-nat.c sparc-linux-tdep.c \
|
|
|
|
sparc-sol2-nat.c sparc-sol2-tdep.c sparc64-sol2-tdep.c \
|
|
|
|
sparc-nat.c sparc-tdep.c sparc64-linux-nat.c sparc64-linux-tdep.c \
|
|
|
|
sparc64-nat.c sparc64-tdep.c sparc64fbsd-nat.c sparc64fbsd-tdep.c \
|
2004-01-24 22:18:22 +00:00
|
|
|
sparc64nbsd-nat.c sparc64nbsd-tdep.c sparc64obsd-tdep.c \
|
2004-01-25 11:46:45 +00:00
|
|
|
sparcnbsd-nat.c sparcnbsd-tdep.c sparcobsd-tdep.c \
|
2009-07-31 15:28:27 +00:00
|
|
|
spu-linux-nat.c spu-tdep.c spu-multiarch.c solib-spu.c \
|
2005-05-18 08:52:21 +00:00
|
|
|
v850-tdep.c \
|
2004-08-06 19:14:44 +00:00
|
|
|
vax-nat.c vax-tdep.c vaxbsd-nat.c vaxnbsd-tdep.c \
|
2009-01-12 01:10:28 +00:00
|
|
|
windows-nat.c windows-tdep.c \
|
2001-12-13 13:34:41 +00:00
|
|
|
xcoffread.c xcoffsolib.c \
|
2006-11-14 21:53:59 +00:00
|
|
|
xstormy16-tdep.c \
|
2008-02-11 21:58:41 +00:00
|
|
|
xtensa-tdep.c xtensa-config.c \
|
|
|
|
xtensa-linux-tdep.c xtensa-linux-nat.c xtensa-xtregs.c
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2006-05-19 20:42:47 +00:00
|
|
|
# Some files need explicit build rules (due to -Werror problems) or due
|
2002-08-16 23:32:04 +00:00
|
|
|
# to sub-directory fun 'n' games.
|
|
|
|
|
|
|
|
hpux-thread.o: $(srcdir)/hpux-thread.c
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
$(COMPILE) -I$(srcdir)/osf-share -I$(srcdir)/osf-share/HP800 \
|
|
|
|
-I/usr/include/dce $(srcdir)/hpux-thread.c
|
|
|
|
$(POSTCOMPILE)
|
2002-08-16 23:32:04 +00:00
|
|
|
|
2003-01-13 18:00:16 +00:00
|
|
|
# main.o needs an explicit build rule to get TARGET_SYSTEM_ROOT and BINDIR.
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
main.o: $(srcdir)/main.c
|
|
|
|
$(COMPILE) $(TARGET_SYSTEM_ROOT_DEFINE) -DBINDIR=\"$(bindir)\" $(srcdir)/main.c
|
|
|
|
$(POSTCOMPILE)
|
2003-01-13 18:00:16 +00:00
|
|
|
|
2003-08-10 19:58:21 +00:00
|
|
|
# FIXME: cagney/2003-08-10: "monitor.c" gets -Wformat-nonliteral
|
|
|
|
# errors. It turns out that that is the least of monitor.c's
|
|
|
|
# problems. The function print_vsprintf appears to be using
|
|
|
|
# va_arg(long) to extract CORE_ADDR parameters - something that
|
|
|
|
# definitly will not work. "monitor.c" needs to be rewritten so that
|
|
|
|
# it doesn't use format strings and instead uses callbacks.
|
|
|
|
monitor.o: $(srcdir)/monitor.c
|
2010-09-02 13:58:06 +00:00
|
|
|
$(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \
|
|
|
|
$(COMPILE.post) $(srcdir)/monitor.c
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
$(POSTCOMPILE)
|
2003-08-10 19:58:21 +00:00
|
|
|
|
2006-02-02 02:26:48 +00:00
|
|
|
# Do not try to build "printcmd.c" with -Wformat-nonliteral. It manually
|
|
|
|
# checks format strings.
|
2003-08-16 17:49:12 +00:00
|
|
|
printcmd.o: $(srcdir)/printcmd.c
|
2010-09-02 13:58:06 +00:00
|
|
|
$(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \
|
|
|
|
$(COMPILE.post) $(srcdir)/printcmd.c
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
$(POSTCOMPILE)
|
2003-08-16 17:49:12 +00:00
|
|
|
|
2004-07-29 Andrew Cagney <cagney@gnu.org>
Fix PR i18n/761.
* Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
(.PHONY): Add all-po install-po, uninstall-po, clean-po,
$(PACKAGE).pot and update-po.
(all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
(po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
(update-po): New rules.
(localedir): Define using autoconf.
(diststuff): Add $(PACKAGE).pot and $(CATALOGS)
(GDB_CFLAGS): Define LOCALEDIR using $(localedir).
(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
* configure.in: Generate CATALOGS and LINGUAS from contents of
src/gdb/po/ directory. Set @localedir@ in Makefile.in.
* configure: Re-generate.
* po/gdbtext: New file
2004-07-30 14:30:08 +00:00
|
|
|
# Message files. Based on code in gcc/Makefile.in.
|
|
|
|
|
|
|
|
# Rules for generating translated message descriptions. Disabled by
|
|
|
|
# autoconf if the tools are not available.
|
|
|
|
|
|
|
|
.SUFFIXES: .po .gmo .pox .pot
|
|
|
|
.PHONY: all-po install-po uninstall-po clean-po update-po $(PACKAGE).pot
|
|
|
|
|
|
|
|
all-po: $(CATALOGS)
|
|
|
|
|
|
|
|
# This notation should be acceptable to all Make implementations used
|
|
|
|
# by people who are interested in updating .po files.
|
|
|
|
update-po: $(CATALOGS:.gmo=.pox)
|
|
|
|
|
|
|
|
# N.B. We do not attempt to copy these into $(srcdir). The snapshot
|
|
|
|
# script does that.
|
|
|
|
.po.gmo:
|
|
|
|
-test -d po || mkdir po
|
|
|
|
$(GMSGFMT) --statistics -o $@ $<
|
|
|
|
|
|
|
|
# The new .po has to be gone over by hand, so we deposit it into
|
|
|
|
# build/po with a different extension. If build/po/$(PACKAGE).pot
|
|
|
|
# exists, use it (it was just created), else use the one in srcdir.
|
|
|
|
.po.pox:
|
|
|
|
-test -d po || mkdir po
|
|
|
|
$(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \
|
|
|
|
then echo po/$(PACKAGE).pot; \
|
|
|
|
else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@
|
|
|
|
|
|
|
|
# This rule has to look for .gmo modules in both srcdir and the cwd,
|
|
|
|
# and has to check that we actually have a catalog for each language,
|
|
|
|
# in case they weren't built or included with the distribution.
|
|
|
|
install-po:
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(datadir)
|
|
|
|
cats="$(CATALOGS)"; for cat in $$cats; do \
|
|
|
|
lang=`basename $$cat | sed 's/\.gmo$$//'`; \
|
|
|
|
if [ -f $$cat ]; then :; \
|
|
|
|
elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
|
|
|
|
else continue; \
|
|
|
|
fi; \
|
|
|
|
dir=$(localedir)/$$lang/LC_MESSAGES; \
|
|
|
|
echo $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$$dir; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$$dir || exit 1; \
|
|
|
|
echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
|
|
|
|
$(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
|
|
|
|
done
|
|
|
|
uninstall-po:
|
|
|
|
cats="$(CATALOGS)"; for cat in $$cats; do \
|
|
|
|
lang=`basename $$cat | sed 's/\.gmo$$//'`; \
|
|
|
|
if [ -f $$cat ]; then :; \
|
|
|
|
elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
|
|
|
|
else continue; \
|
|
|
|
fi; \
|
|
|
|
dir=$(localedir)/$$lang/LC_MESSAGES; \
|
|
|
|
rm -f $(DESTDIR)$$dir/$(PACKAGE).mo; \
|
|
|
|
done
|
|
|
|
# Delete po/*.gmo only if we are not building in the source directory.
|
|
|
|
clean-po:
|
|
|
|
-if [ ! -f Makefile.in ]; then rm -f po/*.gmo; fi
|
|
|
|
|
|
|
|
# Rule for regenerating the message template (gdb.pot). Instead of
|
|
|
|
# forcing everyone to edit POTFILES.in, which proved impractical, this
|
|
|
|
# rule has no dependencies and always regenerates gdb.pot. This is
|
|
|
|
# relatively harmless since the .po files do not directly depend on
|
|
|
|
# it. The .pot file is left in the build directory. Since GDB's
|
|
|
|
# Makefile lacks a cannonical list of sources (missing xm, tm and nm
|
|
|
|
# files) force this rule.
|
|
|
|
$(PACKAGE).pot: po/$(PACKAGE).pot
|
|
|
|
po/$(PACKAGE).pot: force
|
|
|
|
-test -d po || mkdir po
|
|
|
|
sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir)
|
|
|
|
|
2004-08-04 20:43:14 +00:00
|
|
|
|
2002-08-25 21:43:05 +00:00
|
|
|
#
|
2003-07-08 20:18:41 +00:00
|
|
|
# YACC/LEX dependencies
|
2002-08-25 21:43:05 +00:00
|
|
|
#
|
2004-02-15 14:49:23 +00:00
|
|
|
# LANG-exp.c is generated in objdir from LANG-exp.y if it doesn't
|
|
|
|
# exist in srcdir, then compiled in objdir to LANG-exp.o. If we
|
|
|
|
# said LANG-exp.c rather than ./c-exp.c some makes would
|
|
|
|
# sometimes re-write it into $(srcdir)/c-exp.c. Remove bogus
|
2003-07-08 20:18:41 +00:00
|
|
|
# decls for malloc/realloc/free which conflict with everything else.
|
2004-02-15 14:49:23 +00:00
|
|
|
# Strictly speaking c-exp.c should therefore depend on
|
2003-07-08 20:18:41 +00:00
|
|
|
# Makefile.in, but that was a pretty big annoyance.
|
2002-08-25 21:43:05 +00:00
|
|
|
|
2004-02-15 14:49:23 +00:00
|
|
|
.SUFFIXES: .y .l
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
.y.c:
|
2010-11-19 18:10:51 +00:00
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ $@.tmp \
|
|
|
|
|| (rm -f $@; false)
|
|
|
|
sed -e '/extern.*malloc/d' \
|
2003-07-08 20:18:41 +00:00
|
|
|
-e '/extern.*realloc/d' \
|
|
|
|
-e '/extern.*free/d' \
|
|
|
|
-e '/include.*malloc.h/d' \
|
2004-10-15 16:17:34 +00:00
|
|
|
-e 's/\([^x]\)malloc/\1xmalloc/g' \
|
|
|
|
-e 's/\([^x]\)realloc/\1xrealloc/g' \
|
2008-10-27 11:46:24 +00:00
|
|
|
-e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
|
|
|
|
-e 's/\([ \t;,(]\)free$$/\1xfree/g' \
|
2003-08-02 20:11:48 +00:00
|
|
|
-e '/^#line.*y.tab.c/d' \
|
2010-11-19 18:10:51 +00:00
|
|
|
-e "s/^\(#line.*\)`basename $<`/\1`echo $<|sed 's/\//\\\\\//g'`/" \
|
|
|
|
< $@.tmp > $@
|
|
|
|
rm -f $@.tmp
|
2004-02-15 14:49:23 +00:00
|
|
|
.l.c:
|
2004-10-06 09:28:55 +00:00
|
|
|
if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
|
|
|
|
$(FLEX) -o$@ $< && \
|
|
|
|
rm -f $@.new && \
|
|
|
|
sed -e '/extern.*malloc/d' \
|
|
|
|
-e '/extern.*realloc/d' \
|
|
|
|
-e '/extern.*free/d' \
|
|
|
|
-e '/include.*malloc.h/d' \
|
2004-10-15 16:17:34 +00:00
|
|
|
-e 's/\([^x]\)malloc/\1xmalloc/g' \
|
|
|
|
-e 's/\([^x]\)realloc/\1xrealloc/g' \
|
2008-10-27 11:46:24 +00:00
|
|
|
-e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
|
|
|
|
-e 's/\([ \t;,(]\)free$$/\1xfree/g' \
|
2004-10-06 09:28:55 +00:00
|
|
|
-e 's/yy_flex_xrealloc/yyxrealloc/g' \
|
|
|
|
< $@ > $@.new && \
|
|
|
|
rm -f $@ && \
|
|
|
|
mv $@.new $@; \
|
|
|
|
elif [ -f $@ ]; then \
|
2004-02-15 14:49:23 +00:00
|
|
|
echo "Warning: $*.c older than $*.l and flex not available."; \
|
2004-10-06 09:28:55 +00:00
|
|
|
else \
|
|
|
|
echo "$@ missing and flex not available."; \
|
|
|
|
false; \
|
2003-07-08 20:18:41 +00:00
|
|
|
fi
|
2004-02-15 14:49:23 +00:00
|
|
|
|
2010-11-22 20:30:58 +00:00
|
|
|
.PRECIOUS: ada-lex.c
|
2002-08-25 21:43:05 +00:00
|
|
|
|
* Makefile.in (XMLFILES): New.
(COMMON_OBS): Add xml-builtin.o.
(xml-builtin.c, stamp-xml): New rules.
(xml-tdesc.o): Update.
* features/feature_to_c.sh: New file.
* xml-support.c (MAX_XINCLUDE_DEPTH): Define.
(struct gdb_xml_parser): Add dtd_name and is_xinclude.
(gdb_xml_start_element): Initialize scope after possibly reallocating
scopes. Move cleanup later. Handle the XInclude description
specially.
(gdb_xml_end_element): Only parse the body if there is a current element.
Call XML_DefaultCurrent if there is no element.
(gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
(struct xinclude_parsing_data, xinclude_start_include)
(xinclude_end_include, xml_xinclude_default)
(xml_xinclude_start_doctype, xml_xinclude_end_doctype)
(xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
(xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
* xml-support.h (xml_fetch_another, xml_process_xincludes)
(fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
* xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
XInclude directives. Use the compiled in DTD.
(fetch_xml_from_file): Add baton argument. Treat it as a containing
directory name. Do not warn here.
(file_read_description_xml): Update call. Warn here instead. Pass
a dirname as baton.
(fetch_available_features_from_target): New.
(target_read_description_xml): Use it.
* features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
to handle XInclude.
* features/xinclude.dtd: New file.
* gdb.xml/bad-include.xml, gdb.xml/inc-2.xml, gdb.xml/inc-body.xml,
gdb.xml/includes.xml, gdb.xml/tdesc-xinclude.exp: New files.
* gdb.texinfo (Target Description Format): Add section on XInclude.
2007-02-07 22:48:06 +00:00
|
|
|
# XML rules
|
|
|
|
|
|
|
|
xml-builtin.c: stamp-xml; @true
|
|
|
|
stamp-xml: $(srcdir)/features/feature_to_c.sh Makefile $(XMLFILES)
|
|
|
|
rm -f xml-builtin.tmp
|
|
|
|
AWK="$(AWK)" \
|
|
|
|
$(SHELL) $(srcdir)/features/feature_to_c.sh \
|
|
|
|
xml-builtin.tmp $(XMLFILES)
|
|
|
|
$(SHELL) $(srcdir)/../move-if-change xml-builtin.tmp xml-builtin.c
|
|
|
|
echo stamp > stamp-xml
|
|
|
|
|
|
|
|
.PRECIOUS: xml-builtin.c
|
|
|
|
|
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-12-01 18:01:38 +00:00
|
|
|
#
|
2002-08-21 05:40:07 +00:00
|
|
|
# gdb/cli/ dependencies
|
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-12-01 18:01:38 +00:00
|
|
|
#
|
|
|
|
# Need to explicitly specify the compile rule as make will do nothing
|
2003-07-08 20:18:41 +00:00
|
|
|
# or try to compile the object file into the sub-directory.
|
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
and documentation.
(add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
Moved here from command.c.
(add_info, add_info_alias, add_com, add_com_alias): Moved here from
top.c.
* cli/cli-decode.h: Definitions/declarations for the above.
* cli/cli-cmds.c: New file. GDB CLI commands.
(error_no_arg, info_command, show_command, help_command, show_version,
quit_command, pwd_command, cd_command, echo_command, shell_escape,
make_command, show_user, set_debug, show_debug, init_cmd_lists):
Moved here from top.c.
(apropos_command): Moved here from command.c.
(complete_command, source_command): Moved here (part) from top.c.
(is_complete_command): New function. Checks if a command is the
"complete" command.
(init_cli_cmds): New function. Add commands to the CLI (from code
previously in top.c.
* cli/cli-cmds.h: Definitions/declarations for the above.
* cli/cli-script.c: New file. GDB CLI command scripting.
(build_command_line, get_command_line, print_command_lines,
print_command_line, execute_user_command, execute_control_command,
while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
insert_args, realloc_body_list, read_next_line,
recurse_read_control_structure, read_command_lines, free_command_lines,
do_free_command_lines_cleanup, make_cleanup_free_command_lines,
validate_comname, user_defined_command, define_command,
document_command, source_cleanup_lines, do_fclose_cleanup,
show_user_1): Moved here from top.c.
(script_from_file): New function. Implements execution of a script
contained in a file (part of code for the source_command() that used
to exist in top.c).
* cli/cli-script.h: Definitions/declarations for the above.
* cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
(parse_auto_binary_operation, parse_binary_operation,
do_setshow_command, cmd_show_list): Moved here from command.c.
* cli/cli-setshow.h: Definitions/declarations for the above.
* top.c: Remove all CLI code, except the command loop.
(gdb_init): Call init_cli_cmds().
* command.c: Remove obsolete file.
* command.h: Mark as DEPRECATED.
* gdbcmd.h: Ditto.
* call-cmds.h: Ditto.
* Makefile.in (SFILES): Remove command.c.
(COMMON_OBS): Remove command.o.
(command.o): Remove obsolete target.
(cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
Refer to CLI header files.
(cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
subdirectory.
* configure.in (enable_gdbcli): New option. Include the CLI in the
executable (cannot be disabled yet).
(CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
the corresponding SUBDIR_CLI_* macros if CLI requested.
* configure: Regenerate.
2000-12-01 18:01:38 +00:00
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
cli-cmds.o: $(srcdir)/cli/cli-cmds.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-cmds.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
cli-decode.o: $(srcdir)/cli/cli-decode.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-decode.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
cli-dump.o: $(srcdir)/cli/cli-dump.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-dump.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
cli-interp.o: $(srcdir)/cli/cli-interp.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-interp.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
cli-logging.o: $(srcdir)/cli/cli-logging.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-logging.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
cli-script.o: $(srcdir)/cli/cli-script.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-script.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
cli-setshow.o: $(srcdir)/cli/cli-setshow.c
|
|
|
|
$(COMPILE) $(srcdir)/cli/cli-setshow.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2001-01-04 15:50:48 +00:00
|
|
|
|
2002-08-17 00:04:36 +00:00
|
|
|
#
|
|
|
|
# GDBTK sub-directory
|
|
|
|
#
|
2002-08-21 05:40:07 +00:00
|
|
|
# Need to explicitly specify the compile rule as make will do nothing
|
|
|
|
# or try to compile the object file into the mi directory.
|
2002-08-17 00:04:36 +00:00
|
|
|
|
2002-09-26 17:46:04 +00:00
|
|
|
all-gdbtk: insight$(EXEEXT)
|
|
|
|
|
|
|
|
install-gdbtk:
|
|
|
|
transformed_name=`t='$(program_transform_name)'; \
|
|
|
|
echo insight | sed -e $$t` ; \
|
|
|
|
if test "x$$transformed_name" = x; then \
|
|
|
|
transformed_name=insight ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi ; \
|
2003-08-08 17:30:37 +00:00
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \
|
2002-11-09 03:14:11 +00:00
|
|
|
$(INSTALL_PROGRAM) insight$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
|
|
|
$(DESTDIR)$(GDBTK_LIBRARY) ; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
|
|
|
$(DESTDIR)$(libdir)/insight$(GDBTK_VERSION) ; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gdbtk/plugins/plugins.tcl \
|
|
|
|
$(DESTDIR)$(libdir)/insight$(GDBTK_VERSION)/plugins.tcl ; \
|
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
|
|
|
$(DESTDIR)$(GDBTK_LIBRARY)/images \
|
|
|
|
$(DESTDIR)$(GDBTK_LIBRARY)/images2 ; \
|
2002-09-26 17:46:04 +00:00
|
|
|
$(SHELL) $(srcdir)/../mkinstalldirs \
|
2002-11-09 03:14:11 +00:00
|
|
|
$(DESTDIR)$(GDBTK_LIBRARY)/help \
|
|
|
|
$(DESTDIR)$(GDBTK_LIBRARY)/help/images \
|
|
|
|
$(DESTDIR)$(GDBTK_LIBRARY)/help/trace ; \
|
2002-09-26 17:46:04 +00:00
|
|
|
cd $(srcdir)/gdbtk/library ; \
|
2003-01-21 21:39:31 +00:00
|
|
|
for i in *.tcl *.itcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif help/images/*.png; \
|
2002-09-26 17:46:04 +00:00
|
|
|
do \
|
2002-11-09 03:14:11 +00:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(GDBTK_LIBRARY)/$$i ; \
|
2002-09-26 17:46:04 +00:00
|
|
|
done ;
|
|
|
|
|
|
|
|
uninstall-gdbtk:
|
|
|
|
transformed_name=`t='$(program_transform_name)'; \
|
|
|
|
echo insight | sed -e $$t` ; \
|
|
|
|
if test "x$$transformed_name" = x; then \
|
|
|
|
transformed_name=insight ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi ; \
|
2002-11-09 03:14:11 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
|
|
|
|
rm -rf $(DESTDIR)$(GDBTK_LIBRARY)
|
2002-09-26 17:46:04 +00:00
|
|
|
|
|
|
|
clean-gdbtk:
|
|
|
|
rm -f insight$(EXEEXT)
|
|
|
|
|
|
|
|
# Removing the old gdb first works better if it is running, at least on SunOS.
|
2004-02-08 04:25:07 +00:00
|
|
|
insight$(EXEEXT): gdbtk-main.o libgdb.a $(ADD_DEPS) \
|
2002-09-26 17:46:04 +00:00
|
|
|
$(CDEPS) $(TDEPLIBS)
|
|
|
|
rm -f insight$(EXEEXT)
|
2003-01-04 19:27:19 +00:00
|
|
|
$(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
2004-02-08 04:25:07 +00:00
|
|
|
-o insight$(EXEEXT) gdbtk-main.o libgdb.a \
|
2002-09-26 17:46:04 +00:00
|
|
|
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
|
|
|
|
|
2002-08-17 00:04:36 +00:00
|
|
|
gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico
|
|
|
|
$(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o
|
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
all_gdbtk_cflags = $(IDE_CFLAGS) $(ITCL_CFLAGS) \
|
|
|
|
$(ITK_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
|
|
|
|
$(GDBTK_CFLAGS) \
|
|
|
|
-DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\" \
|
|
|
|
-DSRC_DIR=\"$(GDBTK_SRC_DIR)\"
|
|
|
|
|
|
|
|
gdbtk.o: $(srcdir)/gdbtk/generic/gdbtk.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-bp.o: $(srcdir)/gdbtk/generic/gdbtk-bp.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-bp.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-cmds.o: $(srcdir)/gdbtk/generic/gdbtk-cmds.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-cmds.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-hooks.o: $(srcdir)/gdbtk/generic/gdbtk-hooks.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-hooks.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-interp.o: $(srcdir)/gdbtk/generic/gdbtk-interp.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-interp.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-main.o: $(srcdir)/gdbtk/generic/gdbtk-main.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-main.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-register.o: $(srcdir)/gdbtk/generic/gdbtk-register.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-register.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-stack.o: $(srcdir)/gdbtk/generic/gdbtk-stack.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-stack.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-varobj.o: $(srcdir)/gdbtk/generic/gdbtk-varobj.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-varobj.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
gdbtk-wrapper.o: $(srcdir)/gdbtk/generic/gdbtk-wrapper.c
|
|
|
|
$(COMPILE) $(all_gdbtk_cflags) $(srcdir)/gdbtk/generic/gdbtk-wrapper.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2002-08-17 00:04:36 +00:00
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
#
|
2002-08-21 05:40:07 +00:00
|
|
|
# gdb/mi/ dependencies
|
2000-02-23 00:25:43 +00:00
|
|
|
#
|
|
|
|
# Need to explicitly specify the compile rule as make will do nothing
|
2003-07-08 20:18:41 +00:00
|
|
|
# or try to compile the object file into the sub-directory.
|
2000-02-23 00:25:43 +00:00
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
mi-cmd-break.o: $(srcdir)/mi/mi-cmd-break.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-break.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmd-disas.o: $(srcdir)/mi/mi-cmd-disas.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-disas.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmd-env.o: $(srcdir)/mi/mi-cmd-env.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-env.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmd-file.o: $(srcdir)/mi/mi-cmd-file.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-file.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmds.o: $(srcdir)/mi/mi-cmds.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmds.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmd-stack.o: $(srcdir)/mi/mi-cmd-stack.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-stack.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmd-target.o: $(srcdir)/mi/mi-cmd-target.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-target.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-cmd-var.o: $(srcdir)/mi/mi-cmd-var.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-cmd-var.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-console.o: $(srcdir)/mi/mi-console.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-console.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-getopt.o: $(srcdir)/mi/mi-getopt.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-getopt.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-interp.o: $(srcdir)/mi/mi-interp.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-interp.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-main.o: $(srcdir)/mi/mi-main.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-main.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-out.o: $(srcdir)/mi/mi-out.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-out.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-parse.o: $(srcdir)/mi/mi-parse.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-parse.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-symbol-cmds.o: $(srcdir)/mi/mi-symbol-cmds.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-symbol-cmds.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
mi-common.o: $(srcdir)/mi/mi-common.c
|
|
|
|
$(COMPILE) $(srcdir)/mi/mi-common.c
|
|
|
|
$(POSTCOMPILE)
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2002-08-16 23:32:04 +00:00
|
|
|
#
|
2009-03-02 00:45:13 +00:00
|
|
|
# gdb/common/ dependencies
|
2002-08-16 23:32:04 +00:00
|
|
|
#
|
2002-08-21 05:40:07 +00:00
|
|
|
# Need to explicitly specify the compile rule as make will do nothing
|
2003-07-08 20:18:41 +00:00
|
|
|
# or try to compile the object file into the sub-directory.
|
2002-08-16 23:32:04 +00:00
|
|
|
|
2009-03-02 00:45:13 +00:00
|
|
|
signals.o: $(srcdir)/common/signals.c
|
|
|
|
$(COMPILE) $(srcdir)/common/signals.c
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
$(POSTCOMPILE)
|
2002-08-16 23:32:04 +00:00
|
|
|
|
2000-05-25 01:50:50 +00:00
|
|
|
#
|
2003-07-08 20:18:41 +00:00
|
|
|
# gdb/tui/ dependencies
|
2000-05-25 01:50:50 +00:00
|
|
|
#
|
|
|
|
# Need to explicitly specify the compile rule as make will do nothing
|
2003-07-08 20:18:41 +00:00
|
|
|
# or try to compile the object file into the sub-directory.
|
2000-05-25 01:50:50 +00:00
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
tui.o: $(srcdir)/tui/tui.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-command.o: $(srcdir)/tui/tui-command.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-command.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-data.o: $(srcdir)/tui/tui-data.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-data.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-disasm.o: $(srcdir)/tui/tui-disasm.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-disasm.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-file.o: $(srcdir)/tui/tui-file.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-file.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-hooks.o: $(srcdir)/tui/tui-hooks.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-hooks.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-interp.o: $(srcdir)/tui/tui-interp.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-interp.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-io.o: $(srcdir)/tui/tui-io.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-io.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-layout.o: $(srcdir)/tui/tui-layout.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-layout.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-main.o: $(srcdir)/tui/tui-main.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-main.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-out.o: $(srcdir)/tui/tui-out.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-out.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-regs.o: $(srcdir)/tui/tui-regs.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-regs.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-source.o: $(srcdir)/tui/tui-source.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-source.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-stack.o: $(srcdir)/tui/tui-stack.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-stack.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-win.o: $(srcdir)/tui/tui-win.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-win.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-windata.o: $(srcdir)/tui/tui-windata.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-windata.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-wingeneral.o: $(srcdir)/tui/tui-wingeneral.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-wingeneral.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
tui-winsource.o: $(srcdir)/tui/tui-winsource.c
|
|
|
|
$(COMPILE) $(srcdir)/tui/tui-winsource.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2008-08-08 17:38:35 +00:00
|
|
|
#
|
|
|
|
# gdb/python/ dependencies
|
|
|
|
#
|
|
|
|
# Need to explicitly specify the compile rule as make will do nothing
|
|
|
|
# or try to compile the object file into the sub-directory.
|
|
|
|
|
|
|
|
# Flags needed to compile Python code
|
|
|
|
PYTHON_CFLAGS=@PYTHON_CFLAGS@
|
|
|
|
|
|
|
|
python.o: $(srcdir)/python/python.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-04-23 16:20:13 +00:00
|
|
|
py-auto-load.o: $(srcdir)/python/py-auto-load.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-auto-load.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
2010-02-24 21:18:28 +00:00
|
|
|
py-block.o: $(srcdir)/python/py-block.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-block.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-04-09 09:41:43 +00:00
|
|
|
py-breakpoint.o: $(srcdir)/python/py-breakpoint.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-breakpoint.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-cmd.o: $(srcdir)/python/py-cmd.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-cmd.c
|
2009-02-06 21:33:59 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-frame.o: $(srcdir)/python/py-frame.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-frame.c
|
2009-03-30 19:54:33 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-function.o: $(srcdir)/python/py-function.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-function.c
|
gdb/
2009-03-05 Tom Tromey <tromey@redhat.com>
Add support for convenience functions in Python.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
(SUBDIR_PYTHON_SRCS): Add python-function.c.
(python-function.o): New target.
* eval.c: Include "python/python.h" and <ctype.h>.
(evaluate_subexp_standard): Handle values of type
TYPE_CODE_INTERNAL_FUNCTION.
* gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
* parse.c (write_exp_string): Remove duplicate word in comment.
* python/python-function.c: New file.
* python/python-internal.h (gdbpy_initialize_functions): Add
prototype.
* python/python.c (_initialize_python): Call
gdbpy_initialize_functions.
* valprint.c (value_check_printable): Handle values of type
TYPE_CODE_INTERNAL_FUNCTION.
* value.c: Include "cli/cli-decode.h".
(internal_function): New struct.
(functionlist, internal_fn_type): New static variables.
(lookup_only_internalvar,
lookup_internalvar): Add const qualifier to name argument.
(create_internalvar): Likewise. Initialize new field.
(set_internal_var): Fix typo in comment. Don't allow assignment
to canonical variable.
(value_create_internal_function, value_internal_function_name,
call_internal_function, function_command, function_destroyer,
add_internal_function): New functions.
(_initialize_values): Create `function' placeholder command.
Initialize internal_fn_type.
* value.h (lookup_only_internalvar, create_internalvar,
lookup_internalvar): Add const qualifier to name argument.
(internal_function_fn, add_internal_function, call_internal_function,
value_internal_function_name): Add prototypes.
(struct internalvar) <canonical>: New field.
gdb/doc/
2008-03-05 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Convenience Vars): Document convenience functions.
(Functions In Python): New node.
(Python API): Update.
gdb/testsuite/
2009-03-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.python/python-function.exp: New file.
2009-03-21 03:03:56 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-06-28 21:16:04 +00:00
|
|
|
py-inferior.o: $(srcdir)/python/py-inferior.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-inferior.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
py-infthread.o: $(srcdir)/python/py-infthread.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-infthread.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-01-14 08:03:37 +00:00
|
|
|
py-lazy-string.o: $(srcdir)/python/py-lazy-string.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-lazy-string.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-objfile.o: $(srcdir)/python/py-objfile.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-objfile.c
|
2009-05-28 00:40:24 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-04-29 15:45:57 +00:00
|
|
|
py-param.o: $(srcdir)/python/py-param.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-param.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-prettyprint.o: $(srcdir)/python/py-prettyprint.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-prettyprint.c
|
2009-05-28 01:05:14 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-04-15 19:54:13 +00:00
|
|
|
py-progspace.o: $(srcdir)/python/py-progspace.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-progspace.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
2010-02-24 21:18:28 +00:00
|
|
|
py-symbol.o: $(srcdir)/python/py-symbol.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-symbol.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
|
|
|
py-symtab.o: $(srcdir)/python/py-symtab.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-symtab.c
|
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-type.o: $(srcdir)/python/py-type.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-type.c
|
2009-05-28 00:47:20 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-utils.o: $(srcdir)/python/py-utils.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-utils.c
|
2008-08-08 17:38:35 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
2009-09-09 17:45:42 +00:00
|
|
|
py-value.o: $(srcdir)/python/py-value.c
|
|
|
|
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-value.c
|
2008-10-16 03:54:00 +00:00
|
|
|
$(POSTCOMPILE)
|
|
|
|
|
gdb/
* aclocal.m4, configure: Rebuild.
* configure.in: Call ZW_CREATE_DEPDIR,
ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
(MAKE, GMAKE): New substs.
* acinclude.m4: Include depstand.m4.
* Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
COMPILE, POSTCOMPILE, depcomp): New variables.
Remove all _h variables.
Remove many .o targets.
($(srcdir)/copying.c): avoid backslash-newline after comment
sign (@maintainer_mode_true@).
(HFILES_NO_SRCDIR): Regenerate.
(generated_files): New variable.
(all_gdbtk_cflags): Likewise.
(.c.o): Rewrote.
(init.o, version.o, copying.o): Remove.
(distclean): Remove DEPDIR.
(test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
printcmd.o, procfs.o, v850ice.o): Rewrite.
(cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
(gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
gdbtk-wrapper.o): Likewise.
(mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
tui-wingeneral.o, tui-winsource.o): Likewise.
(all_object_files): New variable.
($(all_object_files)): New target.
Include dependency files, when using GNU Make.
gdb/gdbserver/
* Makefile.in (GDBREPLAY_OBS): New variable.
(gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
2008-08-07 22:49:10 +00:00
|
|
|
#
|
|
|
|
# Dependency tracking. Most of this is conditional on GNU Make being
|
|
|
|
# found by configure; if GNU Make is not found, we fall back to a
|
|
|
|
# simpler scheme.
|
|
|
|
#
|
|
|
|
|
|
|
|
@GMAKE_TRUE@ifeq ($(DEPMODE),depmode=gcc3)
|
|
|
|
# Note that we put the dependencies into a .Tpo file, then move them
|
|
|
|
# into place if the compile succeeds. We need this because gcc does
|
|
|
|
# not atomically write the dependency output file.
|
|
|
|
@GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \
|
|
|
|
@GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo
|
|
|
|
@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \
|
|
|
|
@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po
|
|
|
|
@GMAKE_TRUE@else
|
|
|
|
@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
|
|
|
|
@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
|
|
|
|
# depcomp handles atomicity for us, so we don't need a postcompile
|
|
|
|
# step.
|
|
|
|
@GMAKE_TRUE@override POSTCOMPILE =
|
|
|
|
@GMAKE_TRUE@endif
|
|
|
|
|
|
|
|
# A list of all the objects we might care about in this build, for
|
|
|
|
# dependency tracking.
|
|
|
|
all_object_files = gdb.o tui-main.o $(LIBGDB_OBS) gdbtk-main.o \
|
|
|
|
test-cp-name-parser.o
|
|
|
|
|
|
|
|
# Ensure that generated files are created early. Use order-only
|
|
|
|
# dependencies if available. They require GNU make 3.80 or newer,
|
|
|
|
# and the .VARIABLES variable was introduced at the same time.
|
|
|
|
@GMAKE_TRUE@ifdef .VARIABLES
|
|
|
|
@GMAKE_TRUE@$(all_object_files): | $(generated_files)
|
|
|
|
@GMAKE_TRUE@else
|
|
|
|
$(all_object_files) : $(generated_files)
|
|
|
|
@GMAKE_TRUE@endif
|
|
|
|
|
|
|
|
# Dependencies.
|
|
|
|
@GMAKE_TRUE@-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
|
2000-05-25 01:50:50 +00:00
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
### end of the gdb Makefile.in.
|