[fpc-pascal] Debugger support for FP (issues with libgdb.a)
Andrea
mariofutire at googlemail.com
Sun Dec 21 18:29:06 CET 2008
Hi,
I've tried to use the debugger in FP 2.2.2 and I got this error
"No debugger support available"
The I read online and found that I need to get libgdb.a from a build of gdb and copy it in fpc.
I've done that and copied to
/fpcsrc/libgdb/linux/libgdb.a
Now I get this linker error (+ many more similar)
make[3]: Entering directory `/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/ide'
/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/compiler/ppc386 -di386
-Fl/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/libgdb/linux -Ur -Xs -O2 -n -Sg
-Fu/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/rtl/units/i386-linux
-Fu/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/packages/fv/units/i386-linux
-Fu/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/packages/gdbint/units/i386-linux
-Fu/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/packages/regexpr/units/i386-linux -FE.
-FUunits/i386-linux -Fl/usr/lib/gcc/i386-redhat-linux/4.3.0 -Flinclude -Flld.so.conf.d/*.conf
-k"--build-id -z noexecstack" -gl -dRELEASE fp.pas
/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/libgdb/linux/libgdb.a(exec.o): In function
`generic_skip_trampoline_code':
/home/andrea/rpmbuild/BUILD/gdb-6.8/build-i386-redhat-linux-gnu/gdb/../../gdb/arch-utils.c:58:
multiple definition of `generic_skip_trampoline_code'
/home/andrea/rpmbuild/BUILD/fpcbuild-2.2.2/fpcsrc/libgdb/linux/libgdb.a(arch-utils.o):/home/andrea/rpmbuild/BUILD/gdb-6.8/build-i386-redhat-linux-gnu/gdb/../../gdb/arch-utils.c:58:
first defined here
Have I done it correctly?
I was wondering if there is a documentation about that.
Andrea
More information about the fpc-pascal
mailing list