This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Have SIGTERM promptly quit GDB even when the dummy target is active
- From: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gdb-patches at sourceware dot org
- Date: Mon, 27 Jul 2015 15:53:21 +0100
- Subject: Re: [PATCH] Have SIGTERM promptly quit GDB even when the dummy target is active
- Authentication-results: sourceware.org; auth=none
- References: <1437762829-5214-1-git-send-email-patrick at parcs dot ath dot cx>
On 07/24/2015 07:33 PM, Patrick Palka wrote:
> gdb/ChangeLog:
>
> * event-top.c (handle_sigterm): Don't inspect
> target_can_async_p. Always set the quit flag and always mark
> the async signal handler.
OK.
> +gdb_start
> +
> +set gdb_pid [exp_pid -i [board_info host fileid]]
> +remote_exec host "kill -TERM $gdb_pid"
> +
> +set test "expect eof"
> +
> +gdb_expect 5 {
Any reason not to use gdb_test_multiple, like:
gdb_test_multiple "" $test {
-timeout 5
eof {
pass $test
}
}
?
> + eof {
> + pass $test
> + }
> + timeout {
> + fail $test
> + }
> +}
>
Thanks,
Pedro Alves