This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]