From: Tom Tromey Date: Sun, 2 Jan 2022 19:16:37 +0000 (-0700) Subject: Update copying.awk for _initialize declaration patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5046fddb3aebf6791eb272a369db459ed7bd7a03;p=binutils-gdb.git 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 --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.\"),";