[pushed] Fix spurious semicolon in sparc-linux-nat.c

Message ID 20181126193808.17834-1-simon.marchi@ericsson.com
State New, archived
Headers

Commit Message

Simon Marchi Nov. 26, 2018, 7:38 p.m. UTC
  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(-)

-- 
2.19.1
  

Patch

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  <simon.marchi@ericsson.com>
+
+	PR gdb/23917
+	* sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
+	semicolon.
+
 2018-11-26  Pedro Alves  <palves@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 (regcache, regnum); }
 };