aboutsummaryrefslogtreecommitdiff
path: root/gdb/make-init-c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/make-init-c')
-rwxr-xr-xgdb/make-init-c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/make-init-c b/gdb/make-init-c
index 3458333..5ea6df5 100755
--- a/gdb/make-init-c
+++ b/gdb/make-init-c
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (C) 2013-2024 Free Software Foundation, Inc.
+# Copyright (C) 2013-2025 Free Software Foundation, Inc.
#
# This file is part of GDB.
#
@@ -43,7 +43,7 @@ echo "/* Do not modify this file. */"
echo "/* It is created automatically by the Makefile. */"
echo "#include <algorithm>"
echo ""
-sed -n -e 's/^\(_initialize_[a-zA-Z0-9_]*\) ()$/\1/p' "$@" | while read -r name; do
+sed -n -e 's/^\(void \|\)\(_initialize_[a-zA-Z0-9_]*\) ()$/\2/p' "$@" | while read -r name; do
echo "extern initialize_file_ftype $name;"
done
echo ""
@@ -53,7 +53,7 @@ echo "initialize_all_files ()"
echo "{"
echo " std::vector<initialize_file_ftype *> functions ="
echo " {"
-sed -n -e 's/^\(_initialize_[a-zA-Z0-9_]*\) ()$/\1/p' "$@" | while read -r name; do
+sed -n -e 's/^\(void \|\)\(_initialize_[a-zA-Z0-9_]*\) ()$/\2/p' "$@" | while read -r name; do
echo " $name,"
done
echo " };"