From 4f072d17b2574e271ae381f42bc404c1a99d0ab6 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 31 Oct 2014 21:46:08 -0700 Subject: [PATCH] objfiles.h: Remove some unused macros. gdb/ChangeLog: * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused. (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto. --- gdb/ChangeLog | 5 +++++ gdb/objfiles.h | 13 ------------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e7b8dc..a629660 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-10-31 Doug Evans + * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused. + (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto. + +2014-10-31 Doug Evans + * valops.c (value_cast_pointers): Fix whitespace. (typecmp, search_struct_method, value_struct_elt, find_oload_champ): Ditto. diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 57a94e1..46e7ea5 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -578,11 +578,6 @@ extern void default_iterate_over_objfiles_in_search_order #define ALL_PSPACE_OBJFILES(ss, obj) \ for ((obj) = ss->objfiles; (obj) != NULL; (obj) = (obj)->next) -#define ALL_PSPACE_OBJFILES_SAFE(ss, obj, nxt) \ - for ((obj) = ss->objfiles; \ - (obj) != NULL? ((nxt)=(obj)->next,1) :0; \ - (obj) = (nxt)) - #define ALL_OBJFILES(obj) \ for ((obj) = current_program_space->objfiles; \ (obj) != NULL; \ @@ -618,10 +613,6 @@ extern void default_iterate_over_objfiles_in_search_order ALL_OBJFILES (objfile) \ ALL_OBJFILE_SYMTABS (objfile, s) -#define ALL_PSPACE_SYMTABS(ss, objfile, s) \ - ALL_PSPACE_OBJFILES (ss, objfile) \ - ALL_OBJFILE_SYMTABS (objfile, s) - /* Traverse all symtabs in all objfiles in the current program space, skipping included files (which share a blockvector with their primary symtab). */ @@ -630,10 +621,6 @@ extern void default_iterate_over_objfiles_in_search_order ALL_OBJFILES (objfile) \ ALL_OBJFILE_PRIMARY_SYMTABS (objfile, s) -#define ALL_PSPACE_PRIMARY_SYMTABS(pspace, objfile, s) \ - ALL_PSPACE_OBJFILES (ss, objfile) \ - ALL_OBJFILE_PRIMARY_SYMTABS (objfile, s) - /* Traverse all minimal symbols in all objfiles in the current symbol space. */ -- 2.7.4