Disable copying for breakpoint
authorTom Tromey <tom@tromey.com>
Sun, 1 May 2022 06:28:35 +0000 (00:28 -0600)
committerTom 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

index 5db165dbf49da62a9cc2ba7722f4d3c1e263a6a8..6923478f60a31e50847eea2491740eb2a3ef05b0 100644 (file)
@@ -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.  */