projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove most uses of ALL_OBJFILES
[deliverable/binutils-gdb.git]
/
gdb
/
python
/
py-objfile.c
diff --git
a/gdb/python/py-objfile.c
b/gdb/python/py-objfile.c
index 5f61b734afe07131e1cc57497640ab9473a75724..d9cf548adb35264bade3d6b6053bb7b519f3a8d4 100644
(file)
--- a/
gdb/python/py-objfile.c
+++ b/
gdb/python/py-objfile.c
@@
-501,9
+501,7
@@
objfpy_build_id_matches (const struct bfd_build_id *build_id,
static struct objfile *
objfpy_lookup_objfile_by_name (const char *name)
{
static struct objfile *
objfpy_lookup_objfile_by_name (const char *name)
{
- struct objfile *objfile;
-
- ALL_OBJFILES (objfile)
+ for (objfile *objfile : all_objfiles (current_program_space))
{
const char *filename;
{
const char *filename;
@@
-529,9
+527,7
@@
objfpy_lookup_objfile_by_name (const char *name)
static struct objfile *
objfpy_lookup_objfile_by_build_id (const char *build_id)
{
static struct objfile *
objfpy_lookup_objfile_by_build_id (const char *build_id)
{
- struct objfile *objfile;
-
- ALL_OBJFILES (objfile)
+ for (objfile *objfile : all_objfiles (current_program_space))
{
const struct bfd_build_id *obfd_build_id;
{
const struct bfd_build_id *obfd_build_id;
This page took
0.025066 seconds
and
4
git commands to generate.