This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: use ALL_OBJFILE_PSYMTABS in one more place
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 28 Feb 2011 11:14:33 -0700
- Subject: FYI: use ALL_OBJFILE_PSYMTABS in one more place
I'm checking this in.
I noticed that one place in psymtab.c was not using
ALL_OBJFILE_PSYMTABS, but should be. I needed this for a patch I am
working on, so I am putting it in now.
There is one other place in psymtab.c that iterates over psymtabs but
does not use this macro. I left that place alone, since it fits into my
patch more nicely.
Tom
2011-02-28 Tom Tromey <tromey@redhat.com>
* psymtab.c (expand_partial_symbol_tables): Use
ALL_OBJFILE_PSYMTABS.
Index: psymtab.c
===================================================================
RCS file: /cvs/src/src/gdb/psymtab.c,v
retrieving revision 1.22
diff -u -r1.22 psymtab.c
--- psymtab.c 10 Jan 2011 20:38:50 -0000 1.22
+++ psymtab.c 28 Feb 2011 17:59:18 -0000
@@ -933,9 +933,7 @@
{
struct partial_symtab *psymtab;
- for (psymtab = objfile->psymtabs;
- psymtab != NULL;
- psymtab = psymtab->next)
+ ALL_OBJFILE_PSYMTABS (objfile, psymtab)
{
psymtab_to_symtab (psymtab);
}