[Crash-utility] [PATCH] add strlen prototype to gdb-6.1/sim/ppc/debug.c

Olaf Hering olh at suse.de
Fri Sep 8 13:53:45 UTC 2006


This one may be harmless, but our build output checks dont like it.

---
 gdb-6.1.patch |   25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

Index: crash-4.0-2.33/gdb-6.1.patch
===================================================================
--- crash-4.0-2.33.orig/gdb-6.1.patch
+++ crash-4.0-2.33/gdb-6.1.patch
@@ -1,4 +1,15 @@
---- gdb-6.1/bfd/coff-alpha.c.orig
+debug.c: In function 'trace_usage':
+debug.c:129: warning: incompatible implicit declaration of built-in function 'strlen'
+
+
+---
+ bfd/coff-alpha.c |    2 +-
+ sim/ppc/debug.c  |    1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+Index: gdb-6.1/bfd/coff-alpha.c
+===================================================================
+--- gdb-6.1.orig/bfd/coff-alpha.c
 +++ gdb-6.1/bfd/coff-alpha.c
 @@ -1455,7 +1455,7 @@ alpha_relocate_section (output_bfd, info
  	  amt = sizeof (struct ecoff_section_tdata);
@@ -9,3 +20,15 @@
  	}
  
        if (lita_sec_data->gp != 0)
+Index: gdb-6.1/sim/ppc/debug.c
+===================================================================
+--- gdb-6.1.orig/sim/ppc/debug.c
++++ gdb-6.1/sim/ppc/debug.c
+@@ -28,6 +28,7 @@
+ #ifdef HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
++#include <string.h>
+ 
+ int ppc_trace[nr_trace_options];
+ 




More information about the Crash-utility mailing list