gdbserver: make aarch64_write_goto_address static
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 12 Jan 2020 16:06:23 +0000 (11:06 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 12 Jan 2020 16:06:44 +0000 (11:06 -0500)
This function is only used in this file, so make it static.  It fixes
this error, when building with -Wmissing-declarations:

  CXX    linux-aarch64-low.o
/home/simark/src/binutils-gdb/gdb/gdbserver/linux-aarch64-low.c:2642:1: error: no previous declaration for 'void aarch64_write_goto_address(CORE_ADDR, CORE_ADDR, int)' [-Werror=missing-declarations]
 aarch64_write_goto_address (CORE_ADDR from, CORE_ADDR to, int size)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~

gdb/gdbserver/ChangeLog:

* linux-aarch64-low.c (aarch64_write_goto_address): Make static.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c

index 40a765a3eded04cece7be43f6ff77030a1073f58..83be63c393e80ba9b3045bb6cab9f0ef7c9c3cc1 100644 (file)
@@ -1,3 +1,7 @@
+2020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
+
 2020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
index c58347d80ce622dda13bdce75c0daae2b48a8509..961fd5b3cc41c708d7acfe3c03639e287330bbb7 100644 (file)
@@ -2638,7 +2638,7 @@ aarch64_emit_goto (int *offset_p, int *size_p)
 
 /* Implementation of emit_ops method "write_goto_address".  */
 
-void
+static void
 aarch64_write_goto_address (CORE_ADDR from, CORE_ADDR to, int size)
 {
   uint32_t insn;