This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Cannot execute this command without a live selected thread.
- From: Pedro Alves <palves at redhat dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 24 Oct 2014 18:23:24 +0100
- Subject: Re: Cannot execute this command without a live selected thread.
- Authentication-results: sourceware.org; auth=none
- References: <544A7648 dot 6060102 at codesourcery dot com> <544A7930 dot 4040909 at redhat dot com> <544A8741 dot 9090705 at codesourcery dot com>
On 10/24/2014 06:07 PM, Sandra Loosemore wrote:
> Sending packet: $?#3f...Packet received: S00
> Sending packet: $qfThreadInfo#bb...Packet received: l
Huh, I think this is the problem.
So this target supports qfThreadInfo, but then it's returning
an empty thread list... remote_update_thread_list will delete
threads from GDB's list that are not found in the thread list that
the target reported. Why is the target reporting that empty list?
See ab970af19746364a4f236bebc238ebb036adc898.
We may be able add a workaround for this. :-/ Just in case,
can you confirm that the current thread's ptid (inferior_ptid)
is magic_null_ptid?
> Sending packet: $Hc-1#09...Packet received:
> Sending packet: $qC#b4...Packet received: unset
Thanks,
Pedro Alves