public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb: move ptrace.m4 to gdbsupport
@ 2020-10-24 16:54 Simon Marchi
  2020-10-26  1:10 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Marchi @ 2020-10-24 16:54 UTC (permalink / raw)
  To: gdb-patches

ptrace.m4, providing the GDB_AC_PTRACE autoconf macro, is used by gdb,
gdbserver and gdbsupport.  I think it would make sense to move it to
gdbsupport.

gdb/ChangeLog:

	* acinclude.m4: Update ptrace.m4 path.
	* ptrace.m4: Moved to gdbsupport.

gdbserver/ChangeLog:

	* acinclude.m4: Update ptrace.m4 path.

gdbsupport/ChangeLog:

	* Makefile.in: Re-generate.
	* acinclude.m4: Update ptrace.m4 path.
	* ptrace.m4: Move here.

Change-Id: I849c149fd5dd8c3b2b0af38654fb353e3727871b
---
 gdb/acinclude.m4              | 2 +-
 gdbserver/acinclude.m4        | 2 +-
 gdbsupport/Makefile.in        | 2 +-
 gdbsupport/acinclude.m4       | 2 +-
 {gdb => gdbsupport}/ptrace.m4 | 0
 5 files changed, 4 insertions(+), 4 deletions(-)
 rename {gdb => gdbsupport}/ptrace.m4 (100%)

diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index 6fbc88bb55cd..9aa32e6d1470 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -72,7 +72,7 @@ dnl For libiberty_INIT.
 m4_include(libiberty.m4)
 
 dnl For GDB_AC_PTRACE.
-m4_include(ptrace.m4)
+m4_include(../gdbsupport/ptrace.m4)
 
 m4_include(ax_cxx_compile_stdcxx.m4)
 
diff --git a/gdbserver/acinclude.m4 b/gdbserver/acinclude.m4
index a49be8dff81e..f02a63cc70c3 100644
--- a/gdbserver/acinclude.m4
+++ b/gdbserver/acinclude.m4
@@ -27,7 +27,7 @@ dnl For libiberty_INIT.
 m4_include(../gdb/libiberty.m4)
 
 dnl For GDB_AC_PTRACE.
-m4_include(../gdb/ptrace.m4)
+m4_include(../gdbsupport/ptrace.m4)
 
 m4_include(../gdb/ax_cxx_compile_stdcxx.m4)
 
diff --git a/gdbsupport/Makefile.in b/gdbsupport/Makefile.in
index 044ef1555c27..ccfc27f43aed 100644
--- a/gdbsupport/Makefile.in
+++ b/gdbsupport/Makefile.in
@@ -123,7 +123,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/codeset.m4 \
 	$(top_srcdir)/../config/ax_pthread.m4 \
 	$(top_srcdir)/../gdb/ax_cxx_compile_stdcxx.m4 \
 	$(top_srcdir)/../gdb/libiberty.m4 $(top_srcdir)/selftest.m4 \
-	$(top_srcdir)/../gdb/ptrace.m4 $(top_srcdir)/warning.m4 \
+	$(top_srcdir)/ptrace.m4 $(top_srcdir)/warning.m4 \
 	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
diff --git a/gdbsupport/acinclude.m4 b/gdbsupport/acinclude.m4
index 4c86c4f8de76..cc9c2dcb32f8 100644
--- a/gdbsupport/acinclude.m4
+++ b/gdbsupport/acinclude.m4
@@ -4,7 +4,7 @@ m4_include([../config/ax_pthread.m4])
 m4_include([../gdb/ax_cxx_compile_stdcxx.m4])
 m4_include([../gdb/libiberty.m4])
 m4_include([selftest.m4])
-m4_include([../gdb/ptrace.m4])
+m4_include([ptrace.m4])
 
 dnl This gets AM_GDB_WARNINGS.
 m4_include(warning.m4)
diff --git a/gdb/ptrace.m4 b/gdbsupport/ptrace.m4
similarity index 100%
rename from gdb/ptrace.m4
rename to gdbsupport/ptrace.m4
-- 
2.29.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gdb: move ptrace.m4 to gdbsupport
  2020-10-24 16:54 [PATCH] gdb: move ptrace.m4 to gdbsupport Simon Marchi
@ 2020-10-26  1:10 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2020-10-26  1:10 UTC (permalink / raw)
  To: gdb-patches


On 2020-10-24 12:54 p.m., Simon Marchi wrote:
> ptrace.m4, providing the GDB_AC_PTRACE autoconf macro, is used by gdb,
> gdbserver and gdbsupport.  I think it would make sense to move it to
> gdbsupport.

I have another patch series that builds on this, and this one is not so
controversial, so I pushed it to get it out of the way.

Simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-26  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-24 16:54 [PATCH] gdb: move ptrace.m4 to gdbsupport Simon Marchi
2020-10-26  1:10 ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).