Protoization.
This commit is contained in:
parent
9fc2dda293
commit
726230095e
@ -1,3 +1,11 @@
|
||||
2000-08-12 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* 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 <cagney@makita.cygnus.com>
|
||||
|
||||
* config/mn10300/tm-mn10300.h (REGISTER_SIZE,
|
||||
|
@ -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];
|
||||
|
@ -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))); */
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user