From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id D3AF4395201B; Fri, 6 May 2022 18:10:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3AF4395201B 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] Remove unnecessary line from catch_exec_command_1 X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 4d1ae558932c17415bbe5b0dbec0a7539a19b6d5 X-Git-Newrev: fb9e63701335b7383622e3da5825dd4aa45b788e Message-Id: <20220506181041.D3AF4395201B@sourceware.org> Date: Fri, 6 May 2022 18:10:41 +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:10:41 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dfb9e63701335= b7383622e3da5825dd4aa45b788e commit fb9e63701335b7383622e3da5825dd4aa45b788e Author: Tom Tromey Date: Sat Apr 30 12:51:17 2022 -0600 Remove unnecessary line from catch_exec_command_1 =20 catch_exec_command_1 clears the new catchpoint's "exec_pathname" field, but this is already done by virtue of calling "new". Diff: --- gdb/break-catch-exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/break-catch-exec.c b/gdb/break-catch-exec.c index 00a0263ac0d..fbdc1c20e50 100644 --- a/gdb/break-catch-exec.c +++ b/gdb/break-catch-exec.c @@ -205,7 +205,6 @@ catch_exec_command_1 (const char *arg, int from_tty, =20 std::unique_ptr c (new exec_catchpoint ()); init_catchpoint (c.get (), gdbarch, temp, cond_string); - c->exec_pathname.reset (); =20 install_breakpoint (0, std::move (c), 1); }