Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-02-2007, 03:06 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: Ubuntu 7.04/ Fedora Core 6
Posts: 19

Rep: Reputation: 0
Change GDB location

I am trying to change my GDP Path (debugger) to the GNAT one that I downloaded and I cannot figure out how to do it, right now it is located at /usr/bin/gdb and i want it to be at /home/...(my stuff)
Old 07-03-2007, 08:28 AM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Recent versions of GDB are Ada aware and capable of debugging Ada programs compiled with GNAT. If you have an older version of GDB in /usr/bin that isn't Ada-aware, I'd recommend just updating your GDB. If that's not an option, you'll need to add /home/...(my stuff) to your PATH variable before /usr/bin.

Another option would be to use a function or set an alias in your .bashrc so that the command gdb calls the version in your home directory.
function gdb
  /home/...(my stuff)/bin/gdb
alias gdb=/home/...(my stuff)/bin/gdb
Of course you could just call it using the full path.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change the location of mysql lexthoonen Linux - Newbie 4 01-25-2007 12:02 PM
Location and language change davidsrsb Ubuntu 0 01-09-2007 09:39 AM
How to change installation disk location madsporkmurderer Linux - Newbie 1 01-29-2006 07:47 PM
Why change location of nano sigma957 Debian 1 06-18-2005 02:20 PM
how to change location of /home? mark_2811 Linux - General 4 01-23-2004 06:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration