aboutsummaryrefslogtreecommitdiff
path: root/gdb/i960-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-09-07 19:27:15 +0000
committerKevin Buettner <kevinb@redhat.com>2000-09-07 19:27:15 +0000
commit5c678a1200be4a19a2b019488a4da4bc05a2454a (patch)
treec4a04ba57a8dab75b84616c8c3678435b4b53f63 /gdb/i960-tdep.c
parentea2aae66fe48d7dc62e653aa34b5ebc2de0f3ec2 (diff)
downloadgdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.zip
gdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.tar.gz
gdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.tar.bz2
Protoization.
Diffstat (limited to 'gdb/i960-tdep.c')
-rw-r--r--gdb/i960-tdep.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/gdb/i960-tdep.c b/gdb/i960-tdep.c
index 7bc0e88..21eb754 100644
--- a/gdb/i960-tdep.c
+++ b/gdb/i960-tdep.c
@@ -331,8 +331,7 @@ examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
prologue. */
CORE_ADDR
-i960_skip_prologue (ip)
-CORE_ADDR (ip);
+i960_skip_prologue (CORE_ADDR ip)
{
struct frame_saved_regs saved_regs_dummy;
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,
- 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
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
@@ -489,8 +490,7 @@ frame_struct_result_address (struct frame_info *fi)
has been entered through the CALL entry point. */
CORE_ADDR
-leafproc_return (ip)
- CORE_ADDR ip; /* ip from currently executing function */
+leafproc_return (CORE_ADDR ip)
{
register struct minimal_symbol *msymbol;
char *p;
@@ -684,12 +684,13 @@ struct tabent
char numops;
};
-static int /* returns instruction length: 4 or 8 */
-mem (memaddr, word1, word2, noprint)
- unsigned long memaddr;
- unsigned long word1, word2;
- int noprint; /* If TRUE, return instruction length, but
- don't output any text. */
+/* Return instruction length, either 4 or 8. When NOPRINT is non-zero
+ (TRUE), don't output any text. (Actually, as implemented, if NOPRINT
+ is 0, abort() is called.) */
+
+static int
+mem (unsigned long memaddr, unsigned long word1, unsigned long word2,
+ int noprint)
{
int i, j;
int len;