public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Disable copying for breakpoint
Date: Fri,  6 May 2022 18:11:12 +0000 (GMT)	[thread overview]
Message-ID: <20220506181112.43CB23857034@sourceware.org> (raw)

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.  */


                 reply	other threads:[~2022-05-06 18:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220506181112.43CB23857034@sourceware.org \
    --to=tromey@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).