summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-11-03 13:33:16 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2015-11-03 13:33:16 -0500
commit1c215b97f9a64d6ba9821e8a0cf0f44526f29d78 (patch)
tree5ee1cb91ea6b125217d52b8a573a1324029839d3
parent1996e237bb2fd3ac6c487b6e0821fdce6e03d122 (diff)
downloadbinutils-gdb-1c215b97f9a64d6ba9821e8a0cf0f44526f29d78.tar.gz
xtensa: Add missing statics
This actually fixes the build in C: /home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:100:1: error: no previous prototype for ‘supply_gregset_reg’ [-Werror=missing-prototypes] supply_gregset_reg (struct regcache *regcache, ^ /home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:257:1: error: no previous prototype for ‘xtensa_linux_fetch_inferior_registers’ [-Werror=missing-prototypes] xtensa_linux_fetch_inferior_registers (struct target_ops *ops, ^ /home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:272:1: error: no previous prototype for ‘xtensa_linux_store_inferior_registers’ [-Werror=missing-prototypes] xtensa_linux_store_inferior_registers (struct target_ops *ops, ^ cc1: all warnings being treated as errors These functions are local to this file, so they should be static. gdb/ChangeLog: * xtensa-linux-nat.c (supply_gregset_reg): Make static. (xtensa_linux_fetch_inferior_registers): Likewise. (xtensa_linux_store_inferior_registers): Likewise.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/xtensa-linux-nat.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8cb45b81a5b..b098a63975b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
+ * xtensa-linux-nat.c (supply_gregset_reg): Make static.
+ (xtensa_linux_fetch_inferior_registers): Likewise.
+ (xtensa_linux_store_inferior_registers): Likewise.
+
+2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
+
* arm-linux-nat.c (arm_linux_read_description): Add cast.
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index 5538d5b0c58..d024408c0d8 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -96,7 +96,7 @@ fill_gregset (const struct regcache *regcache,
}
}
-void
+static void
supply_gregset_reg (struct regcache *regcache,
const gdb_gregset_t *gregsetp, int regnum)
{
@@ -253,7 +253,7 @@ store_xtregs (struct regcache *regcache, int regnum)
perror_with_name (_("Couldn't write extended registers"));
}
-void
+static void
xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum)
{
@@ -268,7 +268,7 @@ xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
fetch_xtregs (regcache, regnum);
}
-void
+static void
xtensa_linux_store_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum)
{