aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/riscv-linux-nat.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ff36b9b..6742fad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
+ Add missing braces. No functional change.
+
2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* macrocmd.c (info_macro_command): Use report_unrecognized_option_error
diff --git a/gdb/riscv-linux-nat.c b/gdb/riscv-linux-nat.c
index c09121d..d51f6e3 100644
--- a/gdb/riscv-linux-nat.c
+++ b/gdb/riscv-linux-nat.c
@@ -201,8 +201,10 @@ riscv_linux_nat_target::fetch_registers (struct regcache *regcache, int regnum)
if ((regnum == RISCV_CSR_MISA_REGNUM)
|| (regnum == -1))
- /* TODO: Need to add a ptrace call for this. */
- regcache->raw_supply_zeroed (RISCV_CSR_MISA_REGNUM);
+ {
+ /* TODO: Need to add a ptrace call for this. */
+ regcache->raw_supply_zeroed (RISCV_CSR_MISA_REGNUM);
+ }
/* Access to other CSRs has potential security issues, don't support them for
now. */