aboutsummaryrefslogtreecommitdiff
path: root/gdb/probe.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-10-27 22:05:42 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-10-27 22:12:01 -0400
commit45461e0dcaf4193b5b4478031f515ffb7911ad85 (patch)
tree204c89fd51a7bf85e51010fabbe9ea9ff92d4dc3 /gdb/probe.h
parent43dce4394513d15ba8122c3bf442ec1028d93feb (diff)
downloadgdb-45461e0dcaf4193b5b4478031f515ffb7911ad85.zip
gdb-45461e0dcaf4193b5b4478031f515ffb7911ad85.tar.gz
gdb-45461e0dcaf4193b5b4478031f515ffb7911ad85.tar.bz2
Get rid of VEC(probe_p)
Replace the remaining usages of VEC(probe_p) with std::vector. Regtested on the buildbot. gdb/ChangeLog: * probe.h: Don't include gdb_vecs.h. (DEF_VEC_P (probe_p)): Remove. (find_probes_in_objfile): Return an std::vector. * probe.c (find_probes_in_objfile): Likewise. * breakpoint.c (breakpoint_objfile_data) <longjmp_probes>: Change type to std::vector. <exception_probes>: Likewise. (free_breakpoint_probes): Don't manually free vectors. (create_longjmp_master_breakpoint): Adjust. (create_exception_master_breakpoint): Adjust. * solib-svr4.c (svr4_create_probe_breakpoints): Change parameter type, adjust. (svr4_create_solib_event_breakpoints): Adjust.
Diffstat (limited to 'gdb/probe.h')
-rw-r--r--gdb/probe.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/gdb/probe.h b/gdb/probe.h
index 1b39166..822e5c8 100644
--- a/gdb/probe.h
+++ b/gdb/probe.h
@@ -21,14 +21,6 @@
#define PROBE_H 1
struct event_location;
-
-#include "gdb_vecs.h"
-
-/* Definition of a vector of probes. */
-
-typedef struct probe *probe_p;
-DEF_VEC_P (probe_p);
-
struct linespec_result;
/* Structure useful for passing the header names in the method
@@ -255,11 +247,11 @@ 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,
- return NULL. The caller must free the VEC. */
+ return an empty vector. */
-extern VEC (probe_p) *find_probes_in_objfile (struct objfile *objfile,
- const char *provider,
- const char *name);
+extern std::vector<probe *> find_probes_in_objfile (struct objfile *objfile,
+ const char *provider,
+ const char *name);
/* Generate a `info probes' command output for probe_ops represented by
POPS. If POPS is NULL it considers any probes types. It is a helper