This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Add explicit return type to gdbserver/low-*.c:read_inferior_memory


When investigating the dcache write problems Frank reported, I
discovered that gdbserver didn't build due to an inconsistancy in
server.h and low-nbsd.c.  I found the same problem in several other
low-*.c files.

I commited the enclosed patch.

        --jtc

2001-04-06  J.T. Conklin  <jtc@redback.com>

      * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
      void return value;
      * gdbserver/low-nbsd.c: Likewise.
      * gdbserver/low-sparc.c: Likewise.
      * gdbserver/low-sun3.c: Likewise.

Index: gdbserver/low-hppabsd.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/low-hppabsd.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- low-hppabsd.c	2001/03/13 23:31:14	1.6
+++ low-hppabsd.c	2001/04/06 22:25:09	1.7
@@ -272,6 +272,7 @@
 /* Copy LEN bytes from inferior's memory starting at MEMADDR
    to debugger memory starting at MYADDR.  */
 
+void
 read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
 {
   register int i;
Index: gdbserver/low-nbsd.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/low-nbsd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- low-nbsd.c	2001/03/06 08:21:44	1.8
+++ low-nbsd.c	2001/04/06 22:25:09	1.9
@@ -515,6 +515,7 @@
 /* Copy LEN bytes from inferior's memory starting at MEMADDR
    to debugger memory starting at MYADDR.  */
 
+void
 read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
 {
   register int i;
Index: gdbserver/low-sparc.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/low-sparc.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- low-sparc.c	2001/03/06 08:21:44	1.5
+++ low-sparc.c	2001/04/06 22:25:09	1.6
@@ -231,6 +231,7 @@
 /* Copy LEN bytes from inferior's memory starting at MEMADDR
    to debugger memory starting at MYADDR.  */
 
+void
 read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
 {
   register int i;
Index: gdbserver/low-sun3.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/low-sun3.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- low-sun3.c	2001/03/06 08:21:44	1.5
+++ low-sun3.c	2001/04/06 22:25:09	1.6
@@ -210,6 +210,7 @@
 /* Copy LEN bytes from inferior's memory starting at MEMADDR
    to debugger memory starting at MYADDR.  */
 
+void
 read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
 {
   register int i;


-- 
J.T. Conklin
RedBack Networks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]