public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Disable copying for breakpoint
@ 2022-05-06 18:11 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-05-06 18:11 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3101e4a1c5a9f14dd6860e439bbefdce00adc9f6

commit 3101e4a1c5a9f14dd6860e439bbefdce00adc9f6
Author: Tom Tromey <tom@tromey.com>
Date:   Sun May 1 00:28:35 2022 -0600

    Disable copying for breakpoint
    
    It seems to me that breakpoint should use DISABLE_COPY_AND_ASSIGN.
    This patch does this.

Diff:
---
 gdb/breakpoint.h | 3 +++
 1 file changed, 3 insertions(+)

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<bp_location>;
 
 struct breakpoint
 {
+  breakpoint () = default;
+  DISABLE_COPY_AND_ASSIGN (breakpoint);
+
   virtual ~breakpoint () = default;
 
   /* Allocate a location for this breakpoint.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-06 18:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 18:11 [binutils-gdb] Disable copying for breakpoint Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).