From: Tom Tromey Date: Sun, 1 May 2022 06:28:35 +0000 (-0600) Subject: Disable copying for breakpoint X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3101e4a1c5a9f14dd6860e439bbefdce00adc9f6;p=binutils-gdb.git Disable copying for breakpoint It seems to me that breakpoint should use DISABLE_COPY_AND_ASSIGN. This patch does this. --- diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 5db165dbf49..6923478f60a 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. */