Don't check for backslashes in file names
unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
This commit is contained in:
parent
8855cbcaee
commit
c7f2731ef2
@ -1,5 +1,9 @@
|
|||||||
2001-01-24 Mark Elbrecht <snowball3@bigfoot.com>
|
2001-01-24 Mark Elbrecht <snowball3@bigfoot.com>
|
||||||
|
|
||||||
|
* ieee.c: Update copyright.
|
||||||
|
(ieee_start_compilation_unit): Don't check for backslashes
|
||||||
|
unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
|
||||||
|
|
||||||
* stabs.c: Update copyright. Include "filenames.h".
|
* stabs.c: Update copyright. Include "filenames.h".
|
||||||
(parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
|
(parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
|
||||||
|
|
||||||
@ -1030,7 +1034,7 @@ Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
|||||||
2000-01-03 Nick Clifton <nickc@cygnus.com>
|
2000-01-03 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* binutils.texi: Document new, ARM specific disassembler
|
* binutils.texi: Document new, ARM specific disassembler
|
||||||
command line switch "-M force-thumb".For older changes see ChangeLog-9697
|
command line switch "-M force-thumb".
|
||||||
|
|
||||||
For older changes see ChangeLog-9899
|
For older changes see ChangeLog-9899
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ieee.c -- Read and write IEEE-695 debugging information.
|
/* ieee.c -- Read and write IEEE-695 debugging information.
|
||||||
Copyright (C) 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
|
Copyright 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor <ian@cygnus.com>.
|
Written by Ian Lance Taylor <ian@cygnus.com>.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
@ -4927,7 +4927,9 @@ ieee_start_compilation_unit (p, filename)
|
|||||||
{
|
{
|
||||||
struct ieee_handle *info = (struct ieee_handle *) p;
|
struct ieee_handle *info = (struct ieee_handle *) p;
|
||||||
const char *modname;
|
const char *modname;
|
||||||
|
#ifdef HAVE_DOS_BASED_FILE_SYSTEM
|
||||||
const char *backslash;
|
const char *backslash;
|
||||||
|
#endif
|
||||||
char *c, *s;
|
char *c, *s;
|
||||||
unsigned int nindx;
|
unsigned int nindx;
|
||||||
|
|
||||||
@ -4939,10 +4941,12 @@ ieee_start_compilation_unit (p, filename)
|
|||||||
|
|
||||||
info->filename = filename;
|
info->filename = filename;
|
||||||
modname = strrchr (filename, '/');
|
modname = strrchr (filename, '/');
|
||||||
|
#ifdef HAVE_DOS_BASED_FILE_SYSTEM
|
||||||
/* We could have a mixed forward/back slash case. */
|
/* We could have a mixed forward/back slash case. */
|
||||||
backslash = strrchr (filename, '\\');
|
backslash = strrchr (filename, '\\');
|
||||||
if (modname == NULL || (backslash != NULL && backslash > modname))
|
if (modname == NULL || (backslash != NULL && backslash > modname))
|
||||||
modname = backslash;
|
modname = backslash;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (modname != NULL)
|
if (modname != NULL)
|
||||||
++modname;
|
++modname;
|
||||||
|
Loading…
Reference in New Issue
Block a user