Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-07

gdb version for use with lazarus

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

still in the reconstruction process:

Which version of gdb is requiered at least for us with lazarus on freebsd with fpc 2.6.4?

I'm using nthe systems gdb which does not seem to suffice:

gdb --version

GNU gdb 6.1.1 [FreeBSD]

Lazarus is from today, 1.4.2.

TIA,
Marc

Marc Santhoff

Reply by email

leledumbo
to Marc Santhoff
GNU gdb 6.1.1 [FreeBSD]

Wow! That's about 11 years ago :o
I don't know what's the lower bound, but 7.1-7.2 is found to be working. I'm on a rolling release distro which always provides latest GDB (7.9.1 atm) and it works quite fine (well, there are hiccups here and there, but only in certain corner cases).

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-gdb-version-for-use-with-lazarus-tp4043248p4043249.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Martin Frb
to Marc Santhoff: still in the reconstruction process: Which version of gdb is requiered at least for us…
Marc Santhoff wrote 14 lines
Hi, still in the reconstruction process: Which version of gdb is requiered at least for us with lazarus on freebsd with fpc 2.6.4? I'm using nthe systems gdb which does not seem to suffice: > gdb --version GNU gdb 6.1.1 [FreeBSD] Lazarus is from today, 1.4.2.

It might not just be the version number.
The lowest version regularly tested is or was till recently 6.3.5 (the apple mac edition).
But it is well possible that even older versions still work.

IIRC the problem on freebsd is that some commands returns different values. Instead of PID you get a Lightweight thread id, or something, and it has a diff abbreviation.
I remember 1 or 2 years back some reports and some changes. But I have not tested since. (And I do not know, if those changes apply only to certain version of the freebsd gdb.)

Lets start with a log, on whatever gdb you currently have http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

Reply by email

Graeme Geldenhuys
to Marc Santhoff: still in the reconstruction process: Which version of gdb is requiered at least for us…
Marc Santhoff wrote
> gdb --version GNU gdb 6.1.1 [FreeBSD]

Yeah, don't use that one. FreeBSD includes that one by default because of licensing issues with newer versions. Use ports and install a later GDB (/usr/ports/devel/gdb). I have gdb 7.8.1 installed here on FreeBSD 10.1 and it works perfectly with FPC 2.6.4. I see GDB 7.9.1 is available in ports too, but I don't want to "fix" what isn't broken. ;-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Graeme Geldenhuys
to Marc Santhoff: still in the reconstruction process: Which version of gdb is requiered at least for us…
Marc Santhoff wrote
> gdb --version GNU gdb 6.1.1 [FreeBSD]

I forgot to mention in my previous reply, when you install a later GDB via ports, they use a different executable name so you can have multiple versions installed.

/usr/bin/gdb <-- v6.6
/usr/local/bin/gdb781 <-- v7.8.1

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Marc Santhoff
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
On 2015-07-19 18:16, Marc Santhoff wrote: > > gdb --version > GNU gdb 6.1.1 [FreeBSD] I forgot to mention in my previous reply, when you install a later GDB via ports, they use a different executable name so you can have multiple versions installed. /usr/bin/gdb <-- v6.6 /usr/local/bin/gdb781 <-- v7.8.1

Seems to be the case, the newer gdb from ports is installed, I only need to tell lazarus.

Will do, will test, but not today.

Marc Santhoff

Reply by email

Marc Santhoff
to Martin Frb: It might not just be the version number. The lowest version regularly tested is or was…
Martin Frb wrote 30 lines
On 19/07/2015 18:16, Marc Santhoff wrote: > Hi, > > still in the reconstruction process: > > Which version of gdb is requiered at least for us with lazarus on > freebsd with fpc 2.6.4? > > I'm using nthe systems gdb which does not seem to suffice: > > > gdb --version > GNU gdb 6.1.1 [FreeBSD] > > Lazarus is from today, 1.4.2. > It might not just be the version number. The lowest version regularly tested is or was till recently 6.3.5 (the apple mac edition). But it is well possible that even older versions still work. IIRC the problem on freebsd is that some commands returns different values. Instead of PID you get a Lightweight thread id, or something, and it has a diff abbreviation. I remember 1 or 2 years back some reports and some changes. But I have not tested since. (And I do not know, if those changes apply only to certain version of the freebsd gdb.) Lets start with a log, on whatever gdb you currently have http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

If the newer gdb doesn't run, I will.

Since i really shot down my installation I cannot tell which gdb has been used lastly, but lazarus was version 1.2.0 and that combination worked - well a programm killed some config
files, some of my sources and maybe the compiler itself, cannot tell because in the end the machine freezed and shortly rebooted on CTRL-F9.

The problem worked at was some confusion in the contruction chain, so I had to stop several times even before a window showed up on the screen.

I kept the defect fpc and lazarus dirs, but not the hosed configuration, it is repaired now. Lazarus stumbled across some zero length files, but it should not reboot the computer. I think the damaged file system killed the compiler or the like.

Marc Santhoff

Reply by email

Martin Frb
to Marc Santhoff
Marc Santhoff wrote
Since i really shot down my installation I cannot tell which gdb has been used lastly, but lazarus was version 1.2.0 and that combination worked - well there were some changes in the startup of the debug session

You can try (in the option / property grid) to set InternalStartBreak to a diff value: gdsbMain or gdsbEntry my be good.

Reply by email