From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113968 invoked by alias); 27 Jul 2015 15:26:08 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 113953 invoked by uid 89); 27 Jul 2015 15:26:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: mail-ob0-f172.google.com Received: from mail-ob0-f172.google.com (HELO mail-ob0-f172.google.com) (209.85.214.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 27 Jul 2015 15:26:04 +0000 Received: by obre1 with SMTP id e1so62146735obr.1 for ; Mon, 27 Jul 2015 08:26:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=g45/2h4nRkYvWny8WnIHyqD7jvea2Nks5DUPuZ/6sOo=; b=kUrLCJ7zh7CaoC84Wkd6kJgP3IJVka8hR8QewhAvlRsnJ+DdtbbhGYPc3Hw5xEUNGO GgWO2kRvSI4Y8ZUW9zfQgPqwNfHkcWqhPWDJOFI7JTOlyti8q/5wYAb9Nwm6sVkmlCs9 CSgyiREvVHpf04CGZMh+VSC4XrS0vFwTyiZdfQ0OlGJcxtf/yzJV1NXXNe57DbSetJyZ FVPn40P0iPqUU9ikj43q+dYRN/tWvdlQwgJDN5WvWIMdHfqg4UxJ103bTmOOoR8eqvXU 5dEZwF48Wm1YYyunJGvrV7zM8lk+MqO8CbFK0r6aVKdSDkW86UTNE1bREPnQL39cse+W 5wzw== X-Gm-Message-State: ALoCoQlnYo+hDDpeNVTzSkrX+q414DYmEE1J0E7dufOR4CIoLTXFS/13qEACneTOQ1a4pNqW6N1h X-Received: by 10.60.47.106 with SMTP id c10mr28085167oen.64.1438010762301; Mon, 27 Jul 2015 08:26:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.56.202 with HTTP; Mon, 27 Jul 2015 08:25:42 -0700 (PDT) In-Reply-To: <55B645E1.7060809@redhat.com> References: <1437762829-5214-1-git-send-email-patrick@parcs.ath.cx> <55B645E1.7060809@redhat.com> From: Patrick Palka Date: Mon, 27 Jul 2015 15:26:00 -0000 Message-ID: Subject: Re: [PATCH] Have SIGTERM promptly quit GDB even when the dummy target is active To: Pedro Alves Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-07/txt/msg00791.txt.bz2 On Mon, Jul 27, 2015 at 10:53 AM, Pedro Alves wrote: > 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 > } > } > > ? No reason. I'll change the test to use gdb_test_multiple and commit the patch.