From: Pedro Alves <palves@redhat.com>
To: Petr Sumbera <petr.sumbera@oracle.com>, gdb@sourceware.org
Subject: Re: Solaris - procfs: couldn't find pid 32748 (kernel thread 21) in procinfo list
Date: Mon, 1 Jun 2020 20:12:04 +0100 [thread overview]
Message-ID: <0570473c-1181-2269-06a0-0f6d4fc6b178@redhat.com> (raw)
In-Reply-To: <cb9b2b25-75a0-059d-348d-eb83e703b631@oracle.com>
On 6/1/20 12:39 PM, Petr Sumbera via Gdb wrote:
> The issue seems to be that the LWP exits and the status->kind is set to TARGET_WAITKIND_SPURIOUS:
>
> https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/procfs.c;h=f6c6b0e71c16224d3e7345ca09e011cdcf06349a;hb=HEAD#l2214
>
> But instantly it's added into the list again here:
>
> https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/infrun.c;h=95fc3bfe45930b53c33cb4de165db9c070449ad8;hb=HEAD#l5200
>
> But there is no longer such LWP in /proc.
>
> Any suggestion?
Either:
- replace TARGET_WAITKIND_SPURIOUS with TARGET_WAITKIND_THREAD_EXITED, or,
- replace
status->kind = TARGET_WAITKIND_SPURIOUS;
return retval;
with
goto wait_again;
instead.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2020-06-01 19:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 15:29 Petr Sumbera
2020-05-28 16:01 ` Rainer Orth
2020-06-01 12:47 ` Petr Sumbera
2020-06-01 11:39 ` Petr Sumbera
2020-06-01 19:12 ` Pedro Alves [this message]
2020-06-02 7:32 ` Petr Sumbera
2020-06-02 14:53 ` Pedro Alves
2020-06-02 16:30 ` Petr Sumbera
2020-06-02 17:14 ` Pedro Alves
2020-06-03 13:09 ` Petr Sumbera
2020-06-08 9:51 ` Petr Sumbera
2020-06-08 13:47 ` Pedro Alves
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=0570473c-1181-2269-06a0-0f6d4fc6b178@redhat.com \
--to=palves@redhat.com \
--cc=gdb@sourceware.org \
--cc=petr.sumbera@oracle.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).