projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77cce10
)
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
author
Tom Tromey
<tromey@redhat.com>
Fri, 16 Dec 2011 21:17:42 +0000
(21:17 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Fri, 16 Dec 2011 21:17:42 +0000
(21:17 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/cli/cli-cmds.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 2898cde2d5216c5a3a436587c5058dc585276e72..ff9143bde11f037d963595b5863bd5662f845eca 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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.
diff --git
a/gdb/cli/cli-cmds.c
b/gdb/cli/cli-cmds.c
index 8832e0c5b247b34bdbd790e0767d412eedbb1119..af064438ce4327a89349b11b3102524ca70f6c0c 100644
(file)
--- 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;