X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fdwarf2-frame.c;h=178ac44ecbe65aea684937b816fb6b2d2bca0f16;hb=3a3508220eecf27e1952a73cd3ea6d6314ce8e1d;hp=2201c636590da55d9871241c430995be700212f2;hpb=f6efe3f842e72e23ec6d8a57d683ce90d2e89785;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 2201c63659..178ac44ecb 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -1,6 +1,6 @@ /* Frame unwinder for frames with DWARF Call Frame Information. - Copyright (C) 2003-2018 Free Software Foundation, Inc. + Copyright (C) 2003-2019 Free Software Foundation, Inc. Contributed by Mark Kettenis. @@ -40,7 +40,7 @@ #include "dwarf2loc.h" #include "dwarf2-frame-tailcall.h" #if GDB_SELF_TEST -#include "selftest.h" +#include "common/selftest.h" #include "selftest-arch.h" #endif @@ -1702,9 +1702,7 @@ bsearch_fde_cmp (const void *key, const void *element) static struct dwarf2_fde * dwarf2_frame_find_fde (CORE_ADDR *pc, CORE_ADDR *out_offset) { - struct objfile *objfile; - - ALL_OBJFILES (objfile) + for (objfile *objfile : current_program_space->objfiles ()) { struct dwarf2_fde_table *fde_table; struct dwarf2_fde **p_fde;