From 67fc1b2b4d0f7fb257cb6955b5a67f5c3101e4a9 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 5 Jul 2002 20:35:38 +0000 Subject: [PATCH] We use the stock version of this file as in rev 1.4. --- contrib/binutils/binutils/nm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/binutils/binutils/nm.c b/contrib/binutils/binutils/nm.c index 67698c8e08ae..b8c06a7fc9fc 100644 --- a/contrib/binutils/binutils/nm.c +++ b/contrib/binutils/binutils/nm.c @@ -1293,7 +1293,8 @@ print_symbol (abfd, sym, archive_bfd) bfd_asymbol_name (*r->sym_ptr_ptr)) == 0 && bfd_find_nearest_line (abfd, secs[i], syms, r->address, &filename, - &functionname, &lineno)) + &functionname, &lineno) + && filename != NULL) { /* We only print the first one we find. */ printf ("\t%s:%u", filename, lineno);