[PR gdb/27026] CTRL-C is ignored when debug info is downloaded
authorAaron Merey <amerey@redhat.com>
Mon, 29 Nov 2021 19:58:38 +0000 (14:58 -0500)
committerAaron Merey <amerey@redhat.com>
Mon, 29 Nov 2021 19:58:38 +0000 (14:58 -0500)
commitb9db26b4c44245c0b0148ef9e711677d4e664f9f
treef44b27bc7358f0131dffd9d29bf25024c6ed2f6e
parent584294c4066d0101161e4e04744a46cce7a7863e
[PR gdb/27026] CTRL-C is ignored when debug info is downloaded

During debuginfod downloads, ctrl-c should result in the download
being cancelled and skipped.  However in some cases, ctrl-c fails to
get delivered to gdb during downloading.  This can result in downloads
being unskippable.

Fix this by ensuring that target_terminal::ours is in effect for the
duration of each download.

Co-authored-by: Tom de Vries <tdevries@suse.de>
https://sourceware.org/bugzilla/show_bug.cgi?id=27026#c3
gdb/debuginfod-support.c