public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Deleting threads and GDB.
@ 2000-07-27 11:44 Fabrice Gautier
  2000-07-28  4:00 ` Hugo 'NOx' Tyson
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gautier @ 2000-07-27 11:44 UTC (permalink / raw)
  To: Ecos-List (E-mail)

Hi,

In the list archives, there is a thread about killing and deleting threads. 
It is said that when using cyg_thread_kill() the thread remains in fact like
a Zombie. And that the (undocumented) function cyg_thread_delete should be
used to erase completely the thread.

But when I use GDB on a program that use the thread_delete function, the
deleted thread is still in the list of processes.
And when I step throught the thread_delete function the thread disappear
from the process list.

Thanks

A+

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Deleting threads and GDB.
  2000-07-27 11:44 [ECOS] Deleting threads and GDB Fabrice Gautier
@ 2000-07-28  4:00 ` Hugo 'NOx' Tyson
  0 siblings, 0 replies; 2+ messages in thread
From: Hugo 'NOx' Tyson @ 2000-07-28  4:00 UTC (permalink / raw)
  To: ecos-discuss


Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:

> Hi,
> 
> In the list archives, there is a thread about killing and deleting threads. 
> It is said that when using cyg_thread_kill() the thread remains in fact like
> a Zombie. And that the (undocumented) function cyg_thread_delete should be
> used to erase completely the thread.

That's correct.

> But when I use GDB on a program that use the thread_delete function, the
> deleted thread is still in the list of processes.

Is this "the list of processes" as in a window in the GUI, or what "info
threads" tells you?

> And when I step throught the thread_delete function the thread disappear
> from the process list.

Just guessing, I expect GDB is remembering about the thread until it next
completely updates its thread list.  That probably happens while you are
stepping, but not when the program is just running, unless you make GDB
update the thread list.  "info threads" should do that.  If you are seeing
the problem in the CLI version of GDB with "info threads" that's likely a
real problem, tell the list more?

	- Huge

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-07-28  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-27 11:44 [ECOS] Deleting threads and GDB Fabrice Gautier
2000-07-28  4:00 ` Hugo 'NOx' Tyson

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).