X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gdb%2Fdtrace-probe.c;h=9805b8a8e781ba130a7366637009290ffd6857ac;hb=213516ef315dc1785e4990ef0fc011abedb38cc0;hp=6f01edf3924c987d9f6eb17ea875605492f59598;hpb=492325c4b78933e41608c53963d29b1f16affd47;p=thirdparty%2Fbinutils-gdb.git diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c index 6f01edf3924..9805b8a8e78 100644 --- a/gdb/dtrace-probe.c +++ b/gdb/dtrace-probe.c @@ -1,6 +1,6 @@ /* DTrace probe support for GDB. - Copyright (C) 2014-2022 Free Software Foundation, Inc. + Copyright (C) 2014-2023 Free Software Foundation, Inc. Contributed by Oracle, Inc. @@ -129,7 +129,7 @@ public: /* See probe.h. */ struct value *evaluate_argument (unsigned n, - struct frame_info *frame) override; + frame_info_ptr frame) override; /* See probe.h. */ void compile_to_ax (struct agent_expr *aexpr, @@ -655,8 +655,7 @@ dtrace_probe::get_arg_by_number (unsigned n, struct gdbarch *gdbarch) this->build_arg_exprs (gdbarch); if (n > m_args.size ()) - internal_error (__FILE__, __LINE__, - _("Probe '%s' has %d arguments, but GDB is requesting\n" + internal_error (_("Probe '%s' has %d arguments, but GDB is requesting\n" "argument %u. This should not happen. Please\n" "report this bug."), this->get_name ().c_str (), @@ -709,7 +708,7 @@ dtrace_probe::can_evaluate_arguments () const struct value * dtrace_probe::evaluate_argument (unsigned n, - struct frame_info *frame) + frame_info_ptr frame) { struct gdbarch *gdbarch = this->get_gdbarch (); struct dtrace_probe_arg *arg; @@ -830,7 +829,7 @@ dtrace_static_probe_ops::get_probes (std::vector> *probesp, struct objfile *objfile) const { - bfd *abfd = objfile->obfd; + bfd *abfd = objfile->obfd.get (); asection *sect = NULL; /* Do nothing in case this is a .debug file, instead of the objfile