summaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2011-03-09 12:48:53 +0000
committerPedro Alves <pedro@codesourcery.com>2011-03-09 12:48:53 +0000
commit7403e6b3f0f7d4c4f80703486f602ee5e2c9a3dd (patch)
tree003717b000cb0f61e409220ce561d197abe105a8 /gdb/minsyms.c
parent7c12a511f3c4438048a30e6349422c48a4d805a1 (diff)
downloadgdb-7403e6b3f0f7d4c4f80703486f602ee5e2c9a3dd.tar.gz
* 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/minsyms.c')
-rw-r--r--gdb/minsyms.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 8497991f04a..4ae7f279393 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -198,12 +198,7 @@ lookup_minimal_symbol (const char *name, const char *sfile,
const char *modified_name;
if (sfile != NULL)
- {
- char *p = strrchr (sfile, '/');
-
- if (p != NULL)
- sfile = p + 1;
- }
+ sfile = lbasename (sfile);
/* For C++, canonicalize the input name. */
modified_name = name;