From: Shaw Terwilliger <sterwill@sourcegear.com>
To: Nicolas Vignal <nicolas.vignal@fnac.net>
Cc: gdb@sources.redhat.com
Subject: Re: thread exit goes defunct
Date: Mon, 12 Feb 2001 08:51:00 -0000 [thread overview]
Message-ID: <20010212105114.B26819@lister.sourcegear.com> (raw)
In-Reply-To: <01021216193600.01165@nicolas>
Nicolas Vignal wrote:
> Under gdb when a thread exit, he goes in the defunct state.
I've been wondering about this too. Since the old threads don't die,
I quickly run out of processes, which makes debugging long-running
servers (which spawn new threads on new connections) difficult.
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjqIFIIACgkQPEbgvbl6u4HH3gCgiXrPn/gg4AbhpH0SKa2K3ful
tGQAn0u2sRKBx4lCwnnLeGlUBMM/bAah
=qBve
-----END PGP SIGNATURE-----
From nsd@redhat.com Mon Feb 12 09:46:00 2001
From: Nick Duffek <nsd@redhat.com>
To: eliz@is.elta.co.il
Cc: gdb@sources.redhat.com, kettenis@wins.uva.nl
Subject: Re: Register cache
Date: Mon, 12 Feb 2001 09:46:00 -0000
Message-id: <200102121753.f1CHr9t11723@rtl.cygnus.com>
References: <Pine.SUN.3.91.1010212092158.12969C-100000@is>
X-SW-Source: 2001-02/msg00124.html
Content-length: 1377
On 12-Feb-2001, Eli Zaretskii wrote:
>So you are telling, in effect, that it's okay to have
>i387_supply_fsave get all the FP registers
Yes, I think that's a reasonable and useful i387 interface.
>and x86 targets which don't like that should provide ther own code
>instead of using i387_supply_fsave?
Certainly they can't use i387_supply_fsave, so something like
i387_supply_fpreg would be necessary.
Note that the {supply,fill}_*regset functions aren't part of the register
cache interface: they're just a set of target-specific functions that
several targets happen have in common.
Those targets generally can't fetch just one floating-point register,
which is why the supply_*regset functions lack a REGNO argument. As Mark
said, the register cache continues to work properly if
target_fetch_registers fetches more registers than requested, so there's
no loss and potentially some gain for those targets to fetch all fp
registers.
If it's possible and more efficient on your target to fetch one fp
register instead of all of them, then I think i387_supply_fpreg is a good
idea.
In my opinion, interface expansion is preferable to code duplication, so I
agree with your patch to put i387_supply_fpreg in i387-nat.c. However,
that's really a coding philosophy issue, and since Mark wrote i387-nat.c,
I'm inclined to bow to his opinion on how it gets changed.
Nick
next prev parent reply other threads:[~2001-02-12 8:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-12 7:19 Nicolas Vignal
2001-02-12 8:51 ` Shaw Terwilliger [this message]
2001-02-13 3:20 ` Mark Kettenis
2001-02-13 8:40 ` Nicolas Vignal
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=20010212105114.B26819@lister.sourcegear.com \
--to=sterwill@sourcegear.com \
--cc=gdb@sources.redhat.com \
--cc=nicolas.vignal@fnac.net \
/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