Forum > macOS / Mac OS X

Where is GDB?

(1/2) > >>

srooney42:
Hi,

I am a new user installing Lazarus, PPC386, debugger and hopefully everything else needed. Upon launching Lazarus IDE 1.8.4 it opens a Configure Lazarus window with 5 "stages of completion". I have resolved all problems up to the last stage, titled Debugger. Message reads "The debugger executable typically has the name "GDB". Please give the full file path." Having downloaded and extracted gdb-8.1.tar.xz from http://ftp.gnu.org/gnu/gdb (mirrors), I do not find any file named "GDB". What am I missing?

Total newb, please forgive my ignorance, thanks in advance.

Steve.

ccrause:
Which OS?
How did you install FPC?

Edit: sorry, didn't notice the subforum...

Thaddy:
That's just the sourcecode for GDB. You have to make it. The documentation is in the archives.
Better to download a pre-built one.
Otherwise, maybe
--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---./install-sh <install-dir> is enough. I did not do that for a long time on OSX, so might be slightly different.

Martin_fr:
There are a couple of links here. http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X#Step_3_install_gdb
I am afraid its a bit of work.

We are working on an easier solution. Hopefully the next major release (Lazarus 1.10) should offer some solution. But for now....

srooney42:
Thank you so very much for your help, I seem to be making progress. Evidence suggests that Homebrew successfully built GDB, but I still can't find the executable, therefore can't tell Lazarus where it is. Evidence:

When I type GDB in a Terminal window, it responds as follows:

Stephens-MBP:gdb-8.1 stephenrooney$ gdb
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin17.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) q

I took this to mean that it has been built, but is hidden somewhere. I think I am almost there, just need one (or many) more pointer. Not the Pascal Pointer type, which should only ever be used by a Handle.

"There are whole libraries full of stuff I don't know."

Navigation

[0] Message Index

[#] Next page

Go to full version