From 3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 1 May 2022 00:28:35 -0600 Subject: Disable copying for breakpoint It seems to me that breakpoint should use DISABLE_COPY_AND_ASSIGN. This patch does this. --- gdb/breakpoint.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb') 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; struct breakpoint { + breakpoint () = default; + DISABLE_COPY_AND_ASSIGN (breakpoint); + virtual ~breakpoint () = default; /* Allocate a location for this breakpoint. */ -- cgit v1.1