Recent

Author Topic: Mint 19.3 64bit and GDB  (Read 2220 times)

Borneq

  • Full Member
  • ***
  • Posts: 248
Mint 19.3 64bit and GDB
« on: December 20, 2019, 04:16:16 am »
Previously I have been using Lazarus with Windows 8.
Now I try MInt 19.3, but when i set breakpoint I see: "there is no debugeer specified"
but I specify debugger as /usr/bin/gdb and exists in this location

ccrause

  • Hero Member
  • *****
  • Posts: 862
Re: Mint 19.3 64bit and GDB
« Reply #1 on: December 20, 2019, 06:31:12 am »
I've always (well, for several years) run Lazarus on Mint and it is enough to just specify gdb without a path.  To test this open a console (command prompt), type gdb followed by enter.  Gdb should run and output some information to the console. Type q to quit.  If this works then there is a problem with your Lazarus configuration.

Some random questions to try and understand your setup:
Which Lazarus version are you using?
Do you see a Debugger entry under Project Options, and if so what is the setting?
Open Tools -> Options -> expand Debugger.  Describe the settings (debugger type and path).

dogriz

  • Full Member
  • ***
  • Posts: 127
Re: Mint 19.3 64bit and GDB
« Reply #2 on: December 20, 2019, 08:33:46 am »
Check to see if you have gdb installed. Run terminal and execute this:
Code: [Select]
dpkg -l | grep gdbYou should see something like
ii  gdb                                        8.1-0ubuntu3.2                                  amd64        GNU Debugger

And also:
Code: [Select]
whereis gdb
gdb: /usr/bin/gdb

gives you path to gdb executable
If you don't have it installed, just do so with:
Code: [Select]
sudo apt install gdb
« Last Edit: December 20, 2019, 08:37:58 am by dogriz »
FPC 3.2.2
Lazarus 2.2.4
Debian x86_64, arm

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: Mint 19.3 64bit and GDB
« Reply #3 on: December 20, 2019, 02:19:39 pm »
$ whereis gdb
gdb: /usr/bin/gdb /etc/gdb /usr/share/gdb /usr/share/man/man1/gdb.1.gz
Lazarus version: 1.8.2+dfsg-3
2018-03-04, FPC 3.0.4
Always is opened configuration window at start Lazarus and GDB is ok.
Tool->Options : access violation error dialog,

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9911
  • Debugger - SynEdit - and more
    • wiki
Re: Mint 19.3 64bit and GDB
« Reply #4 on: December 20, 2019, 02:31:03 pm »
Afaik, if there was something wrong with your gdb, the error may be different....

https://wiki.lazarus.freepascal.org/Debugger_Setup#Configure_the_IDE

Is the drop down on top set to "gnu debugger (gdb)"?

The full path to gdb is in the untitled edit field right below?

---
And also check that /usr/bin/gdb is not some script, that calls gdb from some other location. (a script would be only a few kilobyte)

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: Mint 19.3 64bit and GDB
« Reply #5 on: December 20, 2019, 03:10:54 pm »
Installing Lazarus SDK not helps. In Mint 19.3 (I have Linux under VirtualBox) is error when I try go to Lazarus options, but in Mint 19.2 I can go to options, but is panic error when I build. In Mint 19.3 I can build.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9911
  • Debugger - SynEdit - and more
    • wiki
Re: Mint 19.3 64bit and GDB
« Reply #6 on: December 20, 2019, 03:22:53 pm »
If the IDE itself crashes (option/build dialog), then you should try 2.0.6 (you mentioned that you use 1.8.2).

I haven't tested under Mint....

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: Mint 19.3 64bit and GDB
« Reply #7 on: December 20, 2019, 03:29:08 pm »
How install version other than  1.8.2? This version is installed by Software Manager and apt-get

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9911
  • Debugger - SynEdit - and more
    • wiki
Re: Mint 19.3 64bit and GDB
« Reply #8 on: December 20, 2019, 03:35:40 pm »
How install version other than  1.8.2? This version is installed by Software Manager and apt-get
apt-get and the software-repository are third party providers of Lazarus (I.e. the maintainers of mint, choose what they put in there). They often lag behind.

We provide rpm and dep files: https://sourceforge.net/projects/lazarus/files/

From what I hear (I myself download sources from svn)
They are generic to all distros. Apparently with some distros, sometimes a dependency may not be recognized. But you should have them installed by now, since you had 1.8.2 installed.

If there are version mismatches for fpc or lazarus, then uninstall the ones you currently have (keep other dependencies, if there is an option). Then install the 3 files (fpc(-laz), fpc-source, lazarus)

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: Mint 19.3 64bit and GDB
« Reply #9 on: December 20, 2019, 03:53:24 pm »
$ gdebi lazarus-project_2.0.6-0_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: fpc-laz (= 3.0.4)

and
$ fpc
Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others


===========
OK, I try again.
« Last Edit: December 20, 2019, 04:40:08 pm by Borneq »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9911
  • Debugger - SynEdit - and more
    • wiki
Re: Mint 19.3 64bit and GDB
« Reply #10 on: December 20, 2019, 04:14:58 pm »
Dependency is not satisfiable: fpc-laz (= 3.0.4)
Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64

fpc-laz is the one from our sourceforge.

Uninstall the one you have, and install both the fpc files from our sourceforge.

Unfortunately they can not mix with the packages from the distro-repros. Not even if they have the same version.

Borneq

  • Full Member
  • ***
  • Posts: 248
Re: Mint 19.3 64bit and GDB
« Reply #11 on: December 20, 2019, 04:47:54 pm »
Great, this works! I installed 3 files .deb from this Sourceforge directory.

 

TinyPortal © 2005-2018