projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d1ae55
)
Remove unnecessary line from catch_exec_command_1
author
Tom Tromey
<tom@tromey.com>
Sat, 30 Apr 2022 18:51:17 +0000
(12:51 -0600)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/gdb/break-catch-exec.c
b/gdb/break-catch-exec.c
index 00a0263ac0d1b535f8b4661c20c94499a47549af..fbdc1c20e50ffba9cca24195574403e03a8f7335 100644
(file)
--- 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);
}