Discussion:
[pushed] Fix spurious semicolon in sparc-linux-nat.c
Simon Marchi
2018-11-26 19:38:28 UTC
Permalink
Remove a semicolon that should not be there, as reported in PR 23917:

CXX sparc-linux-nat.o
/home/emaisin/src/binutils-gdb/gdb/sparc-linux-nat.c:39:3: error: expected unqualified-id before ‘{’ token
{ sparc_store_inferior_registers (regcache, regnum); }
^

Tested by rebuilding the file manually (make sparc-linux-nat.o) in a
sparc64-linux-gnu build.

gdb/ChangeLog:

PR gdb/23917
* sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
semicolon.
---
gdb/ChangeLog | 6 ++++++
gdb/sparc-linux-nat.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9badb720afe..1c714ddba3f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2018-11-26 Simon Marchi <***@ericsson.com>
+
+ PR gdb/23917
+ * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
+ semicolon.
+
2018-11-26 Pedro Alves <***@redhat.com>

* procfs.c (procfs_notice_thread): Replace uses of
diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index 2df0025135c..765f24c86ae 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -35,7 +35,7 @@ public:
void fetch_registers (struct regcache *regcache, int regnum) override
{ sparc_fetch_inferior_registers (regcache, regnum); }

- void store_registers (struct regcache *regcache, int regnum) override;
+ void store_registers (struct regcache *regcache, int regnum) override
{ sparc_store_inferior_registers (regcac

Loading...