X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fmain.c;h=7d9492b8761b1902cae6322f23573c19b9041a16;hb=aed57c537116ae91f553ac835b3f96d1f87b3bb0;hp=9e5f285f0eec0d67906ee36f17b80ad11675376b;hpb=99d89cdea6c296bdd94ce532350d139d3900ff78;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/main.c b/gdb/main.c index 9e5f285f0e..7d9492b876 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -485,7 +485,6 @@ captured_main_1 (struct captured_main_args *context) int i; int save_auto_load; - struct objfile *objfile; int ret = 1; #ifdef HAVE_USEFUL_SBRK @@ -1124,7 +1123,7 @@ captured_main_1 (struct captured_main_args *context) We wait until now because it is common to add to the source search path in local_gdbinit. */ global_auto_load = save_auto_load; - ALL_OBJFILES (objfile) + for (objfile *objfile : all_objfiles (current_program_space)) load_auto_scripts_for_objfile (objfile); /* Process '-x' and '-ex' options. */