From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] (windows) GDB/MI crash when using "-list-thread-groups --available"
Date: Wed, 16 May 2018 16:44:00 -0000 [thread overview]
Message-ID: <2f51e8e5-5ca5-f194-c43e-dc4d647cb072@redhat.com> (raw)
In-Reply-To: <81952681aacf4123fd897dfa330efd6b@polymtl.ca>
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
next prev parent reply other threads:[~2018-05-16 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-10 19:12 Joel Brobecker
2018-05-10 21:10 ` Simon Marchi
2018-05-11 17:14 ` Pedro Alves
2018-05-16 15:52 ` Simon Marchi
2018-05-16 16:44 ` Pedro Alves [this message]
2018-06-02 0:59 ` Joel Brobecker
2018-06-02 10:26 ` Pedro Alves
2018-06-04 20:11 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f51e8e5-5ca5-f194-c43e-dc4d647cb072@redhat.com \
--to=palves@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox