X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fprobe.h;h=454a9cde5abffcd5040ccb66b3f58a49631e077d;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=eac165ff079fbdb25af94097431c95ec3c792ec7;hpb=e2882c85786571175a0b0bfc3bcd2f14620b1ea3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/probe.h b/gdb/probe.h index eac165ff07..454a9cde5a 100644 --- a/gdb/probe.h +++ b/gdb/probe.h @@ -1,6 +1,6 @@ /* Generic SDT probe support for GDB. - Copyright (C) 2012-2018 Free Software Foundation, Inc. + Copyright (C) 2012-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -20,6 +20,8 @@ #if !defined (PROBE_H) #define PROBE_H 1 +#include "symtab.h" + struct event_location; struct linespec_result; @@ -62,7 +64,7 @@ public: virtual bool is_linespec (const char **linespecp) const = 0; /* Function that should fill PROBES with known probes from OBJFILE. */ - virtual void get_probes (std::vector *probes, + virtual void get_probes (std::vector> *probes, struct objfile *objfile) const = 0; /* Return a pointer to a name identifying the probe type. This is @@ -129,7 +131,7 @@ public: /* Return the number of arguments of the probe. This function can throw an exception. */ - virtual unsigned get_argument_count (struct frame_info *frame) = 0; + virtual unsigned get_argument_count (struct gdbarch *gdbarch) = 0; /* Return 1 if the probe interface can evaluate the arguments of probe, zero otherwise. See the comments on @@ -272,7 +274,7 @@ extern std::vector parse_probes extern struct bound_probe find_probe_by_pc (CORE_ADDR pc); /* Search OBJFILE for a probe with the given PROVIDER, NAME. Return a - VEC of all probes that were found. If no matching probe is found, + vector of all probes that were found. If no matching probe is found, return an empty vector. */ extern std::vector find_probes_in_objfile (struct objfile *objfile,