This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help enquiring thread info in ecos
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Hadi Dewan <hadi_dewan at yahoo dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: 09 Oct 2003 08:41:41 -0600
- Subject: [ECOS] Re: Help enquiring thread info in ecos
- Organization: MLB Associates
- References: <20031009143048.66729.qmail@web13002.mail.yahoo.com>
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