aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/am29k-tdep.c13
-rw-r--r--gdb/remote-eb.c4
2 files changed, 9 insertions, 8 deletions
diff --git a/gdb/am29k-tdep.c b/gdb/am29k-tdep.c
index 51bfb4b..33d16c8 100644
--- a/gdb/am29k-tdep.c
+++ b/gdb/am29k-tdep.c
@@ -383,10 +383,11 @@ init_extra_frame_info (fci)
/* Assume innermost frame. May produce strange results for "info frame"
but there isn't any way to tell the difference. */
init_frame_info (1, fci);
- else
- /* We're in get_prev_frame_info.
- Take care of everything in init_frame_pc. */
- ;
+ else {
+ /* We're in get_prev_frame_info.
+ Take care of everything in init_frame_pc. */
+ ;
+ }
}
void
@@ -455,7 +456,7 @@ read_register_stack (memaddr, myaddr, actual_mem_addr, lval)
if (lval != NULL)
*lval = lval_memory;
if (actual_mem_addr != NULL)
- *actual_mem_addr == memaddr;
+ *actual_mem_addr = memaddr;
}
}
@@ -500,7 +501,7 @@ write_register_stack (memaddr, myaddr, actual_mem_addr)
if (myaddr != NULL)
write_memory (memaddr, myaddr, 4);
if (actual_mem_addr != NULL)
- *actual_mem_addr == memaddr;
+ *actual_mem_addr = memaddr;
}
}
diff --git a/gdb/remote-eb.c b/gdb/remote-eb.c
index 351eec3..53c9a70 100644
--- a/gdb/remote-eb.c
+++ b/gdb/remote-eb.c
@@ -694,7 +694,7 @@ eb_fetch_registers ()
/* Fetch register REGNO, or all registers if REGNO is -1.
Returns errno value. */
-int
+void
eb_fetch_register (regno)
int regno;
{
@@ -709,7 +709,7 @@ eb_fetch_register (regno)
get_hex_regs (1, regno);
expect_prompt ();
}
- return 0;
+ return;
}
/* Store the remote registers from the contents of the block REGS. */