aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-12-16 21:17:42 +0000
committerTom Tromey <tromey@redhat.com>2011-12-16 21:17:42 +0000
commitccbac09dc1df91c906b1ddd767a5c9aa177b1a4b (patch)
tree8835b43d514448e209059e7f3349c700f8221967
parent77cce10fc22521660c7b1e42061693b69a62c449 (diff)
downloadgdb-ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b.zip
gdb-ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b.tar.gz
gdb-ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b.tar.bz2
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/cli/cli-cmds.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2898cde..ff9143b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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 Pedro Alves <pedro@codesourcery.com>
* inf-loop.c: Include top.h.
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 8832e0c..af06443 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -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;