aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rwxr-xr-xgdb/regformats/regdat.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 64b64fb..78387ff 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
+ * regformats/regdat.sh: Generate declaration for init function.
+
+2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
+
* remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
up.
(gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
diff --git a/gdb/regformats/regdat.sh b/gdb/regformats/regdat.sh
index 1839a88..a40f233 100755
--- a/gdb/regformats/regdat.sh
+++ b/gdb/regformats/regdat.sh
@@ -127,6 +127,10 @@ do
echo "const struct target_desc *tdesc_${name};"
echo ""
+
+ # This is necessary for -Wmissing-declarations.
+ echo "void init_registers_${name} (void);"
+
echo "void"
echo "init_registers_${name} (void)"
echo "{"