From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28115 invoked by alias); 23 Aug 2017 13:56:35 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 28064 invoked by uid 89); 23 Aug 2017 13:56:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy= X-HELO: hqemgate14.nvidia.com Received: from hqemgate14.nvidia.com (HELO hqemgate14.nvidia.com) (216.228.121.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Aug 2017 13:56:32 +0000 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com id ; Wed, 23 Aug 2017 06:56:10 -0700 Received: from HQMAIL103.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 23 Aug 2017 06:56:12 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 23 Aug 2017 06:56:12 -0700 Received: from UKMAIL102.nvidia.com (10.26.138.15) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Wed, 23 Aug 2017 13:55:08 +0000 Received: from localhost.localdomain (10.21.45.12) by UKMAIL102.nvidia.com (10.26.138.15) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Wed, 23 Aug 2017 13:55:05 +0000 Subject: Re: Host GDB disconnect while waiting for tracee status change To: Pedro Alves , Yao Qi CC: , Ryan Bissell , "Mikhail Filimonov" References: <5febbe3e-926f-78bb-db88-901b44e2e258@nvidia.com> <867exusnn8.fsf@gmail.com> <98251d5d-646b-296c-acf6-43ec4accd4e0@nvidia.com> From: Dmitry Antipov Message-ID: Date: Wed, 23 Aug 2017 13:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To UKMAIL102.nvidia.com (10.26.138.15) X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00063.txt.bz2 On 08/23/2017 04:10 PM, Pedro Alves wrote: > Right, because in non-stop mode, linux-low.c doesn't > usually block inside mywait....sigsuspend. See server.c:resume. > In non-stop mode, gdbserver waits for both socket events and > target events at the same time in the event loop. The > non-stop variant of the RSP is asynchronous. Thanks. So, is it mandatory to use non-stop mode if I want to be able to restart gdb without loosing the debugging session controlled by gdbserver? Dmitry