From: Kevin Buettner Date: Sun, 13 Aug 2000 01:22:17 +0000 (+0000) Subject: Protoization. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=726230095ecb85068a9c517291df03f34b11464f;p=binutils-gdb.git Protoization. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0b6d14e0fe..ecbdde402a3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2000-08-12 Kevin Buettner + + * cxux-nat.c (fetch_inferior_registers): Protoize. + * d10v-tdep.c (d10v_frame_chain_valid, d10v_extract_return_value): + Protoize. + * d30v-tdep.c (d30v_frame_chain_valid, d30v_extract_return_value): + Protoize. + Fri Aug 11 19:00:51 2000 Andrew Cagney * config/mn10300/tm-mn10300.h (REGISTER_SIZE, diff --git a/gdb/cxux-nat.c b/gdb/cxux-nat.c index c37fc0cb710..74636bdd1ed 100644 --- a/gdb/cxux-nat.c +++ b/gdb/cxux-nat.c @@ -66,8 +66,7 @@ extern jmp_buf stack_jmp; extern int errno; void -fetch_inferior_registers (regno) - int regno; /* Original value discarded */ +fetch_inferior_registers (int regno) { register unsigned int regaddr; char buf[MAX_REGISTER_RAW_SIZE]; diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index ed71bfc6580..8b6f0905e45 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -99,9 +99,7 @@ extern void d10v_frame_init_saved_regs (struct frame_info *); static void do_d10v_pop_frame (struct frame_info *fi); int -d10v_frame_chain_valid (chain, frame) - CORE_ADDR chain; - struct frame_info *frame; /* not used here */ +d10v_frame_chain_valid (CORE_ADDR chain, struct frame_info *frame) { return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START); } @@ -1092,10 +1090,8 @@ d10v_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp, extract and copy its value into `valbuf'. */ void -d10v_extract_return_value (type, regbuf, valbuf) - struct type *type; - char regbuf[REGISTER_BYTES]; - char *valbuf; +d10v_extract_return_value (struct type *type, char regbuf[REGISTER_BYTES], + char *valbuf) { int len; /* printf("RET: TYPE=%d len=%d r%d=0x%x\n",type->code, TYPE_LENGTH (type), RET1_REGNUM - R0_REGNUM, (int) extract_unsigned_integer (regbuf + REGISTER_BYTE(RET1_REGNUM), REGISTER_RAW_SIZE (RET1_REGNUM))); */ diff --git a/gdb/d30v-tdep.c b/gdb/d30v-tdep.c index f20ab0bd84b..125723ad436 100644 --- a/gdb/d30v-tdep.c +++ b/gdb/d30v-tdep.c @@ -97,9 +97,7 @@ static void print_flags_command (char *, int); int -d30v_frame_chain_valid (chain, fi) - CORE_ADDR chain; - struct frame_info *fi; /* not used here */ +d30v_frame_chain_valid (CORE_ADDR chain, struct frame_info *fi) { #if 0 return ((chain) != 0 && (fi) != 0 && (fi)->return_pc != 0); @@ -1028,10 +1026,8 @@ d30v_call_dummy_address (void) extract and copy its value into `valbuf'. */ void -d30v_extract_return_value (valtype, regbuf, valbuf) - struct type *valtype; - char regbuf[REGISTER_BYTES]; - char *valbuf; +d30v_extract_return_value (struct type *valtype, char regbuf[REGISTER_BYTES], + char *valbuf) { memcpy (valbuf, regbuf + REGISTER_BYTE (2), TYPE_LENGTH (valtype)); }