From df86eb44ad9544c3b6c14e72dc089dd294bb541c Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Tue, 15 Dec 1992 07:29:28 +0000 Subject: [PATCH] Lint --- gdb/ChangeLog | 4 ++++ gdb/remote-nindy.c | 16 ++++++++++------ gdb/tm-nindy960.h | 6 +++++- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 29698d15de4..64803b7d249 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 14 23:28:15 1992 John Gilmore (gnu@cygnus.com) + + * tm-nindy960.h, remote-nindy.c: Lint. + Mon Dec 14 18:48:52 1992 Fred Fish (fnf@cygnus.com) * gdbtypes.c (create_array_type): Complete rewrite. Now requires diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c index 8081067ddd1..d6f66770f04 100644 --- a/gdb/remote-nindy.c +++ b/gdb/remote-nindy.c @@ -351,7 +351,7 @@ nindy_resume (step, siggnal) dcache_flush(); if ( regs_changed ){ - nindy_store_registers (); + nindy_store_registers (-1); regs_changed = 0; } have_regs = 0; @@ -429,9 +429,12 @@ nindy_wait( status ) immediate_quit--; } else { /* Get out of loop */ - supply_register (IP_REGNUM, &ip_value); - supply_register (FP_REGNUM, &fp_value); - supply_register (SP_REGNUM, &sp_value); + supply_register (IP_REGNUM, + (char *)&ip_value); + supply_register (FP_REGNUM, + (char *)&fp_value); + supply_register (SP_REGNUM, + (char *)&sp_value); break; } } @@ -530,7 +533,7 @@ nindy_store_registers(regno) bcopy (®isters[REGISTER_BYTE (PCW_REGNUM)], nindy_regs.pcw_acw, 2*4); bcopy (®isters[REGISTER_BYTE (IP_REGNUM)], nindy_regs.ip, 1*4); bcopy (®isters[REGISTER_BYTE (TCW_REGNUM)], nindy_regs.tcw, 1*4); - /* Float regs. Only works on IEEE_FLOAT hosts. */ + /* Float regs. Only works on IEEE_FLOAT hosts. FIXME! */ for (regnum = FP0_REGNUM; regnum < FP0_REGNUM + 4; regnum++) { ieee_extended_to_double (&ext_format_i960, ®isters[REGISTER_BYTE (regnum)], &dub); @@ -538,7 +541,7 @@ nindy_store_registers(regno) /* FIXME-someday, the arguments to unpack_double are backward. It expects a target double and returns a host; we pass the opposite. This mostly works but not quite. */ - dub = unpack_double (builtin_type_double, &dub, &inv); + dub = unpack_double (builtin_type_double, (char *)&dub, &inv); /* dub now in target byte order */ bcopy ((char *)&dub, &nindy_regs.fp_as_double[8 * (regnum - FP0_REGNUM)], 8); @@ -893,6 +896,7 @@ nindy_mourn_inferior () of this with a RETURN. This is useful when e.g. simply examining an i960 object file on the host system. */ +void nindy_before_main_loop () { char ttyname[100]; diff --git a/gdb/tm-nindy960.h b/gdb/tm-nindy960.h index 7237278d971..b32eaa89a36 100644 --- a/gdb/tm-nindy960.h +++ b/gdb/tm-nindy960.h @@ -70,6 +70,9 @@ extern char *nindy_ttyname; /* Name of serial port to talk to nindy */ #define BEFORE_MAIN_LOOP_HOOK \ nindy_before_main_loop(); +extern void +nindy_before_main_loop(); /* In remote-nindy.c */ + /* Address of end of stack space. * This probably doesn't matter for nindy, because it's only used * in manipulation of core files, which we don't support. @@ -87,7 +90,8 @@ extern char *nindy_ttyname; /* Name of serial port to talk to nindy */ #define FRAME_CHAIN_VALID(chain, thisframe) \ nindy_frame_chain_valid (chain, thisframe) -extern int nindy_frame_chain_valid(); /* See nindy-tdep.c */ +extern int +nindy_frame_chain_valid(); /* See nindy-tdep.c */ /* Sequence of bytes for breakpoint instruction */ -- 2.30.2