diff options
author | Tom Tromey <tromey@redhat.com> | 2011-12-16 21:17:41 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-12-16 21:17:41 +0000 |
commit | baf45d7b1a9b18276d816aa2e88ee488dd8a07c3 (patch) | |
tree | 0a200495839d474e823efc10841ac7e15210df49 /gdb/cli/cli-cmds.c | |
parent | 2e08c2fc1f784e0055cdea89b6b4fba40c3a2342 (diff) | |
download | gdb-baf45d7b1a9b18276d816aa2e88ee488dd8a07c3.tar.gz |
* 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 8832e0c5b24..af064438ce4 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; |