diff options
Diffstat (limited to 'binutils/debug.c')
-rw-r--r-- | binutils/debug.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/binutils/debug.c b/binutils/debug.c index ebe63f1f25f..ee0d62e8ff9 100644 --- a/binutils/debug.c +++ b/binutils/debug.c @@ -31,6 +31,7 @@ #include <assert.h> #include "bfd.h" #include "libiberty.h" +#include "filenames.h" #include "debug.h" /* Global information we keep for debugging. A pointer to this @@ -729,9 +730,7 @@ debug_start_source (void *handle, const char *name) for (f = info->current_unit->files; f != NULL; f = f->next) { - if (f->filename[0] == name[0] - && f->filename[1] == name[1] - && strcmp (f->filename, name) == 0) + if (filename_cmp (f->filename, name) == 0) { info->current_file = f; return TRUE; |