From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 43CB23857034; Fri, 6 May 2022 18:11:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43CB23857034 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Disable copying for breakpoint X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 1ae43feabb90a534d2a58638fd18aded7d3758dd X-Git-Newrev: 3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 Message-Id: <20220506181112.43CB23857034@sourceware.org> Date: Fri, 6 May 2022 18:11:12 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2022 18:11:12 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3101e4a1c5a9= f14dd6860e439bbefdce00adc9f6 commit 3101e4a1c5a9f14dd6860e439bbefdce00adc9f6 Author: Tom Tromey Date: Sun May 1 00:28:35 2022 -0600 Disable copying for breakpoint =20 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 =3D next_range; =20 struct breakpoint { + breakpoint () =3D default; + DISABLE_COPY_AND_ASSIGN (breakpoint); + virtual ~breakpoint () =3D default; =20 /* Allocate a location for this breakpoint. */