aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-05-01 00:28:35 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:35 -0600
commit3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 (patch)
tree641be77a52ac2f32bae5de1cde37501fc0506d4a /gdb
parent1ae43feabb90a534d2a58638fd18aded7d3758dd (diff)
downloadbinutils-3101e4a1c5a9f14dd6860e439bbefdce00adc9f6.zip
binutils-3101e4a1c5a9f14dd6860e439bbefdce00adc9f6.tar.gz
binutils-3101e4a1c5a9f14dd6860e439bbefdce00adc9f6.tar.bz2
Disable copying for breakpoint
It seems to me that breakpoint should use DISABLE_COPY_AND_ASSIGN. This patch does this.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/breakpoint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 5db165d..6923478 100644
--- 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. */