aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386mach-nat.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/i386mach-nat.c
parentea2aae66fe48d7dc62e653aa34b5ebc2de0f3ec2 (diff)
downloadgdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.zip
gdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.tar.gz
gdb-5c678a1200be4a19a2b019488a4da4bc05a2454a.tar.bz2
Protoization.
Diffstat (limited to 'gdb/i386mach-nat.c')
-rw-r--r--gdb/i386mach-nat.c22
1 files changed, 14 insertions, 8 deletions
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;