Remove unnecessary line from catch_exec_command_1
authorTom Tromey <tom@tromey.com>
Sat, 30 Apr 2022 18:51:17 +0000 (12:51 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 6 May 2022 18:03:34 +0000 (12:03 -0600)
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

index 00a0263ac0d1b535f8b4661c20c94499a47549af..fbdc1c20e50ffba9cca24195574403e03a8f7335 100644 (file)
@@ -205,7 +205,6 @@ catch_exec_command_1 (const char *arg, int from_tty,
 
   std::unique_ptr<exec_catchpoint> c (new exec_catchpoint ());
   init_catchpoint (c.get (), gdbarch, temp, cond_string);
-  c->exec_pathname.reset ();
 
   install_breakpoint (0, std::move (c), 1);
 }