/* Generic SDT probe support for GDB.
- Copyright (C) 2012-2017 Free Software Foundation, Inc.
+ Copyright (C) 2012-2020 Free Software Foundation, Inc.
This file is part of GDB.
#if !defined (PROBE_H)
#define PROBE_H 1
+#include "symtab.h"
+
struct event_location;
struct linespec_result;
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<probe *> *probes,
+ virtual void get_probes (std::vector<std::unique_ptr<probe>> *probes,
struct objfile *objfile) const = 0;
/* Return a pointer to a name identifying the probe type. This is
/* 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
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<probe *> find_probes_in_objfile (struct objfile *objfile,