LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-02-2007, 03:06 PM   #1
joelcomp1
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
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
Code:
function gdb
  /home/...(my stuff)/bin/gdb
end
Code:
alias gdb=/home/...(my stuff)/bin/gdb
Of course you could just call it using the full path.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:20 AM.

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