aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mm.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-20 03:42:14 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-20 03:42:14 +0000
commite95bfbf19c3d4a6aaf3ed265b7a333a322fc0be2 (patch)
tree2cba64a3ee48f4561d269c90477267518a4544be /gdb/remote-mm.c
parent796aae470c86ac66dd43c452485dbb090d7b5370 (diff)
downloadgdb-e95bfbf19c3d4a6aaf3ed265b7a333a322fc0be2.zip
gdb-e95bfbf19c3d4a6aaf3ed265b7a333a322fc0be2.tar.gz
gdb-e95bfbf19c3d4a6aaf3ed265b7a333a322fc0be2.tar.bz2
* remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
INT_REGNUM to INTE_REGNUM. * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
Diffstat (limited to 'gdb/remote-mm.c')
-rw-r--r--gdb/remote-mm.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c
index 2ca1e37..b659815 100644
--- a/gdb/remote-mm.c
+++ b/gdb/remote-mm.c
@@ -61,7 +61,7 @@ extern int stop_soon_quietly; /* for wait_for_inferior */
static void mm_resume();
static void mm_fetch_registers ();
static int fetch_register ();
-static int mm_store_registers ();
+static void mm_store_registers ();
static int store_register ();
static int regnum_to_srnum();
static void mm_close ();
@@ -793,7 +793,7 @@ int regno;
{
int val = -1;
supply_register (FPE_REGNUM, &val);
- supply_register (INT_REGNUM, &val);
+ supply_register (INTE_REGNUM, &val);
supply_register (FPS_REGNUM, &val);
supply_register (EXO_REGNUM, &val);
}
@@ -808,14 +808,16 @@ int regno;
* Result is 0 for success, -1 for failure.
*/
-static int
+static void
mm_store_registers (regno)
int regno;
{
int result;
- if (regno >= 0)
- return(store_register(regno));
+ if (regno >= 0) {
+ store_register(regno);
+ return;
+ }
DENTER("mm_store_registers()");
result = 0;
@@ -929,7 +931,7 @@ int regno;
registers_changed ();
DEXIT("mm_store_registers()");
- return result;
+ /* FIXME return result; it is ignored by caller. */
}
/*************************************************** REMOTE_PREPARE_TO_STORE */
@@ -1506,7 +1508,7 @@ int regno;
case FC_REGNUM: return(134);
case CR_REGNUM: return(135);
case FPE_REGNUM: return(160);
- case INT_REGNUM: return(161);
+ case INTE_REGNUM: return(161);
case FPS_REGNUM: return(162);
case EXO_REGNUM:return(164);
default: