From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by sourceware.org (Postfix) with ESMTP id C893B383E80B for ; Fri, 15 May 2020 12:03:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C893B383E80B Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-277-pL0SygHKNxu_AS7YvLuWmA-1; Fri, 15 May 2020 08:03:00 -0400 X-MC-Unique: pL0SygHKNxu_AS7YvLuWmA-1 Received: by mail-wm1-f70.google.com with SMTP id b140so898937wme.8 for ; Fri, 15 May 2020 05:03:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6rulBWxJIWkv+95AqT+ccGT08Wmg04Iv5BcwbjlqCik=; b=mahAl1TGjilQKQAma4KXJm7CcgHsXbSA/a7GMUM1FHf7VgBsYVlYgjuUfqYE/To8aX HHa2EoSRZuyGGOT2oO/TUABDFobCdPi1RsSzfT489qLx5MmLZoVfrIeXjG9OKCYJX4rF Jm3SNUBiLRj3Fqql2TinW9LNmWvchPUJ+v5OX4YfHRvozjAEItxebMYsAayof9cMRwSJ ru5vXJYNdc3ZUBCk4V7N5wl9jkU77xgBWed89mqn4694UVpN5CgJN+qOaymW9tPOWYFs FN7ToN5uG2cYYHp8vL3eWoPV+F5yRZAWja9N6vrgj26m84rbsGsQXTLakN1udNiauMdJ WNiw== X-Gm-Message-State: AOAM532w/84eF+IMTqkZHXg/MCERREjIPB9y1+uaALy18qz8+nO0KCat Wi5+dpi4hBpOhR+4AaUOAo31Siozb+QUGTAEiBRr9uVl839NMeTyXKZGq9FeGCrTMhIYVZlLvoG mCFT2GMHisL46vrpAloZUEQ== X-Received: by 2002:adf:f34f:: with SMTP id e15mr3878862wrp.408.1589544178898; Fri, 15 May 2020 05:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9hG8arltxGfbltmCETcbWNW5pscWfMS+G9aY4UNlvNBJtTMLiagOU0qjPss6xLIfOE/qaNQ== X-Received: by 2002:adf:f34f:: with SMTP id e15mr3878834wrp.408.1589544178683; Fri, 15 May 2020 05:02:58 -0700 (PDT) Received: from ?IPv6:2001:8a0:f909:7b00:56ee:75ff:fe8d:232b? ([2001:8a0:f909:7b00:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id g187sm3222444wmf.30.2020.05.15.05.02.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 May 2020 05:02:57 -0700 (PDT) Subject: Re: [PATCH v8 6/6] gdb/infrun: handle already-exited threads when attempting to stop To: Tom de Vries , "Aktemur, Tankut Baris" , "gdb-patches@sourceware.org" References: <20200513205338.14233-1-palves@redhat.com> <20200513205338.14233-7-palves@redhat.com> <0d00b418-3c5f-4a8c-12dd-eeee8ad12b6b@suse.de> <4ade3da1-a8cd-ba29-80da-f5e742f7b52a@palves.net> From: Pedro Alves Message-ID: <7d7a056c-63cb-1865-b8ab-027840ac15bc@redhat.com> Date: Fri, 15 May 2020 13:02:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 12:03:17 -0000 On 5/15/20 12:53 PM, Tom de Vries wrote: > It occurred to me that we can find leaked global arrays using a > runtest.exp patch. I've filed a testsuite cleanup PR ( PR25996 - "wrap > global arrays in namespace", > https://sourceware.org/bugzilla/show_bug.cgi?id=25996 ). Wouldn't it work to do this in gdb_init / gdb_finish ? Pedro Alves