diff options
author | Pedro Alves <palves@redhat.com> | 2011-03-09 12:48:56 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-03-09 12:48:56 +0000 |
commit | 9f37bbcca8004e1ac5be674446c51b50b36dc94e (patch) | |
tree | 02a5d9a92d9719944c943c4f7160cc3a6d42fc5a /gdb/linux-nat.c | |
parent | f8de3c55e995e88e61316d7025e4d83927497e18 (diff) | |
download | gdb-9f37bbcca8004e1ac5be674446c51b50b36dc94e.zip gdb-9f37bbcca8004e1ac5be674446c51b50b36dc94e.tar.gz gdb-9f37bbcca8004e1ac5be674446c51b50b36dc94e.tar.bz2 |
* cli/cli-cmds.c (shell_escape): Use lbasename.
* coffread.c (coff_start_symtab): Constify parameter.
(complete_symtab): Constify `name' parameter.
(coff_symtab_read): Constify `filestring' local.
(coff_getfilename): Constify return and `result' local.
Use lbasename.
* fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
* linux-fork.c (info_checkpoints_command): Use lbasename.
* linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
* minsyms.c (lookup_minimal_symbol): Use lbasename.
* nto-tdep.c (nto_find_and_open_solib): Use lbasename.
* procfs.c (procfs_make_note_section): Use lbasename.
* tui/tui-io.c (printable_part): Constity return and parameter.
Use lbasename.
(print_filename): Constify parameters, and local `s'.
(tui_rl_display_match_list): Constify local `temp'.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 922a2cf..732812d 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4491,7 +4491,7 @@ linux_nat_make_corefile_notes (bfd *obfd, int *note_size) if (get_exec_file (0)) { - strncpy (fname, strrchr (get_exec_file (0), '/') + 1, sizeof (fname)); + strncpy (fname, lbasename (get_exec_file (0)), sizeof (fname)); strncpy (psargs, get_exec_file (0), sizeof (psargs)); if (get_inferior_args ()) { |