Problem with missing gdb on FreeBSD 12 lazarus / 12-Debugger ---------------------------------------------------------------------- AlexTP · 2020-10-19 20:24 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 · 2020-10-19 20:33 After I installed gdb, set its path in IDE (its different path), all works. ---------------------------------------------------------------------- trev · 2020-10-19 23:29 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). ---------------------------------------------------------------------- AlexTP · 2020-10-20 09:33 Yes, and we must DETECT it, not use some bad fixed path. It was installed to /usr/local.... (don't remember) ---------------------------------------------------------------------- trev · 2020-10-20 10:26 Quote from: Alextp on October 20, 2020, 11:33:29 amYes, 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. ---------------------------------------------------------------------- AlexTP · 2020-10-20 11:03 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 · 2020-10-20 11:20 FreeBSD is supported, GhostBSD is not. ---------------------------------------------------------------------- AlexTP · 2020-10-20 12:24 We must fix this. Its a bug. ---------------------------------------------------------------------- Zvoni · 2020-10-20 12:28 Quote from: Alextp on October 20, 2020, 02:24:12 pmWe must fix this. Its a bug. No, it's not. As trev said: FreeBSD<>GhostBSD ---------------------------------------------------------------------- AlexTP · 2020-10-20 12:55 At least if the full path is incorrect, we need some simpler error msg. Not "oops, debugger entered the error state". ---------------------------------------------------------------------- marcov · 2020-10-20 13:52 Note that the system level GDB (version)is conservatively chosen to debug the kernel. It is not necessarily the best GDB( version) for lazarus