This is the mail archive of the gdb-patches@sourceware.cygnus.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]

000215 some warning removal


The hppah-nat.c patch is needed to build on hpux10.20.
The mmalloc, ui-out.c and remote.c patches are warning elimination.

2000-02-17  RodneyBrown@pmsc.com
	* ui-out.c:ui_out_set_flags Warning removal/fix
	* hppah-nat.c wait.h => gdb_wait.h
	* remote.c complete initializer
	* mmalloc/mm.c unistd.h for sbrk, lseek declaration
	* mmalloc/attach.c unistd.h for lseek declaration
	* mmalloc/mmap-sup.c unistd.h for lseek declaration
	* mmalloc/sbrk-sup.c unistd.h for sbrk declaration

--- gdb/ui-out.c.orig	Thu Feb  3 15:14:36 2000
+++ gdb/ui-out.c	Thu Feb 17 15:16:13 2000
@@ -492,7 +492,7 @@
 {
   int oldflags;
 
-  uiout->flags != mask;
+  uiout->flags |= mask;
 
   return oldflags;
 }
--- gdb/hppah-nat.c.orig	Thu Dec 23 08:45:06 1999
+++ gdb/hppah-nat.c	Wed Feb 16 19:39:50 2000
@@ -28,7 +28,7 @@
 #include "target.h"
 #include <sys/ptrace.h>
 #include "gdbcore.h"
-#include <wait.h>
+#include "gdb_wait.h"
 #include <signal.h>
 
 extern CORE_ADDR text_end;
--- gdb/remote.c.orig	Wed Feb  9 19:52:47 2000
+++ gdb/remote.c	Thu Feb 17 16:18:46 2000
@@ -425,6 +425,8 @@
 static struct memory_packet_config memory_write_packet_config =
 {
   "memory-write-packet-size",
+  0L,
+  0
 };
 
 static void
@@ -448,6 +450,8 @@
 static struct memory_packet_config memory_read_packet_config =
 {
   "memory-read-packet-size",
+  0L,
+  0
 };
 
 static void
--- mmalloc/sbrk-sup.c.orig	Sat Feb  5 18:30:16 2000
+++ mmalloc/sbrk-sup.c	Thu Feb 17 15:30:50 2000
@@ -19,6 +19,9 @@
 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>	/* Prototypes for sbrk (maybe) */
+#endif
 #include <string.h>	/* Prototypes for memcpy, memmove, memset, etc */
 
 #include "mmprivate.h"
--- mmalloc/mm.c.orig	Thu Feb 17 15:55:33 2000
+++ mmalloc/mm.c	Thu Feb 17 15:38:53 2000
@@ -21,6 +21,9 @@
 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA. */
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>	/* Prototypes for lseek, sbrk (maybe) */
+#endif
 #include "mcalloc.c"
 #include "mfree.c"
 #include "mmalloc.c"
--- mmalloc/attach.c.orig	Thu Feb 17 15:55:34 2000
+++ mmalloc/attach.c	Thu Feb 17 15:38:21 2000
@@ -24,6 +24,9 @@
 #include <fcntl.h> /* After sys/types.h, at least for dpx/2.  */
 #include <sys/stat.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>	/* Prototypes for lseek */
+#endif
 #include "mmprivate.h"
 
 #ifndef SEEK_SET
--- mmalloc/mmap-sup.c.orig	Thu Feb 17 15:55:35 2000
+++ mmalloc/mmap-sup.c	Thu Feb 17 15:37:44 2000
@@ -22,6 +22,9 @@
 
 #if defined(HAVE_MMAP)
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>	/* Prototypes for lseek */
+#endif
 #include <stdio.h>
 #include <fcntl.h>
 #include <sys/mman.h>

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