X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FMakefile.in;h=e852b140e7acd0306e77347694ed59e95231226f;hb=07b76c2f0baf197ce44d66a153184d33047e7ba0;hp=877a9ccd6bd727056d6288e1c277af0fea5ea3f3;hpb=abf516c6931af1683d1e51203de1ca01467f9f85;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 877a9ccd6b..e852b140e7 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1,4 +1,5 @@ -# Copyright (C) 1989-2019 Free Software Foundation, Inc. +# Copyright (C) 1989-2020 Free Software Foundation, Inc. +# Copyright (C) 2019-2020 Advanced Micro Devices, Inc. All rights reserved. # This file is part of GDB. @@ -153,6 +154,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 +175,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 +188,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 +211,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,6 +423,7 @@ 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 \ @@ -423,6 +435,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 \ @@ -431,8 +444,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)) @@ -452,8 +467,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@ @@ -569,7 +588,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) @@ -583,18 +602,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@ \ + @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ @ROCM_DBGAPI_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 @@ -758,6 +778,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 \ @@ -808,6 +829,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. @@ -953,6 +975,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 \ @@ -964,6 +987,7 @@ COMMON_SFILES = \ gdbsupport/gdb-dlfcn.c \ gdbsupport/gdb_tilde_expand.c \ gdbsupport/gdb_vecs.c \ + gdbsupport/gdb_wait.c \ gdbsupport/netstuff.c \ gdbsupport/new-op.c \ gdbsupport/pathstuff.c \ @@ -971,11 +995,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 \ @@ -987,14 +1012,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 \ @@ -1025,10 +1049,10 @@ COMMON_SFILES = \ frame-base.c \ frame-unwind.c \ gcore.c \ + gdb-demangle.c \ gdb_bfd.c \ gdb_obstack.c \ gdb_regex.c \ - gdb_usleep.c \ gdbarch.c \ gdbarch-selftests.c \ gdbtypes.c \ @@ -1099,6 +1123,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 \ @@ -1116,6 +1141,7 @@ COMMON_SFILES = \ symmisc.c \ symtab.c \ target.c \ + target-connection.c \ target-dcache.c \ target-descriptions.c \ target-memory.c \ @@ -1124,6 +1150,7 @@ COMMON_SFILES = \ thread-iter.c \ tid-parse.c \ top.c \ + tracectf.c \ tracefile.c \ tracefile-tfile.c \ tracepoint.c \ @@ -1194,6 +1221,7 @@ HFILES_NO_SRCDIR = \ amd64-linux-tdep.h \ amd64-nat.h \ amd64-tdep.h \ + amdgcn-rocm-tdep.h \ annotate.h \ arc-tdep.h \ arch-utils.h \ @@ -1224,7 +1252,6 @@ HFILES_NO_SRCDIR = \ cp-abi.h \ cp-support.h \ csky-tdep.h \ - ctf.h \ d-lang.h \ darwin-nat.h \ dcache.h \ @@ -1265,7 +1292,6 @@ HFILES_NO_SRCDIR = \ gdb_regex.h \ gdb_select.h \ gdb-stabs.h \ - gdb_usleep.h \ gdb_vfork.h \ gdb_wchar.h \ gdbarch.h \ @@ -1359,9 +1385,12 @@ HFILES_NO_SRCDIR = \ remote-fileio.h \ remote-notif.h \ riscv-fbsd-tdep.h \ + riscv-ravenscar-thread.h \ riscv-tdep.h \ + rocm-tdep.h \ rs6000-aix-tdep.h \ rs6000-tdep.h \ + run-on-main-thread.h \ s390-linux-tdep.h \ s390-tdep.h \ score-tdep.h \ @@ -1399,6 +1428,7 @@ HFILES_NO_SRCDIR = \ terminal.h \ tid-parse.h \ top.h \ + tracectf.h \ tracefile.h \ tracepoint.h \ trad-frame.h \ @@ -1422,6 +1452,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 \ @@ -1455,7 +1486,9 @@ HFILES_NO_SRCDIR = \ 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 \ @@ -1467,6 +1500,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 \ @@ -1476,7 +1510,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 \ @@ -1614,9 +1648,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@ @@ -1750,7 +1784,7 @@ install-only: $(CONFIG_INSTALL) true ; \ fi ; \ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \ - $(INSTALL_PROGRAM) gdb$(EXEEXT) \ + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) gdb$(EXEEXT) \ $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(includedir)/gdb ; \ $(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h @@ -1993,18 +2027,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 @@ -2024,11 +2050,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 @@ -2056,7 +2082,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) @@ -2162,6 +2189,7 @@ ALLDEPFILES = \ amd64-obsd-tdep.c \ amd64-sol2-tdep.c \ amd64-tdep.c \ + amdgcn-rocm-tdep.c \ arc-tdep.c \ arm.c \ arm-bsd-tdep.c \ @@ -2279,7 +2307,9 @@ ALLDEPFILES = \ riscv-fbsd-tdep.c \ riscv-linux-nat.c \ riscv-linux-tdep.c \ + riscv-ravenscar-thread.c \ riscv-tdep.c \ + rocm-tdep.c \ rl78-tdep.c \ rs6000-lynx178-tdep.c \ rs6000-nat.c \ @@ -2299,6 +2329,7 @@ ALLDEPFILES = \ sh-tdep.c \ sol2-tdep.c \ solib-aix.c \ + solib-rocm.c \ solib-svr4.c \ sparc-linux-nat.c \ sparc-linux-tdep.c \ @@ -2338,9 +2369,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. @@ -2496,7 +2525,7 @@ install-gdbtk: true ; \ fi ; \ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \ - $(INSTALL_PROGRAM) insight$(EXEEXT) \ + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) insight$(EXEEXT) \ $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ $(SHELL) $(srcdir)/../mkinstalldirs \ $(DESTDIR)$(GDBTK_LIBRARY) ; \