* * *

Author Topic: Where is GDB?  (Read 1701 times)

srooney42

  • Newbie
  • Posts: 4
Where is GDB?
« on: July 15, 2018, 05:14:04 am »
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

  • Full Member
  • ***
  • Posts: 129
Re: Where is GDB?
« Reply #1 on: July 15, 2018, 08:15:09 am »
Which OS?
How did you install FPC?


Edit: sorry, didn't notice the subforum...
« Last Edit: July 15, 2018, 08:18:26 am by ccrause »

Thaddy

  • Hero Member
  • *****
  • Posts: 6930
Re: Where is GDB?
« Reply #2 on: July 15, 2018, 08:28:44 am »
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  [Select]
  1. ./install-sh <install-dir>
is enough. I did not do that for a long time on OSX, so might be slightly different.
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4818
    • wiki
Re: Where is GDB?
« Reply #3 on: July 15, 2018, 10:50:49 am »
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

  • Newbie
  • Posts: 4
Re: Where is GDB?
« Reply #4 on: July 19, 2018, 06:04:30 am »
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."

GAN

  • Full Member
  • ***
  • Posts: 190
Re: Where is GDB?
« Reply #5 on: July 19, 2018, 06:45:18 am »
Code: Pascal  [Select]
  1. which gdb
Lazarus 1.6 FPC 3.0.0 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html

srooney42

  • Newbie
  • Posts: 4
Re: Where is GDB?
« Reply #6 on: July 24, 2018, 03:27:03 am »
I am looking for GDB 8.1 targeted for Pascal in Lazarus 1.8.4. I know it is hiding somewhere because of the results shown above, but no kind of unix or Mac OS search I can dream up can locate it's directory path, therefore Lazarus is stumped. I am somewhat aware of the issue of hidden files, but a unix novice. I am at a standstill.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Where is GDB?
« Reply #7 on: July 24, 2018, 04:39:41 am »
I am looking for GDB 8.1 targeted for Pascal in Lazarus 1.8.4. I know it is hiding somewhere because of the results shown above, but no kind of unix or Mac OS search I can dream up can locate it's directory path, therefore Lazarus is stumped. I am somewhat aware of the issue of hidden files, but a unix novice. I am at a standstill.

If gdb is on your system, a Spotlight search will find it:

mdfind "kMDItemFSName == gdb"

However, since you can run gdb from the Terminal, that would suggest that gdb is on the path, meaning "which gdb" and "whereis gdb" should have found it too. A mystery. You did try those two commands, right?

I don't use Homebrew for anything, but would assume that it installs gdb in /usr/local/bin .

For future reference, here's your complete list of macOS commands:

https://ss64.com/osx


srooney42

  • Newbie
  • Posts: 4
Re: Where is GDB?
« Reply #8 on: July 24, 2018, 05:09:16 am »
A thousand thankyou's!

"You did try those two commands, right?"

Unix novice. This is exactly what I did NOT know how to do. "which GDB" located it, just where you thought it would be. Thanks a million, Lazarus is up and running, now for the fun part! Now I introduce it to the thousands of lines of Pascal I wrote 25 years ago, back in the days of Think Pascal and System 7 on a Mac IIx. I anticipate immediate success!

Gratefully, Steve.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus