Protoization.
This commit is contained in:
parent
ea2aae66fe
commit
5c678a1200
@ -1,3 +1,9 @@
|
|||||||
|
2000-09-07 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* i386mach-nat.c (fetch_inferior_registers, fetch_core_registers):
|
||||||
|
Protoize.
|
||||||
|
* i960-tdep.c (i960_skip_prologue, leafproc_return, mem): Protoize.
|
||||||
|
|
||||||
Thu Sep 7 21:59:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
Thu Sep 7 21:59:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* aclocal.m4: Regenerate.
|
* aclocal.m4: Regenerate.
|
||||||
|
@ -40,8 +40,7 @@
|
|||||||
static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
|
static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
|
||||||
|
|
||||||
void
|
void
|
||||||
fetch_inferior_registers (regno)
|
fetch_inferior_registers (int regno)
|
||||||
int regno; /* Original value discarded */
|
|
||||||
{
|
{
|
||||||
struct regs inferior_registers;
|
struct regs inferior_registers;
|
||||||
struct fp_state inferior_fp_registers;
|
struct fp_state inferior_fp_registers;
|
||||||
@ -109,14 +108,21 @@ store_inferior_registers (int regno)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Work with core files, for GDB. */
|
/* Provide registers to GDB from a core file.
|
||||||
|
|
||||||
|
CORE_REG_SECT points to an array of bytes, which were obtained from
|
||||||
|
a core file which BFD thinks might contain register contents.
|
||||||
|
CORE_REG_SIZE is its size.
|
||||||
|
|
||||||
|
WHICH says which register set corelow suspects this is:
|
||||||
|
0 --- the general-purpose register set
|
||||||
|
2 --- the floating-point register set
|
||||||
|
|
||||||
|
REG_ADDR isn't used. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
|
fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
|
||||||
char *core_reg_sect;
|
int which, CORE_ADDR reg_addr)
|
||||||
unsigned core_reg_size;
|
|
||||||
int which;
|
|
||||||
CORE_ADDR reg_addr; /* Unused in this version */
|
|
||||||
{
|
{
|
||||||
int val;
|
int val;
|
||||||
|
|
||||||
|
@ -331,8 +331,7 @@ examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
|
|||||||
prologue. */
|
prologue. */
|
||||||
|
|
||||||
CORE_ADDR
|
CORE_ADDR
|
||||||
i960_skip_prologue (ip)
|
i960_skip_prologue (CORE_ADDR ip)
|
||||||
CORE_ADDR (ip);
|
|
||||||
{
|
{
|
||||||
struct frame_saved_regs saved_regs_dummy;
|
struct frame_saved_regs saved_regs_dummy;
|
||||||
struct symtab_and_line sal;
|
struct symtab_and_line sal;
|
||||||
@ -479,9 +478,11 @@ frame_struct_result_address (struct frame_info *fi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Return address to which the currently executing leafproc will return,
|
/* Return address to which the currently executing leafproc will return,
|
||||||
or 0 if ip is not in a leafproc (or if we can't tell if it is).
|
or 0 if IP, the value of the instruction pointer from the currently
|
||||||
|
executing function, is not in a leafproc (or if we can't tell if it
|
||||||
|
is).
|
||||||
|
|
||||||
Do this by finding the starting address of the routine in which ip lies.
|
Do this by finding the starting address of the routine in which IP lies.
|
||||||
If the instruction there is "mov g14, gx" (where x is in [0,7]), this
|
If the instruction there is "mov g14, gx" (where x is in [0,7]), this
|
||||||
is a leafproc and the return address is in register gx. Well, this is
|
is a leafproc and the return address is in register gx. Well, this is
|
||||||
true unless the return address points at a RET instruction in the current
|
true unless the return address points at a RET instruction in the current
|
||||||
@ -489,8 +490,7 @@ frame_struct_result_address (struct frame_info *fi)
|
|||||||
has been entered through the CALL entry point. */
|
has been entered through the CALL entry point. */
|
||||||
|
|
||||||
CORE_ADDR
|
CORE_ADDR
|
||||||
leafproc_return (ip)
|
leafproc_return (CORE_ADDR ip)
|
||||||
CORE_ADDR ip; /* ip from currently executing function */
|
|
||||||
{
|
{
|
||||||
register struct minimal_symbol *msymbol;
|
register struct minimal_symbol *msymbol;
|
||||||
char *p;
|
char *p;
|
||||||
@ -684,12 +684,13 @@ struct tabent
|
|||||||
char numops;
|
char numops;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int /* returns instruction length: 4 or 8 */
|
/* Return instruction length, either 4 or 8. When NOPRINT is non-zero
|
||||||
mem (memaddr, word1, word2, noprint)
|
(TRUE), don't output any text. (Actually, as implemented, if NOPRINT
|
||||||
unsigned long memaddr;
|
is 0, abort() is called.) */
|
||||||
unsigned long word1, word2;
|
|
||||||
int noprint; /* If TRUE, return instruction length, but
|
static int
|
||||||
don't output any text. */
|
mem (unsigned long memaddr, unsigned long word1, unsigned long word2,
|
||||||
|
int noprint)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
int len;
|
int len;
|
||||||
|
Loading…
Reference in New Issue
Block a user