From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87874 invoked by alias); 16 May 2018 16:17:17 -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 87862 invoked by uid 89); 16 May 2018 16:17:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=him, HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 May 2018 16:17:15 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DE0F8401EF0C; Wed, 16 May 2018 16:17:13 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 99DBC2166BAD; Wed, 16 May 2018 16:17:12 +0000 (UTC) Subject: Re: [RFC] (windows) GDB/MI crash when using "-list-thread-groups --available" To: Simon Marchi References: <1525978704-70543-1-git-send-email-brobecker@adacore.com> <81952681aacf4123fd897dfa330efd6b@polymtl.ca> Cc: Joel Brobecker , gdb-patches@sourceware.org From: Pedro Alves Message-ID: <2f51e8e5-5ca5-f194-c43e-dc4d647cb072@redhat.com> Date: Wed, 16 May 2018 16:44:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <81952681aacf4123fd897dfa330efd6b@polymtl.ca> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2018-05/txt/msg00354.txt.bz2 On 05/16/2018 04:46 PM, Simon Marchi wrote: > On 2018-05-11 12:45, Pedro Alves wrote: >> After the inferior is started, the Windows target is pushed in the target >> stack, so there will be a target beneath, either the exec target, or the >> dummy target directly.  Either of those returns TARGET_XFER_E_IO for >> this target object. >> >> The issue here is that before the inferior is started, the >> Windows target is not pushed on the target stack. >> See target_get_osdata. > > Ah ok, so the target is used without being pushed?  I didn't know it was possible. Yeah. A few methods can be called like that. target_ops::create_inferior for instance, is called before the target is pushed, and the implementation of that method is responsible for pushing itself on the stack on success. > >>> which provides the list of available processes on Windows? >> >> I don't think the feature works at all on Windows.  It's probably >> returning an empty list of processes. > > But Joel reported that the test case fails due to the expect buffer being full, so the list must not be empty...  we'll need clarifications from him :) The reported failure was on GNU/Linux, not Windows. :-) Thanks, Pedro Alves