[ECOS] How do I view the threads running in my target ?

Gary Thomas gary@mlbassoc.com
Fri Apr 23 18:26:00 GMT 2004


On Fri, 2004-04-23 at 07:14, mohasin.zaki@wipro.com wrote:
> Hi eCos experts,
>  
> I would like to know how I can view the threads running in the target.
>  
> My target is x86 PC. I booted it through floppy containing the Redboot 
> boot image.
>  
> I was able to connect to the target using GDB and was even able to load 
> and run some of the sample applications.
>  
> But the problem I am facing here is that, when I "load" a application 
> program and do a "continue", the currently running threads output is 
> coming on the gdb console. I am not able to push this to the background 
> and all the existing threads in the system.
>  
> I have done this in vxWorks, where I was able to view all the currently 
> running tasks(threads) in the target, see their stack usage, suspend and 
> resume the same.
>  
> How can I achieve the same in this case ?.

The GDB command 'info threads' will give you information about the 
current threads.  You can also select a thread and then interrogate
it separately.

Refer to the GDB documentation for full details.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list