This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/35284] Branch to 0x0 from Ada run-time
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Apr 2008 07:36:44 -0000
- Subject: [Bug ada/35284] Branch to 0x0 from Ada run-time
- References: <bug-35284-296@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #27 from laurent at guerby dot net 2008-04-02 07:36 -------
My guess is that Initialize_TCB you wrote for RTEMS (s-taprop-rtems) does not
set success to True for some reason:
procedure Initialize_ATCB
...
STPO.Initialize_TCB (T, Success); --- here call into RTEMS specific code
if not Success then
return;
end if;
T.Common.Parent := Parent;
T.Common.Base_Priority := Base_Priority;
T.Common.Current_Priority := 0; ---- <==== here comes the zero
To look for variables under gdb try "set lang c", and "info local", "info arg",
you'll get strange names but you should be able to print.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35284