aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-05 10:35:38 -0600
committerTom Tromey <tom@tromey.com>2018-07-10 19:41:05 -0600
commit1123588c0bf1d777a3eb9c01f2370473a14a1ca5 (patch)
tree266f4763ee755195c03255b6bcbb505cee59a7b0 /gdb/breakpoint.h
parent71feec82131fd692711dc773b1f9ae9365b51432 (diff)
downloadgdb-1123588c0bf1d777a3eb9c01f2370473a14a1ca5.zip
gdb-1123588c0bf1d777a3eb9c01f2370473a14a1ca5.tar.gz
gdb-1123588c0bf1d777a3eb9c01f2370473a14a1ca5.tar.bz2
Use std::vector for moribund_locations
This changes moribund_locations to use a std::vector rather than VEC. I also noticed that moribund_locations is only used in breakpoint.c, so now it is static as well. It might be possible to make this code a bit simpler by using a ref_ptr in moribund_locations; however, I have not done this. Tested by the buildbot. gdb/ChangeLog 2018-07-10 Tom Tromey <tom@tromey.com> * breakpoint.c (moribund_locations): Now static and a std::vector. (breakpoint_init_inferior, moribund_breakpoint_here_p) (build_bpstat_chain, update_global_location_list) (breakpoint_retire_moribund): Update. * breakpoint.h (bp_location_p): Remove typedef. Don't declare VEC.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 7da9452..63cb537 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -667,9 +667,6 @@ enum watchpoint_triggered
watch_triggered_yes
};
-typedef struct bp_location *bp_location_p;
-DEF_VEC_P(bp_location_p);
-
/* Some targets (e.g., embedded PowerPC) need two debug registers to set
a watchpoint over a memory region. If this flag is true, GDB will use
only one register per watchpoint, thus assuming that all acesses that