From: Tom Tromey Date: Sat, 30 Apr 2022 18:51:17 +0000 (-0600) Subject: Remove unnecessary line from catch_exec_command_1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb9e63701335b7383622e3da5825dd4aa45b788e;p=binutils-gdb.git 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". --- 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); }