From: Jan Kratochvil Date: Thu, 10 Mar 2011 11:29:54 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d6c6b1f5589004c390d66c18647656d87c9ae22;p=binutils-gdb.git gdb/ * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e695210853f..d965660f3f6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-03-10 Andreas Tobler + + * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. + 2011-03-09 Maxim Grigoriev * xtensa-tdep.c (xtensa_read_register: Add comment. diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 6b775a9651c..406ac372331 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -202,7 +202,7 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size) if (get_exec_file (0)) { - char *fname = lbasename (get_exec_file (0)); + const char *fname = lbasename (get_exec_file (0)); char *psargs = xstrdup (fname); if (get_inferior_args ())