aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-01-31 06:02:18 +0000
committerAlan Modra <amodra@gmail.com>2001-01-31 06:02:18 +0000
commit956eedd4dc39168a5841975ee0fbf2da8301559f (patch)
tree5bb66872b6d2e1781ed9e821a14efb766cde5e93 /binutils
parentd1f4cff847cd744be01b8f514ddfc5fedba3afc4 (diff)
downloadgdb-956eedd4dc39168a5841975ee0fbf2da8301559f.zip
gdb-956eedd4dc39168a5841975ee0fbf2da8301559f.tar.gz
gdb-956eedd4dc39168a5841975ee0fbf2da8301559f.tar.bz2
Another HAVE_DOS_BASED_FILE_SYSTEM check.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/ieee.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8430d4e..dddbb35 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-31 Steve deRosier <sderosier@vari-lite.com>
+
+ * ieee.c (ieee_add_bb11): Don't check for backslashes
+ unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
+
2001-01-24 Mark Elbrecht <snowball3@bigfoot.com>
* ieee.c: Update copyright.
diff --git a/binutils/ieee.c b/binutils/ieee.c
index efd3ba3..52149b2 100644
--- a/binutils/ieee.c
+++ b/binutils/ieee.c
@@ -5204,15 +5204,20 @@ ieee_add_bb11 (info, sec, low, high)
}
else
{
- const char *filename, *modname, *backslash;
+ const char *filename, *modname;
+#ifdef HAVE_DOS_BASED_FILE_SYSTEM
+ const char *backslash;
+#endif
char *c, *s;
/* Start the enclosing BB10 block. */
filename = bfd_get_filename (info->abfd);
modname = strrchr (filename, '/');
+#ifdef HAVE_DOS_BASED_FILE_SYSTEM
backslash = strrchr (filename, '\\');
if (modname == NULL || (backslash != NULL && backslash > modname))
modname = backslash;
+#endif
if (modname != NULL)
++modname;