]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
authorTom Tromey <tromey@redhat.com>
Fri, 16 Dec 2011 21:17:57 +0000 (21:17 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 16 Dec 2011 21:17:57 +0000 (21:17 +0000)
gdb/ChangeLog
gdb/cli/cli-cmds.c

index 9b1e64979e97da946400f8efacd63e742fcb4163..55229c58ad43ff810c90d9261d07ea4d3e256622 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-16  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
+
 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
 
        * python/python.c: Define python_excp_enums.
index 8832e0c5b247b34bdbd790e0767d412eedbb1119..af064438ce4327a89349b11b3102524ca70f6c0c 100644 (file)
@@ -1516,7 +1516,7 @@ filter_sals (struct symtabs_and_lines *sals)
   for (i = 0; i < sals->nelts; ++i)
     {
       if (sals->sals[i].pspace == current_program_space
-         || sals->sals[i].symtab == NULL)
+         && sals->sals[i].symtab != NULL)
        {
          sals->sals[out] = sals->sals[i];
          ++out;