This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
patch for bfd/syms.c
- To: binutils at sourceware dot cygnus dot com
- Subject: patch for bfd/syms.c
- From: "Mark E." <snowball3 at bigfoot dot com>
- Date: Thu, 29 Jun 2000 00:06:16 -0400
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
{