Update copying.awk for _initialize declaration patch
authorTom Tromey <tom@tromey.com>
Sun, 2 Jan 2022 19:16:37 +0000 (12:16 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 2 Jan 2022 19:47:19 +0000 (12:47 -0700)
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

index 1cd596a56411ae56b29b2b8ef26c1386350b8796..702a6b4338ab6cdfcdceb713189b4f32641cc375 100644 (file)
@@ -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.\"),";