aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parentea2aae66fe48d7dc62e653aa34b5ebc2de0f3ec2 (diff)
downloadgdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.zip
gdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.tar.gz
gdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.tar.bz2
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/i386mach-nat.c22
-rw-r--r--gdb/i960-tdep.c25
3 files changed, 33 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2017a23..1119260 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
* aclocal.m4: Regenerate.
diff --git a/gdb/i386mach-nat.c b/gdb/i386mach-nat.c
index 966acb8..1759b0f 100644
--- a/gdb/i386mach-nat.c
+++ b/gdb/i386mach-nat.c
@@ -40,8 +40,7 @@
static void fetch_core_registers (char *, unsigned, int, CORE_ADDR);
void
-fetch_inferior_registers (regno)
- int regno; /* Original value discarded */
+fetch_inferior_registers (int regno)
{
struct regs inferior_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
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr; /* Unused in this version */
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+ int which, CORE_ADDR reg_addr)
{
int val;
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;