From: Mark Kettenis <kettenis@chello.nl>
To: Liam Stewart <liams@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] detaching and threaded linux apps
Date: Mon, 03 Jun 2002 14:53:00 -0000 [thread overview]
Message-ID: <86ptz89ghs.fsf@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: Liam Stewart's message of "Mon, 3 Jun 2002 14:36:35 -0400"
Liam Stewart <liams@redhat.com> writes:
> thread_db_detach and lin_lwp_detach don't remove their target operation
> structures from the target list when a detach on a threaded application
> is done. This leads to the failure of the num_lwps == 1 assertion if a
> gdb user (for some reason) detaches again before starting/attaching to a
> new inferior.
The fact that thread_db_detach and lin_lwp_detach don't unpush their
targect vector is intentional. The target vector is installed as a
result of loading the thread library, not (necessarily) as a result of
attaching to a threaded application. Therefore is should only be
uninstalled if the thread library is unloaded. The right wat of
fixing this would be to prevent the assertion being triggered if
num_lwps == 0. Explicitly checking for this condition and displaying
an error message in lin_lwp_detach() might be sufficient.
Mark
next prev parent reply other threads:[~2002-06-03 21:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-03 11:36 Liam Stewart
2002-06-03 14:53 ` Mark Kettenis [this message]
2002-06-04 8:54 ` Liam Stewart
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=86ptz89ghs.fsf@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=gdb-patches@sources.redhat.com \
--cc=liams@redhat.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