]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move gdb_regex to gdbsupport
authorTom Tromey <tom@tromey.com>
Sat, 1 Jan 2022 18:31:47 +0000 (11:31 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 18 Jan 2022 17:14:43 +0000 (10:14 -0700)
This moves the gdb_regex convenience class to gdbsupport.

29 files changed:
gdb/Makefile.in
gdb/ada-lang.c
gdb/auto-load.c
gdb/break-catch-throw.c
gdb/breakpoint.c
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/linux-tdep.c
gdb/mi/mi-cmd-file.c
gdb/objc-lang.c
gdb/probe.c
gdb/producer.c
gdb/psymtab.c
gdb/rust-parse.c
gdb/skip.c
gdb/solib.c
gdb/source.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h
gdb/thread.c
gdb/ui-style.c
gdb/utils.c
gdb/varobj.c
gdbsupport/Makefile.am
gdbsupport/Makefile.in
gdbsupport/gdb_regex.cc [moved from gdb/gdb_regex.c with 100% similarity]
gdbsupport/gdb_regex.h [moved from gdb/gdb_regex.h with 100% similarity]

index ce9f1ad441c080104064ac9eeed159678640c9b3..2d9b2a7649144798df71eef70267da9b873a66ee 100644 (file)
@@ -1074,7 +1074,6 @@ COMMON_SFILES = \
        gcore.c \
        gdb-demangle.c \
        gdb_bfd.c \
-       gdb_regex.c \
        gdbtypes.c \
        gmp-utils.c \
        gnu-v2-abi.c \
@@ -1316,7 +1315,6 @@ HFILES_NO_SRCDIR = \
        gdb_curses.h \
        gdb_expat.h \
        gdb_proc_service.h \
-       gdb_regex.h \
        gdb_select.h \
        gdb-stabs.h \
        gdb_vfork.h \
index b88b27b55b1260123f3cd97458af7daac7247223..a39c1fdee6487bbbb9c1a90a1d512369e3aeac8e 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "defs.h"
 #include <ctype.h>
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "frame.h"
 #include "symtab.h"
 #include "gdbtypes.h"
index 98b1373d57f12125f21d21045b318aaa15b3af69..680b87936b1121e0b0ca786e4d430c8f817d08e9 100644 (file)
@@ -21,7 +21,7 @@
 #include <ctype.h>
 #include "auto-load.h"
 #include "progspace.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "ui-out.h"
 #include "filenames.h"
 #include "command.h"
index 5d17854d9afa23fedbc933a13740a2d61992f819..d34e5f9ee53747e6eb3d69a53106b9466d48a0e6 100644 (file)
@@ -33,7 +33,7 @@
 #include "probe.h"
 #include "objfiles.h"
 #include "cp-abi.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "cp-support.h"
 #include "location.h"
 #include "cli/cli-decode.h"
index c7d757316215ff62fd583e76e749a8d3c66d75e2..e969ef367bcd45a54c81c480f7c387b491e04bcc 100644 (file)
@@ -56,7 +56,7 @@
 #include "valprint.h"
 #include "jit.h"
 #include "parser-defs.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "probe.h"
 #include "cli/cli-utils.h"
 #include "stack.h"
index e62e7a9331fef42868f7f8c3a10fcc47aa808c02..563f29067c335bf221004c0e90ad2aa354c725fd 100644 (file)
@@ -24,7 +24,7 @@
 #include "target.h"    /* For baud_rate, remote_debug and remote_timeout.  */
 #include "gdbsupport/gdb_wait.h"       /* For shell escape implementation.  */
 #include "gdbcmd.h"
-#include "gdb_regex.h" /* Used by apropos_command.  */
+#include "gdbsupport/gdb_regex.h"      /* Used by apropos_command.  */
 #include "gdb_vfork.h"
 #include "linespec.h"
 #include "expression.h"
index 7266fb36d0ddb8657ab5e5a80a910d1dd70936f0..c8cd95620a5c55791cfd69de9f4722f42529cf0e 100644 (file)
@@ -18,7 +18,7 @@
 #include "defs.h"
 #include "symtab.h"
 #include <ctype.h>
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "completer.h"
 #include "ui-out.h"
 #include "cli/cli-cmds.h"
index ed75d3dfc1568769eef0dabaad37de9d11f07a6c..658142d338da49f05b760794a23032b4828307b9 100644 (file)
@@ -23,7 +23,7 @@
 
 /* Include the public interfaces.  */
 #include "command.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "cli-script.h"
 #include "completer.h"
 #include "gdbsupport/intrusive_list.h"
index 4b69121e4d09a4507c41a13edc3e9e6b96af9f75..1b48b7fef25ef03d021793374f00e0b4b97d815a 100644 (file)
@@ -36,7 +36,7 @@
 #include "objfiles.h"
 #include "infcall.h"
 #include "gdbcmd.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "gdbsupport/enum-flags.h"
 #include "gdbsupport/gdb_optional.h"
 #include "gcore.h"
index 8fdcf891cf5326d28cfea97e238cad0c10fe14b6..23c6d7021e2e90ad5dfc38e7bc40b137a8e1b715 100644 (file)
@@ -28,7 +28,7 @@
 #include "psymtab.h"
 #include "solib.h"
 #include "solist.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 
 /* Return to the client the absolute path and line number of the 
    current file being executed.  */
index 787e8d647ea44c33b03641189fbce55f8430947b..72470144abf2602d343c344093f50ecce99726a2 100644 (file)
@@ -37,7 +37,7 @@
 #include "gdbcore.h"
 #include "gdbcmd.h"
 #include "frame.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "regcache.h"
 #include "block.h"
 #include "infcall.h"
index 689b5f022e49df1653e95787601167e28212e245..278b36c3ce845b88cef7196f517efa986d010b12 100644 (file)
@@ -27,7 +27,7 @@
 #include "progspace.h"
 #include "filenames.h"
 #include "linespec.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "frame.h"
 #include "arch-utils.h"
 #include "value.h"
index ba6e021b94a0d2b4dbb2bd54fd2fd183ef3d87c7..ef1dd93afbcc73159764d3d7e342a7ea249c28da 100644 (file)
@@ -20,7 +20,7 @@
 #include "defs.h"
 #include "producer.h"
 #include "gdbsupport/selftest.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 
 /* See producer.h.  */
 
index 9db8a7aeba2210048b2b4423e919d0e4758b088d..406b3b3cccbfe6ccfd646031eae9c4e85d58ffee 100644 (file)
@@ -29,7 +29,7 @@
 #include "ui-out.h"
 #include "command.h"
 #include "readline/tilde.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "dictionary.h"
 #include "language.h"
 #include "cp-support.h"
index a3969fe4fa91eeb842c2cbfda7a7c0d9e7f5361f..31a1ee3b38f130778700fc93108374b4abdb6627 100644 (file)
@@ -23,7 +23,7 @@
 #include "charset.h"
 #include "cp-support.h"
 #include "gdbsupport/gdb_obstack.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "rust-lang.h"
 #include "parser-defs.h"
 #include "gdbsupport/selftest.h"
index 3308252cb47825906ff9818d66340aa39d579a1a..62825cbddae85d0fd2c7bc3329f2c5077ea2846a 100644 (file)
@@ -33,7 +33,7 @@
 #include "source.h"
 #include "filenames.h"
 #include "fnmatch.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "gdbsupport/gdb_optional.h"
 #include <list>
 #include "cli/cli-style.h"
index 56b86614a168ee43a3eabf19efbb4c552800809e..b9b1d037187710ce443d38e59eed0c60dedcae91 100644 (file)
@@ -29,7 +29,7 @@
 #include "command.h"
 #include "target.h"
 #include "frame.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "inferior.h"
 #include "gdbsupport/environ.h"
 #include "language.h"
index ab5cfc5a9d97eabf3790861438b06fc31bf15036..9cfc18b811598c0b0a78a36fbb77413ac3b51e35 100644 (file)
@@ -31,7 +31,7 @@
 #include <sys/types.h>
 #include <fcntl.h>
 #include "gdbcore.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "symfile.h"
 #include "objfiles.h"
 #include "annotate.h"
index 3b5c3a07fc7742d7e88fc8b0257735ff132cd7d4..2f4a076c352b317d6a94e93320a5e7195a53db5b 100644 (file)
@@ -30,7 +30,7 @@
 #include "language.h"
 #include "bcache.h"
 #include "block.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include <sys/stat.h>
 #include "dictionary.h"
 #include "typeprint.h"
index cf9f6cec34f86cb09ff254458f159440dc29fe7c..9fc96d7baa189e28eb4c7e05beac13041e78c4f3 100644 (file)
@@ -27,7 +27,7 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "gdbcmd.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "expression.h"
 #include "language.h"
 #include "demangle.h"
index 740c7ed8c747f766b3e123a97a8a16da1104b806..55d1b772c457f1aaad867ae7daadfc150dfd48c0 100644 (file)
@@ -27,7 +27,7 @@
 #include "gdbsupport/gdb_vecs.h"
 #include "gdbtypes.h"
 #include "gdbsupport/gdb_obstack.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "gdbsupport/enum-flags.h"
 #include "gdbsupport/function-view.h"
 #include "gdbsupport/gdb_optional.h"
index 0f9fbe325bc77137cbd649924278b8e0e1cbe8fb..611be3f4633a9b614fd388c3ee5a4005a8e6d151 100644 (file)
@@ -40,7 +40,7 @@
 #include "annotate.h"
 #include "cli/cli-decode.h"
 #include "cli/cli-option.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "cli/cli-utils.h"
 #include "thread-fsm.h"
 #include "tid-parse.h"
index 253e796d57ac322de25ae5d7f5dbfd575653a684..f1a5b8c4101b55e871b40dec287a9fc4528201a1 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "defs.h"
 #include "ui-style.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 
 /* A regular expression that is used for matching ANSI terminal escape
    sequences.  */
index bda3b7b5f0dd3592336681b63499c18e0fc14890..8489d3fec06baaffeb75a6d7becfd066731b4aa5 100644 (file)
@@ -63,7 +63,7 @@
 #include <chrono>
 
 #include "interps.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 #include "gdbsupport/job-control.h"
 #include "gdbsupport/selftest.h"
 #include "gdbsupport/gdb_optional.h"
index b59ddc1e772f2ec3f3b60b489ea15ac3f41daa8a..3aec027a5b6b81234ca34970ea070ad2d7fa783d 100644 (file)
@@ -23,7 +23,7 @@
 #include "gdbcmd.h"
 #include "block.h"
 #include "valprint.h"
-#include "gdb_regex.h"
+#include "gdbsupport/gdb_regex.h"
 
 #include "varobj.h"
 #include "gdbthread.h"
index 9e4334891b55c73dddd3ef6d95b61f35a1860861..6049fac20ef19e1ef0709baa45e67e04efb4952d 100644 (file)
@@ -54,6 +54,7 @@ libgdbsupport_a_SOURCES = \
     gdb-dlfcn.cc \
     gdb-hashtab.cc \
     gdb_obstack.cc \
+    gdb_regex.cc \
     gdb_tilde_expand.cc \
     gdb_wait.cc \
     gdb_vecs.cc \
index 59e1dfedd8bf20a15c7450ee01ac5e2b2aa248dd..852e98c6bdfcd6751277a4db9a9d82ad7ae84682 100644 (file)
@@ -152,14 +152,15 @@ am_libgdbsupport_a_OBJECTS = agent.$(OBJEXT) btrace-common.$(OBJEXT) \
        environ.$(OBJEXT) errors.$(OBJEXT) event-loop.$(OBJEXT) \
        fileio.$(OBJEXT) filestuff.$(OBJEXT) format.$(OBJEXT) \
        gdb-dlfcn.$(OBJEXT) gdb-hashtab.$(OBJEXT) \
-       gdb_obstack.$(OBJEXT) gdb_tilde_expand.$(OBJEXT) \
-       gdb_wait.$(OBJEXT) gdb_vecs.$(OBJEXT) job-control.$(OBJEXT) \
-       netstuff.$(OBJEXT) new-op.$(OBJEXT) pathstuff.$(OBJEXT) \
-       print-utils.$(OBJEXT) ptid.$(OBJEXT) rsp-low.$(OBJEXT) \
-       run-time-clock.$(OBJEXT) safe-strerror.$(OBJEXT) \
-       scoped_mmap.$(OBJEXT) search.$(OBJEXT) signals.$(OBJEXT) \
-       signals-state-save-restore.$(OBJEXT) tdesc.$(OBJEXT) \
-       thread-pool.$(OBJEXT) xml-utils.$(OBJEXT) $(am__objects_1)
+       gdb_obstack.$(OBJEXT) gdb_regex.$(OBJEXT) \
+       gdb_tilde_expand.$(OBJEXT) gdb_wait.$(OBJEXT) \
+       gdb_vecs.$(OBJEXT) job-control.$(OBJEXT) netstuff.$(OBJEXT) \
+       new-op.$(OBJEXT) pathstuff.$(OBJEXT) print-utils.$(OBJEXT) \
+       ptid.$(OBJEXT) rsp-low.$(OBJEXT) run-time-clock.$(OBJEXT) \
+       safe-strerror.$(OBJEXT) scoped_mmap.$(OBJEXT) search.$(OBJEXT) \
+       signals.$(OBJEXT) signals-state-save-restore.$(OBJEXT) \
+       tdesc.$(OBJEXT) thread-pool.$(OBJEXT) xml-utils.$(OBJEXT) \
+       $(am__objects_1)
 libgdbsupport_a_OBJECTS = $(am_libgdbsupport_a_OBJECTS)
 AM_V_P = $(am__v_P_@AM_V@)
 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
@@ -379,6 +380,7 @@ libgdbsupport_a_SOURCES = \
     gdb-dlfcn.cc \
     gdb-hashtab.cc \
     gdb_obstack.cc \
+    gdb_regex.cc \
     gdb_tilde_expand.cc \
     gdb_wait.cc \
     gdb_vecs.cc \
@@ -486,6 +488,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb-dlfcn.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb-hashtab.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_obstack.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_regex.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_tilde_expand.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_vecs.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_wait.Po@am__quote@
similarity index 100%
rename from gdb/gdb_regex.c
rename to gdbsupport/gdb_regex.cc
similarity index 100%
rename from gdb/gdb_regex.h
rename to gdbsupport/gdb_regex.h