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

Dave Anderson anderson at redhat.com
Fri Sep 8 15:36:33 UTC 2006


Olaf Hering wrote:

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

Hi Olaf,

Although ppc64 builds here OK without it, out of paranoia I made sure
that it builds with it as well -- queued for next release.

Thanks,
  Dave


>
> ---
>  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 at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility




More information about the Crash-utility mailing list