public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove unnecessary line from catch_exec_command_1
@ 2022-05-06 18:10 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-05-06 18:10 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fb9e63701335b7383622e3da5825dd4aa45b788e

commit fb9e63701335b7383622e3da5825dd4aa45b788e
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Apr 30 12:51:17 2022 -0600

    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:
---
 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<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);
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-06 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 18:10 [binutils-gdb] Remove unnecessary line from catch_exec_command_1 Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).