patch for bfd/syms.c

Mark E. snowball3@bigfoot.com
Wed Jun 28 21:06:00 GMT 2000


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
      {




More information about the Binutils mailing list