Add "info connections" command, "info inferiors" connection number/string
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index e7e26a44a0cb951c1cf16fd99743795e6f4874e8..6df0f46b5ed91d4abcb0a59d73bcee7ec7cd3b02 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1989-2019 Free Software Foundation, Inc.
+# Copyright (C) 1989-2020 Free Software Foundation, Inc.
 
 # This file is part of GDB.
 
@@ -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,6 +422,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 +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 \
@@ -431,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))
@@ -452,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@
@@ -569,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)
 
@@ -583,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
@@ -758,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 \
@@ -776,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 \
@@ -784,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 \
@@ -811,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.
@@ -956,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 \
@@ -967,6 +986,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 \
@@ -974,11 +994,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 \
@@ -990,14 +1011,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 \
@@ -1028,10 +1048,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 \
@@ -1102,6 +1122,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 \
@@ -1119,6 +1140,7 @@ COMMON_SFILES = \
        symmisc.c \
        symtab.c \
        target.c \
+       target-connection.c \
        target-dcache.c \
        target-descriptions.c \
        target-memory.c \
@@ -1127,6 +1149,7 @@ COMMON_SFILES = \
        thread-iter.c \
        tid-parse.c \
        top.c \
+       tracectf.c \
        tracefile.c \
        tracefile-tfile.c \
        tracepoint.c \
@@ -1227,7 +1250,6 @@ HFILES_NO_SRCDIR = \
        cp-abi.h \
        cp-support.h \
        csky-tdep.h \
-       ctf.h \
        d-lang.h \
        darwin-nat.h \
        dcache.h \
@@ -1268,7 +1290,6 @@ HFILES_NO_SRCDIR = \
        gdb_regex.h \
        gdb_select.h \
        gdb-stabs.h \
-       gdb_usleep.h \
        gdb_vfork.h \
        gdb_wchar.h \
        gdbarch.h \
@@ -1362,9 +1383,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 +1405,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 +1414,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 +1425,7 @@ HFILES_NO_SRCDIR = \
        terminal.h \
        tid-parse.h \
        top.h \
+       tracectf.h \
        tracefile.h \
        tracepoint.h \
        trad-frame.h \
@@ -1427,6 +1449,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 \
@@ -1460,7 +1483,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 \
@@ -1472,6 +1497,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 \
@@ -1481,7 +1507,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 \
@@ -1619,9 +1645,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@
@@ -1755,7 +1781,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
@@ -1998,18 +2024,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
@@ -2029,11 +2047,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
@@ -2061,7 +2079,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 +2303,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 +2324,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 +2346,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 +2363,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.
@@ -2505,7 +2519,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) ; \
This page took 0.029173 seconds and 4 git commands to generate.