From: Tom Tromey Date: Fri, 16 Dec 2011 21:17:42 +0000 (+0000) Subject: * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ccbac09dc1df91c906b1ddd767a5c9aa177b1a4b;p=binutils-gdb.git * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2898cde2d52..ff9143bde11 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-12-16 Tom Tromey + + * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab. + 2011-12-16 Pedro Alves * inf-loop.c: Include top.h. 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;