[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A problem in builting i386-rtems-gdb aware of ADA





On 11 Aug 1999 biguo at 263.net wrote:

> > > Hello,everyone!Recently I want to build a i386-rtems-gdb aware of ADA so that I can debug ADA source program.My environmets is : Mandrake linux release 5.3(include gcc-2.7.2.3),binutils-2.9.1,newlib-1.8.0,gcc-2.8.1,gdb-4.17,rtems-4.0.0,gnat-3.11p-src.First,I apply rtems patches to newlib,binutils,gcc,gdb.Then I apply gnat-3.11p-src patches to gcc,gas,gdb,binutils.When I run ./bit_ada and ./bit> _rtems,it all was fine.But when I run ./bit_gdb i386 to build i386-rtems-gdb,the error appeared.The error messages look likes the following:
> > > 
> > > ../../gdb-4.17/gdb/i386-tdep.c: In function i386_linux_sigtramp_saved_pc':
> > > ../../gdb-4.17/gdb/i386-tdep.c:801: `SIGCONTEXT_PC_OFFSET' undeclared (first use this function)
> > > ../../gdb-4.17/gdb/i386-tdep.c:801: (Each undeclared identifier is reported only once
> > > ../../gdb-4.17/gdb/i386-tdep.c:801: for each function it appears in.)
> > > gmake[1]: *** [i386-tdep.o] Error 1
> > > gmake: *** [all-gdb] Error 2
> > > ERROR: **** FAILED **** build
> > > 
> > > Why cause these error?What's something wrong with bit_gdb scripts?or I still need some patches?Thanks in advance for any help.
> > > 
> > > 

> Hi!I have added "-DRTESM_TRAGET" in bit_gdb scripts.But there isn't
> any effect.I carefully watch i386tdep.c.There isn't RTEMS_TARGET
> options.I wonder the effect of RTEMS_TARGET.There are four options in
> i386-tdep.c.They
> are:GET_LONGJMP_TARGET,I386V4_SIGTRAMP_SAVED_PC,CHILD_RESUME,__linux__.Which
> one should I choose?Anyone can help me?Thanks in advance for any help.

I suspected this since the code in question does not have ifdef's on
RTEMS_TARGET.  I think that the RTEMS_TARGET is actually only used in the
Ada specific code that recognizes Ada tasks.

There is something else going on here. 

--joel