aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 4ae7f27..4551b07 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -43,6 +43,7 @@
#include "gdb_string.h"
#include "symtab.h"
#include "bfd.h"
+#include "filenames.h"
#include "symfile.h"
#include "objfiles.h"
#include "demangle.h"
@@ -255,7 +256,7 @@ lookup_minimal_symbol (const char *name, const char *sfile,
case mst_file_data:
case mst_file_bss:
if (sfile == NULL
- || strcmp (msymbol->filename, sfile) == 0)
+ || filename_cmp (msymbol->filename, sfile) == 0)
found_file_symbol = msymbol;
break;