projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae43fe
)
Disable copying for breakpoint
author
Tom Tromey
<tom@tromey.com>
Sun, 1 May 2022 06:28:35 +0000
(
00:28
-0600)
committer
Tom Tromey
<tom@tromey.com>
Fri, 6 May 2022 18:03:35 +0000
(12:03 -0600)
It seems to me that breakpoint should use DISABLE_COPY_AND_ASSIGN.
This patch does this.
gdb/breakpoint.h
patch
|
blob
|
history
diff --git
a/gdb/breakpoint.h
b/gdb/breakpoint.h
index 5db165dbf49da62a9cc2ba7722f4d3c1e263a6a8..6923478f60a31e50847eea2491740eb2a3ef05b0 100644
(file)
--- a/
gdb/breakpoint.h
+++ b/
gdb/breakpoint.h
@@
-620,6
+620,9
@@
using bp_location_range = next_range<bp_location>;
struct breakpoint
{
+ breakpoint () = default;
+ DISABLE_COPY_AND_ASSIGN (breakpoint);
+
virtual ~breakpoint () = default;
/* Allocate a location for this breakpoint. */