This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize sparc-nat.c, sparcl-tdep.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] Protoize sparc-nat.c, sparcl-tdep.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Thu, 19 Oct 2000 17:59:52 -0700
More protoization...
* sparc-nat.c (fetch_core_registers): Protoize.
* sparcl-tdep.c (download): Protoize.
Index: sparc-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-nat.c,v
retrieving revision 1.3
diff -u -r1.3 sparc-nat.c
--- sparc-nat.c 2000/07/30 01:48:27 1.3
+++ sparc-nat.c 2000/10/20 00:52:24
@@ -248,13 +248,21 @@
}
}
+/* Provide registers to GDB from a core file.
+ CORE_REG_SECT points to an array of bytes, which are the contents
+ of a `note' 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
+
+ IGNORE is unused. */
+
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR ignore; /* reg addr, unused in this version */
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+ int which, CORE_ADDR ignore)
{
if (which == 0)
Index: sparcl-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparcl-tdep.c,v
retrieving revision 1.6
diff -u -r1.6 sparcl-tdep.c
--- sparcl-tdep.c 2000/07/30 01:48:27 1.6
+++ sparcl-tdep.c 2000/10/20 00:52:25
@@ -527,13 +527,10 @@
#define LOAD_ADDRESS 0x40000000
static void
-download (target_name, args, from_tty, write_routine, start_routine)
- char *target_name;
- char *args;
- int from_tty;
- void (*write_routine) (bfd * from_bfd, asection * from_sec,
- file_ptr from_addr, bfd_vma to_addr, int len);
- void (*start_routine) (bfd_vma entry);
+download (char *target_name, char *args, int from_tty,
+ void (*write_routine) (bfd *from_bfd, asection *from_sec,
+ file_ptr from_addr, bfd_vma to_addr, int len),
+ void (*start_routine) (bfd_vma entry))
{
struct cleanup *old_chain;
asection *section;