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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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];
+ 

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux