*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / fbsd-nat.c
index 3c3053c7428178e6ea0416fd2ec5f10336dd8e88..406ac372331937336cb2e72b36227165ed530dd5 100644 (file)
@@ -34,7 +34,7 @@
 #include "elf-bfd.h"
 #include "fbsd-nat.h"
 
-/* Return a the name of file that can be opened to get the symbols for
+/* Return the name of a file that can be opened to get the symbols for
    the child process identified by PID.  */
 
 char *
@@ -202,7 +202,7 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
 
   if (get_exec_file (0))
     {
-      char *fname = strrchr (get_exec_file (0), '/') + 1;
+      const char *fname = lbasename (get_exec_file (0));
       char *psargs = xstrdup (fname);
 
       if (get_inferior_args ())
This page took 0.025449 seconds and 4 git commands to generate.