+2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
+
+ PR gdb/26876
+ * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
+ dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
+
2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
* arch/riscv.c: Include 'rv32e-xregs.c'.
{
bfd *abfd = objfile->obfd;
if (gdb_bfd_requires_relocations (abfd))
- return dwarf2_frame_bfd_data.get (abfd);
- return dwarf2_frame_objfile_data.get (objfile);
+ return dwarf2_frame_objfile_data.get (objfile);
+
+ return dwarf2_frame_bfd_data.get (abfd);
}
/* Store the comp_unit on OBJFILE, or the corresponding BFD, as
{
bfd *abfd = objfile->obfd;
if (gdb_bfd_requires_relocations (abfd))
- return dwarf2_frame_bfd_data.set (abfd, unit);
- return dwarf2_frame_objfile_data.set (objfile, unit);
+ return dwarf2_frame_objfile_data.set (objfile, unit);
+
+ return dwarf2_frame_bfd_data.set (abfd, unit);
}
/* Find the FDE for *PC. Return a pointer to the FDE, and store the