]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb] Eliminate catch(...) in pipe_command
authorTom de Vries <tdevries@suse.de>
Tue, 24 Sep 2024 11:57:55 +0000 (13:57 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 24 Sep 2024 11:57:55 +0000 (13:57 +0200)
commit58706ec737824257593cd5d1c1a4205302054209
tree9bd3b41a47e8000993aaa124049d0cf84bb3ff2c
parentf3f21aa9f90ccbcf73779b167aaee0fb6bbd3f4d
[gdb] Eliminate catch(...) in pipe_command

Remove duplicate code in pipe_command using SCOPE_EXIT.

Tested on aarch64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/cli/cli-cmds.c