[PATCH 09/18] Remove unnecessary line from catch_exec_command_1
Tom Tromey
tom@tromey.com
Mon May 2 22:15:44 GMT 2022
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<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);
}
--
2.34.1
More information about the Gdb-patches
mailing list