diff options
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index d500f69..d8e910b 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -2799,14 +2799,15 @@ i386_thiscall_push_dummy_call (struct gdbarch *gdbarch, struct value *function, if (objf != nullptr) { /* Get corresponding .got.plt or .got section. */ - asect = bfd_get_section_by_name (objf->obfd, ".got.plt"); + asect = bfd_get_section_by_name (objf->obfd.get (), ".got.plt"); if (asect == nullptr) - asect = bfd_get_section_by_name (objf->obfd, ".got"); + asect = bfd_get_section_by_name (objf->obfd.get (), ".got"); } if (asect != nullptr) /* Translate asection to obj_section. */ - osect = maint_obj_section_from_bfd_section (objf->obfd, asect, objf); + osect = maint_obj_section_from_bfd_section (objf->obfd.get (), + asect, objf); if (osect != nullptr) { |