Using the terminal

Joined
Aug 11, 2007
Messages
82
Reaction score
0
Points
6
Hi

I am trying to use GDB from the terminal to debug a CORE file.

How do I get a program to run in the terminal, do I need to set any paths to it?

I have moved the GDB folders into my HD Mac root, gotten to it using 'cd', but when trying to use the application by calling 'gdb' I get unknown command.

Any ideas or help would be great!

Thanks
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
You can either put it in your path (best) or cd to it's dir and type ./GDB.
The ./ tells Bash to run something in the dir you're in instead of looking in the path.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top