From: Jan Kratochvil Date: Fri, 7 May 2010 14:42:30 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f1f688424574eaba15256ec436b564a8e2e8c20;p=binutils-gdb.git gdb/ * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as sentinel. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 582cc1542e9..8a4703e732e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-05-07 Jan Kratochvil + + * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as + sentinel. + 2010-05-07 Pedro Alves * remote.c (remote_query_supported_append): Use reconcat. diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index d150b1e04bc..d499864904e 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -208,7 +208,8 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size) char *psargs = xstrdup (fname); if (get_inferior_args ()) - psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL); + psargs = reconcat (psargs, psargs, " ", get_inferior_args (), + (char *) NULL); note_data = elfcore_write_prpsinfo (obfd, note_data, note_size, fname, psargs);