This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How do I view the threads running in my target ?
- From: Gary Thomas <gary at mlbassoc dot com>
- To: mohasin dot zaki at wipro dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 23 Apr 2004 08:19:48 -0600
- Subject: Re: [ECOS] How do I view the threads running in my target ?
- Organization: MLB Associates
- References: <B99FECA7782B834AB0D4D5B18D89F5F0012F42E2@chn-gdy-msg.wipro.com>
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