X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FMakefile.in;h=fa5c820b918e892cc1f9a190a73f4ebc979c03b3;hb=4a422785822ec9302f681c8fbc6ba2cc35231b09;hp=01ff0c0c20306547f26bce67309c700394b4729a;hpb=d105cce5dd8d6a5218b044fc161ce89c6b245432;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 01ff0c0c20..fa5c820b91 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -153,6 +153,9 @@ INCLUDE_CFLAGS = -I$(INCLUDE_DIR) # Where is the "-liberty" library? Typically in ../libiberty. LIBIBERTY = ../libiberty/libiberty.a +# Where is the CTF library? Typically in ../libctf. +LIBCTF = ../libctf/.libs/libctf.a + # Where is the BFD library? Typically in ../bfd. BFD_DIR = ../bfd BFD = $(BFD_DIR)/libbfd.a @@ -171,8 +174,8 @@ LIBDECNUMBER = $(LIBDECNUMBER_DIR)/libdecnumber.a LIBDECNUMBER_SRC = $(srcdir)/$(LIBDECNUMBER_DIR) LIBDECNUMBER_CFLAGS = -I$(LIBDECNUMBER_DIR) -I$(LIBDECNUMBER_SRC) -# Where is the READLINE library? Typically in ../readline. -READLINE_DIR = ../readline +# Where is the READLINE library? Typically in ../readline/readline. +READLINE_DIR = ../readline/readline READLINE_SRC = $(srcdir)/$(READLINE_DIR) READLINE = @READLINE@ READLINE_DEPS = @READLINE_DEPS@ @@ -184,10 +187,14 @@ LIBEXPAT = @LIBEXPAT@ # Where is lzma? This will be empty if lzma was not available. LIBLZMA = @LIBLZMA@ -# Where is libbabeltrace? This will be empty if lbabeltrace was not +# Where is libbabeltrace? This will be empty if libbabeltrace was not # available. LIBBABELTRACE = @LIBBABELTRACE@ +# Where is libxxhash? This will be empty if libxxhash was not +# available. +LIBXXHASH = @LIBXXHASH@ + # Where is libipt? This will be empty if libipt was not available. LIBIPT = @LIBIPT@ @@ -203,6 +210,9 @@ WERROR_CFLAGS = @WERROR_CFLAGS@ GDB_WARN_CFLAGS = $(WARN_CFLAGS) GDB_WERROR_CFLAGS = $(WERROR_CFLAGS) +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ + RDYNAMIC = @RDYNAMIC@ # Where is the INTL library? Typically in ../intl. @@ -412,8 +422,10 @@ SUBDIR_UNITTESTS_SRCS = \ unittests/common-utils-selftests.c \ unittests/copy_bitwise-selftests.c \ unittests/environ-selftests.c \ + unittests/filtered_iterator-selftests.c \ unittests/format_pieces-selftests.c \ unittests/function-view-selftests.c \ + unittests/help-doc-selftests.c \ unittests/lookup_name_info-selftests.c \ unittests/memory-map-selftests.c \ unittests/memrange-selftests.c \ @@ -422,6 +434,7 @@ SUBDIR_UNITTESTS_SRCS = \ unittests/optional-selftests.c \ unittests/parse-connection-spec-selftests.c \ unittests/ptid-selftests.c \ + unittests/main-thread-selftests.c \ unittests/mkdir-recursive-selftests.c \ unittests/rsp-low-selftests.c \ unittests/scoped_fd-selftests.c \ @@ -430,8 +443,10 @@ SUBDIR_UNITTESTS_SRCS = \ unittests/string_view-selftests.c \ unittests/style-selftests.c \ unittests/tracepoint-selftests.c \ + unittests/tui-selftests.c \ unittests/unpack-selftests.c \ unittests/utils-selftests.c \ + unittests/vec-utils-selftests.c \ unittests/xml-utils-selftests.c SUBDIR_UNITTESTS_OBS = $(patsubst %.c,%.o,$(SUBDIR_UNITTESTS_SRCS)) @@ -451,8 +466,12 @@ OPCODES = $(OPCODES_DIR)/libopcodes.a # Where are the other opcode tables which only have header file # versions? OP_INCLUDE = $(INCLUDE_DIR)/opcode +# See TOP_CFLAGS as well. OPCODES_CFLAGS = -I$(OP_INCLUDE) +# Allow includes like "opcodes/mumble.h". +TOP_CFLAGS = -I$(top_srcdir)/.. + # The simulator is usually nonexistent; targets that include one # should set this to list all the .o or .a files to be linked in. SIM = @SIM@ @@ -568,7 +587,7 @@ INTERNAL_CFLAGS_BASE = \ $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) $(ZLIBINC) \ $(BFD_CFLAGS) $(INCLUDE_CFLAGS) $(LIBDECNUMBER_CFLAGS) \ $(INTL_CFLAGS) $(INCGNU) $(ENABLE_CFLAGS) $(INTERNAL_CPPFLAGS) \ - $(SRCHIGH_CFLAGS) + $(SRCHIGH_CFLAGS) $(TOP_CFLAGS) $(PTHREAD_CFLAGS) INTERNAL_WARN_CFLAGS = $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS) INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS) @@ -582,18 +601,19 @@ LDFLAGS = @LDFLAGS@ # PROFILE_CFLAGS is _not_ included, however, because we use monstartup. INTERNAL_LDFLAGS = \ $(CXXFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) \ - $(LDFLAGS) $(CONFIG_LDFLAGS) + $(LDFLAGS) $(CONFIG_LDFLAGS) $(PTHREAD_CFLAGS) # Libraries and corresponding dependencies for compiling gdb. # XM_CLIBS, defined in *config files, have host-dependent libs. # LIBIBERTY appears twice on purpose. -CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(ZLIB) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \ +CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(LIBCTF) $(ZLIB) \ + $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \ $(XM_CLIBS) $(GDBTKLIBS) \ @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ \ $(LIBEXPAT) $(LIBLZMA) $(LIBBABELTRACE) $(LIBIPT) \ $(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) $(LIBICONV) $(LIBMPFR) \ - $(SRCHIGH_LIBS) -CDEPS = $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \ + $(SRCHIGH_LIBS) $(LIBXXHASH) $(PTHREAD_LIBS) +CDEPS = $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) $(LIBCTF) \ $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) DIST = gdb @@ -757,6 +777,7 @@ ALL_TARGET_OBS = \ ravenscar-thread.o \ riscv-fbsd-tdep.o \ riscv-linux-tdep.o \ + riscv-ravenscar-thread.o \ riscv-tdep.o \ rl78-tdep.o \ rs6000-aix-tdep.o \ @@ -775,7 +796,6 @@ ALL_TARGET_OBS = \ solib-darwin.o \ solib-dsbt.o \ solib-frv.o \ - solib-spu.o \ solib-svr4.o \ sparc-linux-tdep.o \ sparc-nbsd-tdep.o \ @@ -783,8 +803,6 @@ ALL_TARGET_OBS = \ sparc-ravenscar-thread.o \ sparc-sol2-tdep.o \ sparc-tdep.o \ - spu-multiarch.o \ - spu-tdep.o \ symfile-mem.o \ tic6x-linux-tdep.o \ tic6x-tdep.o \ @@ -810,6 +828,7 @@ LOADLIBES = @LOADLIBES@ MH_CFLAGS = @MH_CFLAGS@ XM_CLIBS = @XM_CLIBS@ NAT_GENERATED_FILES = @NAT_GENERATED_FILES@ +NM_H = @NM_H@ HAVE_NATIVE_GCORE_HOST = @HAVE_NATIVE_GCORE_HOST@ # Native-target dependent makefile fragment comes in here. @@ -955,6 +974,7 @@ COMMON_SFILES = \ gdbsupport/cleanups.c \ gdbsupport/common-debug.c \ gdbsupport/common-exceptions.c \ + gdbsupport/common-inferior.c \ gdbsupport/common-regcache.c \ gdbsupport/common-utils.c \ gdbsupport/errors.c \ @@ -963,6 +983,7 @@ COMMON_SFILES = \ gdbsupport/filestuff.c \ gdbsupport/format.c \ gdbsupport/job-control.c \ + gdbsupport/gdb-dlfcn.c \ gdbsupport/gdb_tilde_expand.c \ gdbsupport/gdb_vecs.c \ gdbsupport/netstuff.c \ @@ -972,11 +993,12 @@ COMMON_SFILES = \ gdbsupport/ptid.c \ gdbsupport/rsp-low.c \ gdbsupport/run-time-clock.c \ + gdbsupport/safe-strerror.c \ gdbsupport/scoped_mmap.c \ gdbsupport/signals.c \ gdbsupport/signals-state-save-restore.c \ gdbsupport/tdesc.c \ - gdbsupport/vec.c \ + gdbsupport/thread-pool.c \ gdbsupport/xml-utils.c \ complaints.c \ completer.c \ @@ -988,14 +1010,13 @@ COMMON_SFILES = \ cp-namespace.c \ cp-support.c \ cp-valprint.c \ - ctf.c \ + ctfread.c \ d-lang.c \ d-namespace.c \ d-valprint.c \ dbxread.c \ dcache.c \ debug.c \ - demangle.c \ dictionary.c \ disasm.c \ disasm-selftests.c \ @@ -1026,11 +1047,10 @@ COMMON_SFILES = \ frame-base.c \ frame-unwind.c \ gcore.c \ + gdb-demangle.c \ gdb_bfd.c \ - gdb-dlfcn.c \ gdb_obstack.c \ gdb_regex.c \ - gdb_usleep.c \ gdbarch.c \ gdbarch-selftests.c \ gdbtypes.c \ @@ -1101,6 +1121,7 @@ COMMON_SFILES = \ remote-fileio.c \ remote-notif.c \ reverse.c \ + run-on-main-thread.c \ rust-lang.c \ sentinel-frame.c \ ser-event.c \ @@ -1126,6 +1147,7 @@ COMMON_SFILES = \ thread-iter.c \ tid-parse.c \ top.c \ + tracectf.c \ tracefile.c \ tracefile-tfile.c \ tracepoint.c \ @@ -1226,7 +1248,6 @@ HFILES_NO_SRCDIR = \ cp-abi.h \ cp-support.h \ csky-tdep.h \ - ctf.h \ d-lang.h \ darwin-nat.h \ dcache.h \ @@ -1261,14 +1282,12 @@ HFILES_NO_SRCDIR = \ gcore.h \ gdb_bfd.h \ gdb_curses.h \ - gdb-dlfcn.h \ gdb_expat.h \ gdb_obstack.h \ gdb_proc_service.h \ gdb_regex.h \ gdb_select.h \ gdb-stabs.h \ - gdb_usleep.h \ gdb_vfork.h \ gdb_wchar.h \ gdbarch.h \ @@ -1362,9 +1381,11 @@ HFILES_NO_SRCDIR = \ remote-fileio.h \ remote-notif.h \ riscv-fbsd-tdep.h \ + riscv-ravenscar-thread.h \ riscv-tdep.h \ rs6000-aix-tdep.h \ rs6000-tdep.h \ + run-on-main-thread.h \ s390-linux-tdep.h \ s390-tdep.h \ score-tdep.h \ @@ -1382,7 +1403,6 @@ HFILES_NO_SRCDIR = \ solib.h \ solib-aix.h \ solib-darwin.h \ - solib-spu.h \ solib-svr4.h \ solib-target.h \ solist.h \ @@ -1392,7 +1412,6 @@ HFILES_NO_SRCDIR = \ sparc-ravenscar-thread.h \ sparc-tdep.h \ sparc64-tdep.h \ - spu-tdep.h \ stabsread.h \ stack.h \ stap-probe.h \ @@ -1404,6 +1423,7 @@ HFILES_NO_SRCDIR = \ terminal.h \ tid-parse.h \ top.h \ + tracectf.h \ tracefile.h \ tracepoint.h \ trad-frame.h \ @@ -1427,6 +1447,7 @@ HFILES_NO_SRCDIR = \ x86-linux-nat.h \ x86-nat.h \ xcoffread.h \ + xml-builtin.h \ xml-support.h \ xml-syscall.h \ xml-tdesc.h \ @@ -1459,7 +1480,10 @@ HFILES_NO_SRCDIR = \ gdbsupport/environ.h \ gdbsupport/fileio.h \ gdbsupport/format.h \ + gdbsupport/gdb-dlfcn.h \ + gdbsupport/gdb-sigmask.h \ gdbsupport/gdb_assert.h \ + gdbsupport/gdb_binary_search.h \ gdbsupport/gdb_tilde_expand.h \ gdbsupport/gdb_locale.h \ gdbsupport/gdb_proc_service.h \ @@ -1471,6 +1495,7 @@ HFILES_NO_SRCDIR = \ gdbsupport/common-inferior.h \ gdbsupport/netstuff.h \ gdbsupport/host-defs.h \ + gdbsupport/parallel-for.h \ gdbsupport/pathstuff.h \ gdbsupport/print-utils.h \ gdbsupport/ptid.h \ @@ -1480,7 +1505,7 @@ HFILES_NO_SRCDIR = \ gdbsupport/signals-state-save-restore.h \ gdbsupport/symbol.h \ gdbsupport/tdesc.h \ - gdbsupport/vec.h \ + gdbsupport/thread-pool.h \ gdbsupport/version.h \ gdbsupport/x86-xstate.h \ gdbsupport/xml-utils.h \ @@ -1618,9 +1643,9 @@ DISTSTUFF = $(YYFILES) generated_files = \ ada-lex.c \ config.h \ - gcore \ jit-reader.h \ - $(NAT_GENERATED_FILES) + $(NAT_GENERATED_FILES) \ + $(NM_H) # Flags needed to compile Python code PYTHON_CFLAGS = @PYTHON_CFLAGS@ @@ -1997,18 +2022,10 @@ subdir_do: force done Makefile: Makefile.in config.status - # Regenerate the Makefile and the tm.h / nm.h links. - CONFIG_FILES="Makefile" \ - CONFIG_COMMANDS= \ - CONFIG_HEADERS= \ - $(SHELL) config.status + $(SHELL) config.status $@ data-directory/Makefile: data-directory/Makefile.in config.status - CONFIG_FILES="data-directory/Makefile" \ - CONFIG_COMMANDS="depfiles" \ - CONFIG_HEADERS= \ - CONFIG_LINKS= \ - $(SHELL) config.status + $(SHELL) config.status $@ .PHONY: run run: Makefile @@ -2028,11 +2045,11 @@ gdb-gdb.gdb: $(srcdir)/gdb-gdb.gdb.in config.h: stamp-h ; @true stamp-h: $(srcdir)/config.in config.status - CONFIG_HEADERS=config.h:config.in \ - CONFIG_COMMANDS="default depdir" \ - CONFIG_FILES= \ - CONFIG_LINKS= \ - $(SHELL) config.status + $(SHELL) config.status config.h + +nm.h: stamp-nmh ; @true +stamp-nmh: config.status + $(SHELL) config.status nm.h config.status: $(srcdir)/configure configure.nat configure.tgt configure.host ../bfd/development.sh $(SHELL) config.status --recheck @@ -2044,7 +2061,6 @@ ACLOCAL_AMFLAGS = -I ../config aclocal_m4_deps = \ configure.ac \ acx_configure_dir.m4 \ - libmcheck.m4 \ transform.m4 \ ../bfd/bfd.m4 \ ../config/acinclude.m4 \ @@ -2061,7 +2077,8 @@ aclocal_m4_deps = \ ../config/depstand.m4 \ ../config/lcmessage.m4 \ ../config/codeset.m4 \ - ../config/zlib.m4 + ../config/zlib.m4 \ + ../config/ax_pthread.m4 $(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) @@ -2284,6 +2301,7 @@ ALLDEPFILES = \ riscv-fbsd-tdep.c \ riscv-linux-nat.c \ riscv-linux-tdep.c \ + riscv-ravenscar-thread.c \ riscv-tdep.c \ rl78-tdep.c \ rs6000-lynx178-tdep.c \ @@ -2304,7 +2322,6 @@ ALLDEPFILES = \ sh-tdep.c \ sol2-tdep.c \ solib-aix.c \ - solib-spu.c \ solib-svr4.c \ sparc-linux-nat.c \ sparc-linux-tdep.c \ @@ -2327,9 +2344,6 @@ ALLDEPFILES = \ sparc64-obsd-tdep.c \ sparc64-sol2-tdep.c \ sparc64-tdep.c \ - spu-linux-nat.c \ - spu-multiarch.c \ - spu-tdep.c \ tilegx-linux-nat.c \ tilegx-linux-tdep.c \ tilegx-tdep.c \ @@ -2347,9 +2361,7 @@ ALLDEPFILES = \ xtensa-linux-nat.c \ xtensa-linux-tdep.c \ xtensa-tdep.c \ - xtensa-xtregs.c \ - gdbsupport/mingw-strerror.c \ - gdbsupport/posix-strerror.c + xtensa-xtregs.c # Some files need explicit build rules (due to -Werror problems) or due # to sub-directory fun 'n' games.