From 818c39a387392564763ae26fd9ef1837b448fb48 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 1 May 2002 07:36:39 +0000 Subject: [PATCH] * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL file_name. --- bfd/ChangeLog | 5 +++++ bfd/syms.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0e493dfe0a9..d2fcd67398a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-05-01 Alan Modra + + * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL + file_name. + 2002-05-01 Alan Modra * elf64-ppc.c (CROR_151515, CROR_313131): Define. diff --git a/bfd/syms.c b/bfd/syms.c index 4309c0d94f8..01f7eee2cce 100644 --- a/bfd/syms.c +++ b/bfd/syms.c @@ -1297,7 +1297,8 @@ _bfd_stab_section_find_nearest_line (abfd, symbols, section, offset, pfound, *pfound = true; - if (IS_ABSOLUTE_PATH(file_name) || directory_name == NULL) + if (file_name == NULL || IS_ABSOLUTE_PATH (file_name) + || directory_name == NULL) *pfilename = file_name; else { -- 2.30.2