[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A problem in builting i386-rtems-gdb aware of ADA
- Date: Tue, 10 Aug 1999 08:38:06 -0500 (CDT)
- From: joel at OARcorp.com (joel at OARcorp.com)
- Subject: A problem in builting i386-rtems-gdb aware of ADA
On 10 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.
Double check the code but usually this means that it has confused the
native host and target. Could you check the conditionals in the file
i386-tdep.c. I think that it is doing something thinking it is hosted on
and targetting Linux rather than hosting on Linux and targetting RTEMS.
--joel
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985