diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-04-30 10:30:27 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-04-30 10:30:27 +0000 |
commit | b1ebb0386b74e2ec867bd83f232be590a0b23074 (patch) | |
tree | 799e8a413eb6ea5dac1861f1b74a2ea05b30dd23 /gdb/buildsym.c | |
parent | 80a9f6681604c6ef92e41592093dc067e695b29b (diff) | |
download | gdb-b1ebb0386b74e2ec867bd83f232be590a0b23074.tar.gz |
* buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
(top-level): #include filenames.h.
* dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
FILENAME_CMP, to DTRT on non-Posix platforms.
(top-level): #include filenames.h.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index e30f98a0252..b62c3464d01 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -38,6 +38,7 @@ #include "expression.h" /* For "enum exp_opcode" used by... */ #include "language.h" /* For "longest_local_hex_string_custom" */ #include "bcache.h" +#include "filenames.h" /* For DOSish file names */ /* Ask buildsym.h to define the vars it normally declares `extern'. */ #define EXTERN /**/ @@ -532,7 +533,7 @@ start_subfile (char *name, char *dirname) for (subfile = subfiles; subfile; subfile = subfile->next) { - if (STREQ (subfile->name, name)) + if (FILENAME_CMP (subfile->name, name) == 0) { current_subfile = subfile; return; |