Recent

Author Topic: Problem with missing gdb on FreeBSD 12  (Read 610 times)

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Problem with missing gdb on FreeBSD 12
« on: October 19, 2020, 10:24:37 pm »
Distro: GhostBSD
Lazarus r64000.
"which gdb" gives none. "gdb" cannot be run.
Lazarus default path for gdb in dialog: /usr/libexec/gdb.
On debug attempt - IDE error "oops, debugger entered the error state".
Why not to detect missing gdb??

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Re: Problem with missing gdb on FreeBSD 12
« Reply #1 on: October 19, 2020, 10:33:29 pm »
After I installed gdb, set its path in IDE (its different path), all works.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1053
  • Former Delphi 1-7, 10.2 User
Re: Problem with missing gdb on FreeBSD 12
« Reply #2 on: October 20, 2020, 01:29:44 am »
gdb is included in FreeBSD 12 base - I guess the GhostBSD maintainers omitted it for some reason (possibly because it is a rather old gdb version).
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Re: Problem with missing gdb on FreeBSD 12
« Reply #3 on: October 20, 2020, 11:33:29 am »
Yes, and we must DETECT it, not use some bad fixed path.
It was installed to /usr/local.... (don't remember)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1053
  • Former Delphi 1-7, 10.2 User
Re: Problem with missing gdb on FreeBSD 12
« Reply #4 on: October 20, 2020, 12:26:45 pm »
Yes, and we must DETECT it, not use some bad fixed path.
It was installed to /usr/local.... (don't remember)

If it was installed to /usr/local then it is not the gdb which is distributed with the base system but a third party installation of gdb. The base system gdb is installed is /usr/libexec.
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Re: Problem with missing gdb on FreeBSD 12
« Reply #5 on: October 20, 2020, 01:03:03 pm »
Yes, and Laz must use this 3rd party installation. After DETECT. I set its path in the IDE options and debugging begins to work

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1053
  • Former Delphi 1-7, 10.2 User
Re: Problem with missing gdb on FreeBSD 12
« Reply #6 on: October 20, 2020, 01:20:02 pm »
FreeBSD is supported, GhostBSD is not.
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Re: Problem with missing gdb on FreeBSD 12
« Reply #7 on: October 20, 2020, 02:24:12 pm »
We must fix this. Its a bug.

Zvoni

  • Sr. Member
  • ****
  • Posts: 423
Re: Problem with missing gdb on FreeBSD 12
« Reply #8 on: October 20, 2020, 02:28:59 pm »
We must fix this. Its a bug.
No, it's not.
As trev said: FreeBSD<>GhostBSD
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircraft

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Re: Problem with missing gdb on FreeBSD 12
« Reply #9 on: October 20, 2020, 02:55:26 pm »
At least if the full path is incorrect, we need some simpler error msg. Not "oops, debugger entered the error state".

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8894
  • FPC developer.
Re: Problem with missing gdb on FreeBSD 12
« Reply #10 on: October 20, 2020, 03:52:02 pm »
Note that the system level GDB (version)is conservatively chosen to debug the kernel. It is not necessarily the best GDB( version) for lazarus

 

TinyPortal © 2005-2018