* nm.c (print_symbol): Check returned filename from
authorAlan Modra <amodra@gmail.com>
Wed, 1 May 2002 06:43:32 +0000 (06:43 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 1 May 2002 06:43:32 +0000 (06:43 +0000)
bfd_find_nearest_line is non-NULL.

binutils/ChangeLog
binutils/nm.c

index de5f9f272ba12154a9ea46152578c7823c143f86..d303d49f32cedf53d85c5c987229dccdbd5384f0 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * nm.c (print_symbol): Check returned filename from
+       bfd_find_nearest_line is non-NULL.
+
 2002-04-25  Elena Zannoni <ezannoni@redhat.com>
     
         * readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
index 68eae77f55dfc76cff24451945e9e00855185c05..eb8a55f4eb460d2a883f00b0bfa0714e98cb5b1b 100644 (file)
@@ -1291,7 +1291,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);
This page took 0.035195 seconds and 4 git commands to generate.