diff options
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 8497991..4ae7f27 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; |