aboutsummaryrefslogtreecommitdiff
path: root/gdb/sun3-nat.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-10-27 01:25:10 +0000
committerKevin Buettner <kevinb@redhat.com>2000-10-27 01:25:10 +0000
commit38ef650ed66b4265e9932bee80d71d440358b031 (patch)
tree709f7ac895f8917d755d1817abda8a5906d893e8 /gdb/sun3-nat.c
parente4f5c43e770c77e2f566c3dcdd8e02043a78e2a6 (diff)
downloadgdb-38ef650ed66b4265e9932bee80d71d440358b031.zip
gdb-38ef650ed66b4265e9932bee80d71d440358b031.tar.gz
gdb-38ef650ed66b4265e9932bee80d71d440358b031.tar.bz2
Protoization.
Diffstat (limited to 'gdb/sun3-nat.c')
-rw-r--r--gdb/sun3-nat.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/gdb/sun3-nat.c b/gdb/sun3-nat.c
index 8f94809..8e27e64 100644
--- a/gdb/sun3-nat.c
+++ b/gdb/sun3-nat.c
@@ -90,14 +90,22 @@ store_inferior_registers (int regno)
/* All of this stuff is only relevant if both host and target are sun3. */
-/* Machine-dependent code for pulling registers out of a Sun-3 core file. */
+
+/* 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)
{
struct regs *regs = (struct regs *) core_reg_sect;