aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-02-28 18:16:59 +0000
committerTom Tromey <tromey@redhat.com>2011-02-28 18:16:59 +0000
commit477d0d57b01456232d6fe790758cf17aa2409c28 (patch)
tree75b76ec14c7f787e11928fec55f87d559488f4a8
parent20937029912db1c246399ecf93fecae4117eeadf (diff)
downloadgdb-477d0d57b01456232d6fe790758cf17aa2409c28.zip
gdb-477d0d57b01456232d6fe790758cf17aa2409c28.tar.gz
gdb-477d0d57b01456232d6fe790758cf17aa2409c28.tar.bz2
* psymtab.c (expand_partial_symbol_tables): Use
ALL_OBJFILE_PSYMTABS.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/psymtab.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e0be521..00cff84 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-28 Tom Tromey <tromey@redhat.com>
+
+ * psymtab.c (expand_partial_symbol_tables): Use
+ ALL_OBJFILE_PSYMTABS.
+
2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
* objc-lang.c (selectors_info): Error on too long REGEXP.
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index a555665..6a0c563 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -933,9 +933,7 @@ expand_partial_symbol_tables (struct objfile *objfile)
{
struct partial_symtab *psymtab;
- for (psymtab = objfile->psymtabs;
- psymtab != NULL;
- psymtab = psymtab->next)
+ ALL_OBJFILE_PSYMTABS (objfile, psymtab)
{
psymtab_to_symtab (psymtab);
}