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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Sergej Pupykin (sergej) - Friday, 11 January 2013, 10:04 GMT
It requires libgdb.a. I can't find it neither in extra/gdb nor in gdb build tree.
Comment by AlexL (AlexL) - Friday, 11 January 2013, 10:39 GMT Comment by AlexL (AlexL) - Friday, 11 January 2013, 11:09 GMT Comment by Sergej Pupykin (sergej) - Friday, 11 January 2013, 11:19 GMT
Allan, could you please add libgdb.a to gdb package?

it needs

make -C gdb libgdb.a

in build() and

install -Dm0644 gdb/libgdb.a $pkgdir/usr/lib/libgdb.a

in package()
Comment by Allan McRae (Allan) - Friday, 11 January 2013, 11:46 GMT
The GDB developers have been explicitly recommending against this for years so I have no intention of including this in the gdb package.

Read the INSTALL file in the install directory of the source for how to use the fpc provided version of this file.
Comment by Allan McRae (Allan) - Friday, 11 January 2013, 11:48 GMT
Ugh... they don't actually provide Linux ones for recent releases. Build it as part of the package and copy the library into the needed folder.
Comment by Sergej Pupykin (sergej) - Friday, 11 January 2013, 12:10 GMT
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528855

Hm, according to this bug report gdb support is probably painful. I think the best way is to push upstream for proper solution.
Comment by AlexL (AlexL) - Friday, 11 January 2013, 13:30 GMT
Alt Linux built libgdb-devel with libgdb.a and etc.
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.
Comment by Sergej Pupykin (sergej) - Friday, 11 January 2013, 16:40 GMT
> It's not difficult to compile fp with gdb support

If you did it, could you please post pkgbuild here?
Comment by AlexL (AlexL) - Friday, 11 January 2013, 18:10 GMT Comment by Sergej Pupykin (sergej) - Monday, 14 January 2013, 16:10 GMT
ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v7.4/libgdb-7.4-mingw32.zip contains only i386 libs and it looks like windows only.

Also fp can not be build with gdb-7.5, please report upstream.
Comment by Sergej Pupykin (sergej) - Wednesday, 16 January 2013, 19:58 GMT
I made patch based on pldlinux one, but it still looks unusable at least on x86_64.
(See fpc 2.6.0-4)
Comment by AlexL (AlexL) - Thursday, 17 January 2013, 00:25 GMT
http://pkgs.org/archlinux/archlinux-community-i686/fpc-2.6.0-4-i686.pkg.tar.xz.html
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.
Comment by AlexL (AlexL) - Thursday, 17 January 2013, 14:14 GMT
If to write easy code and to set Breakpoint, Run, then error: "Program generated a signal 11. Save your sources and restart the IDE." "The IDE generated an internal error and will be close."
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)
Comment by Sergej Pupykin (sergej) - Monday, 25 February 2013, 11:47 GMT
Currently it is too painful. You need patching gdb/fpc or using binary libgdb.
Comment by AlexL (AlexL) - Monday, 20 May 2013, 20:03 GMT
  • Field changed: Percent Complete (100% → 0%)
There are new patches, which allows to fix bug.
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.
Comment by AlexL (AlexL) - Sunday, 07 July 2013, 20:11 GMT
There are new fp-ide-2.6.2 with gdb 7.5.1: ftp://ftp.mageialinux.ru/mageia2/SRPMS
Comment by Balló György (City-busz) - Wednesday, 11 September 2013, 20:02 GMT
I agree with Sergej, it's too painful. We can't support it in the official repositories, but feel free to put a customized package to AUR with debug support. Or ask the upstream developers to implement debugging support in a way that always work with the current gdb releases.

Loading...