* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
This commit is contained in:
parent
77cce10fc2
commit
ccbac09dc1
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue