public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: use ALL_OBJFILE_PSYMTABS in one more place
@ 2011-02-28 19:38 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2011-02-28 19:38 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-28 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28 19:38 FYI: use ALL_OBJFILE_PSYMTABS in one more place Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).