[ECOS] Re: Help enquiring thread info in ecos

Gary Thomas gary@mlbassoc.com
Thu Oct 9 14:41:00 GMT 2003

Note: please copy replies to the eCos mailing list so that
all may benefit.  Private email is only available with a
support contract.

On Thu, 2003-10-09 at 08:30, Hadi Dewan wrote:
> Hi Gary,
> Thanks for an quick response. Right now I am just
> using "configtool" and "ecosconfig" to create an
> configuration file. I dont think RedBoot is hooked
> into those tools. Following are the steps I do to
> create ecos library and an application program.
> 1. mkdir /tmp/ecos_work 
> 2. cd ecos_work 
> 3. ecosconfig new leon 
> 4. ecosconfig tree 
> 5. make 
> I have attached the configuration file with this
> email. As you can see the GDB_STUB is  faded out. 
> To compile an application. I do the following
> sparc-elf-gcc twoThread.c -o twoThread.out
> -L./install/lib -I./install/include -Ttarget.ld
> -nostdlib 
> Using insight software I can connect to the target and
> set breakpoint/single step. Only with "info thread" I
> get error. If gdb is disable nothing will work. But it
> doesnt look at way. 
> Please let me know if I need to compile redboot to go
> around it. And also have a quick look at the attached
> file using "configtool". 
>    Thanks you 
>               Hadi 

More importantly, how was the debug environment on your
processor built?  In other words, the device has something
in FLASH/ROM - this may be RedBoot or simply GDB stubs.
This is what has to be built with the thread support present
since when Insight (or GDB) is talking to the target, it's
talking to the GDB support (in RedBoot or stubs) and not
directly to your application.

Gary Thomas <gary@mlbassoc.com>
MLB Associates

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

More information about the Ecos-discuss mailing list