FS#33361 - [gdb] [fpc] fp ide: No debugger support available
Attached to Project:
Community Packages
Opened by AlexL (AlexL) - Thursday, 10 January 2013, 14:22 GMT
Last edited by Balló György (City-busz) - Wednesday, 11 September 2013, 20:02 GMT
Opened by AlexL (AlexL) - Thursday, 10 January 2013, 14:22 GMT
Last edited by Balló György (City-busz) - Wednesday, 11 September 2013, 20:02 GMT
|
Details
Description: fp ide: No debugger support available
Additional info: * package version(s): fpc-2.6.0-2-i686.pkg.tar.xz * config and/or log files etc. Steps to reproduce: How reproducible: Trying to use debug functionality in the fp ide does not work. Clicking for instance "Debug->Watches" in the IDE produces the error "No debugger support available" fp (from fpc package) must be compiled with gdb support. |
This task depends upon
Closed by Balló György (City-busz)
Wednesday, 11 September 2013, 20:02 GMT
Reason for closing: Won't implement
Additional comments about closing: see my last comment
Wednesday, 11 September 2013, 20:02 GMT
Reason for closing: Won't implement
Additional comments about closing: see my last comment
ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/
or can use solution from Alt Linux:
http://sisyphus.ru/en/srpm/Sisyphus/gdb/spec
http://sisyphus.ru/en/srpm/Sisyphus/fpc/spec
it needs
make -C gdb libgdb.a
in build() and
install -Dm0644 gdb/libgdb.a $pkgdir/usr/lib/libgdb.a
in package()
Read the INSTALL file in the install directory of the source for how to use the fpc provided version of this file.
Hm, according to this bug report gdb support is probably painful. I think the best way is to push upstream for proper solution.
It's not difficult to compile fp with gdb support. But you must see current gdb version in distro and use svn-version packages/gdbint/src/gdbint.pp.
In upstream all works fine, problem with gdb support only in distro.
If you did it, could you please post pkgbuild here?
make all
with ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/
Also fp can not be build with gdb-7.5, please report upstream.
(See fpc 2.6.0-4)
File -> New from template... will be work only if to put /usr/lib/fpc/2.6.0/ide/*pt into directory /usr/lib/fpc/2.6.0/ide/text
I'll test debugger tomorrow.
It's error: -Fu/build/pkg/ in fp.cfg, but I don't know why gdb don't work. Authors says all must work.
It's DesktopFileFlags=209 in fp.ini better to change -> DesktopFileFlags=193, because there is error with full screen/non full screen terminals (http://www.freepascal.ru/forum/viewtopic.php?p=68824#p68824)
fp-ide: ftp://ftp.mageialinux.ru/mageia2/SRPMS/ has in package fp-ide-2.6.0-20 (and later) gdb support. In src.rpm you can find all patches for gdb+fp, spec and other patches for fp.