From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 01AC73858C2C; Sun, 2 Jan 2022 19:50:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01AC73858C2C MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Update copying.awk for _initialize declaration patch X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: d365c1c51c909080d4b080a7437e61205a9c4f69 X-Git-Newrev: 5046fddb3aebf6791eb272a369db459ed7bd7a03 Message-Id: <20220102195025.01AC73858C2C@sourceware.org> Date: Sun, 2 Jan 2022 19:50:25 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2022 19:50:25 -0000 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5046fddb3aebf6791eb272a369db459ed7bd7a03 commit 5046fddb3aebf6791eb272a369db459ed7bd7a03 Author: Tom Tromey Date: Sun Jan 2 12:16:37 2022 -0700 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. Diff: --- 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.\"),";