aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-nat.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-05-07 14:42:30 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-05-07 14:42:30 +0000
commit3f1f688424574eaba15256ec436b564a8e2e8c20 (patch)
tree3df2d0deab999ce00657bc26633cddd5f72402ae /gdb/fbsd-nat.c
parent94b0dee14131cfc1d6aef4690eab720e117f44e7 (diff)
downloadfsf-binutils-gdb-3f1f688424574eaba15256ec436b564a8e2e8c20.zip
fsf-binutils-gdb-3f1f688424574eaba15256ec436b564a8e2e8c20.tar.gz
fsf-binutils-gdb-3f1f688424574eaba15256ec436b564a8e2e8c20.tar.bz2
gdb/
* fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as sentinel.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r--gdb/fbsd-nat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index d150b1e..d499864 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);