X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fstap-probe.c;h=73596446cce51d94e789b1ff3584b8fec807b5a1;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=1a5ba5a1b3e090575ff1d45ea94dbe19e9728b2e;hpb=b3b3bada0d514f8e57a04fd333f05d1da94e2304;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 1a5ba5a1b3..73596446cc 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -1517,7 +1517,7 @@ handle_stap_probe (struct objfile *objfile, struct sdt_note *el, { bfd *abfd = objfile->obfd; int size = bfd_get_arch_size (abfd) / 8; - struct gdbarch *gdbarch = get_objfile_arch (objfile); + struct gdbarch *gdbarch = objfile->arch (); struct type *ptr_type = builtin_type (gdbarch)->builtin_data_ptr; /* Provider and the name of the probe. */ @@ -1606,7 +1606,7 @@ get_stap_base_address (bfd *obfd, bfd_vma *base) { complaint (_("could not obtain base address for " "SystemTap section on objfile `%s'."), - obfd->filename); + bfd_get_filename (obfd)); return 0; }