diff options
author | Tom Tromey <tromey@redhat.com> | 2011-12-16 21:17:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-12-16 21:17:42 +0000 |
commit | ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b (patch) | |
tree | 8835b43d514448e209059e7f3349c700f8221967 /gdb/cli/cli-cmds.c | |
parent | 77cce10fc22521660c7b1e42061693b69a62c449 (diff) | |
download | gdb-ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b.zip gdb-ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b.tar.gz gdb-ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b.tar.bz2 |
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |