OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Thu, 10 Mar 2011 20:29:52 +0000 (20:29 +0000)
committerjkratoch <jkratoch>
Thu, 10 Mar 2011 20:29:52 +0000 (20:29 +0000)
* fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.

gdb/ChangeLog
gdb/fbsd-nat.c

index e695210..d965660 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
+
+       * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
+
 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
 
        * xtensa-tdep.c (xtensa_read_register: Add comment.
index 6b775a9..406ac37 100644 (file)
@@ -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 ())