This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize hppa-tdep.c, hppah-nat.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] Protoize hppa-tdep.c, hppah-nat.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Wed, 30 Aug 2000 20:36:17 -0700
More protoization...
I ended up removing the ATTRIBUTE_UNUSED stuff completely. If I'm not
mistaken, Andrew has submitted some patches to make this unnecessary,
right?
Also, I took the liberty of converting the occurrence of PTR to void *.
(One less to do later on...)
* hppa-tdep.c (record_text_segment_lowaddr): Protoize.
* hppah-nat.c (child_xfer_memory): Protoize.
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.7
diff -u -r1.7 hppa-tdep.c
--- hppa-tdep.c 2000/08/10 21:17:46 1.7
+++ hppa-tdep.c 2000/08/31 03:32:26
@@ -294,10 +294,7 @@
static CORE_ADDR low_text_segment_address;
static void
-record_text_segment_lowaddr (abfd, section, ignored)
- bfd *abfd ATTRIBUTE_UNUSED;
- asection *section;
- PTR ignored ATTRIBUTE_UNUSED;
+record_text_segment_lowaddr (bfd *abfd, asection *section, void *ignored)
{
if ((section->flags & (SEC_ALLOC | SEC_LOAD | SEC_READONLY)
== (SEC_ALLOC | SEC_LOAD | SEC_READONLY))
Index: hppah-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/hppah-nat.c,v
retrieving revision 1.4
diff -u -r1.4 hppah-nat.c
--- hppah-nat.c 2000/07/30 01:48:25 1.4
+++ hppah-nat.c 2000/08/31 03:32:28
@@ -262,15 +262,11 @@
Returns the length copied, which is either the LEN argument or zero.
This xfer function does not do partial moves, since child_ops
doesn't allow memory operations to cross below us in the target stack
- anyway. */
+ anyway. TARGET is ignored. */
int
-child_xfer_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target; /* ignored */
+child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *target)
{
register int i;
/* Round starting address down to longword boundary. */