aboutsummaryrefslogtreecommitdiff
path: root/gdb/copying.awk
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-02 12:16:37 -0700
committerTom Tromey <tom@tromey.com>2022-01-02 12:47:19 -0700
commit5046fddb3aebf6791eb272a369db459ed7bd7a03 (patch)
tree59ccbbabdf179550f52413b4e0749485f43a983b /gdb/copying.awk
parentd365c1c51c909080d4b080a7437e61205a9c4f69 (diff)
downloadgdb-5046fddb3aebf6791eb272a369db459ed7bd7a03.zip
gdb-5046fddb3aebf6791eb272a369db459ed7bd7a03.tar.gz
gdb-5046fddb3aebf6791eb272a369db459ed7bd7a03.tar.bz2
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.
Diffstat (limited to 'gdb/copying.awk')
-rw-r--r--gdb/copying.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/copying.awk b/gdb/copying.awk
index 1cd596a..702a6b4 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.\"),";