This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RTEMS running under Solaris 2.5


Khalid> The problem is that all RTEMS tasks seem to utilise the same errno
Khalid> variable, which leads to some problems concerning the application
Khalid> I am developing.

I assume you are using newlib, and are linking properly w/ newlib instead
of some other libc....

Do you have the extension manager linked into your app?

libc_init() in c/src/lib/libc/newlibc.c installs the "newlib" hooks
as extensions to thread create, start, begin, switch and delete hooks.

Try putting a breakpoint on libc_create_hook().  It should be called
as you create each thread.  I think the start hook does the work
of allocating a new reent structure.

--tony