This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch for bfd/syms.c


Salutations,

_bfd_stab_section_find_nearest_line needs fixing for DOS-style absolute paths like 
other places in binutils were. Here is a patch:

2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>

	* syms.c (_bfd_stab_section_find_neares_line): Use IS_ABSOLUTE_PATH.

Index: src/bfd/syms.c
===================================================================
RCS file: /cvs/src/src/bfd/syms.c,v
retrieving revision 1.5
diff -c -p -r1.5 syms.c
*** syms.c	2000/01/28 01:06:37	1.5
--- syms.c	2000/06/29 04:01:34
*************** _bfd_stab_section_find_nearest_line (abf
*** 1262,1268 ****
  
    *pfound = true;
  
!   if (file_name[0] == '/' || directory_name == NULL)
      *pfilename = file_name;
    else
      {
--- 1262,1268 ----
  
    *pfound = true;
  
!   if (IS_ABSOLUTE_PATH(file_name) || directory_name == NULL)
      *pfilename = file_name;
    else
      {



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]