From 5c678a1200be4a19a2b019488a4da4bc05a2454a Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Thu, 7 Sep 2000 19:27:15 +0000 Subject: Protoization. --- gdb/i386mach-nat.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'gdb/i386mach-nat.c') diff --git a/gdb/i386mach-nat.c b/gdb/i386mach-nat.c index 966acb898b..1759b0fb21 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; -- cgit v1.2.1