From: Tom Tromey Date: Fri, 16 Dec 2011 21:17:57 +0000 (+0000) Subject: * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab. X-Git-Tag: gdb_7_4-2012-01-24-release~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6996770cdcffe3f687ca543d9903d636bc4d21fa;p=thirdparty%2Fbinutils-gdb.git * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b1e64979e9..55229c58ad4 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 Phil Muldoon * python/python.c: Define python_excp_enums. 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;