From fb9e63701335b7383622e3da5825dd4aa45b788e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 30 Apr 2022 12:51:17 -0600 Subject: [PATCH] Remove unnecessary line from catch_exec_command_1 catch_exec_command_1 clears the new catchpoint's "exec_pathname" field, but this is already done by virtue of calling "new". --- 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, std::unique_ptr c (new exec_catchpoint ()); init_catchpoint (c.get (), gdbarch, temp, cond_string); - c->exec_pathname.reset (); install_breakpoint (0, std::move (c), 1); } -- 2.30.2