From 5046fddb3aebf6791eb272a369db459ed7bd7a03 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 12:16:37 -0700 Subject: [PATCH] Update copying.awk for _initialize declaration patch Commit 6c265988 ("gdb: add back declarations for _initialize functions") modified copying.c, but not copying.awk. This patch updates copying.awk to backport the appropriate fix. This way, if copying.awk is run again, it will create the correct output. I'm checking this in as obvious. --- gdb/copying.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/copying.awk b/gdb/copying.awk index 1cd596a5641..702a6b4338a 100644 --- a/gdb/copying.awk +++ b/gdb/copying.awk @@ -50,8 +50,9 @@ NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ { END { print "}"; print ""; + print "void _initialize_copying ();" print "void" - print "_initialize_copying (void)"; + print "_initialize_copying ()"; print "{"; print " add_cmd (\"copying\", no_set_class, show_copying_command,"; print " _(\"Conditions for redistributing copies of GDB.\"),"; -- 2.30.2