2

My professor posted this online for a lab this week, but I missed the tutorial and didn't find how to do this. Does anyone know? It is just a simple command line thing, but I have been hunting around and can't seem to figure it out...

Hi everyone,

A new version of gdb (version 6.8) has been installed on the servers csb and csg (but not csh). This new version seems to avoid the problems people have been experiencing with the old version, such as labels not being recognized by the debugger.

The new version of gdb is installed in /usr/local/bin/gdb, while the old version (version 6.2.1) still remains in /opt/sfw/bin/gdb. You may want to create an alias or set your path to point to the new version in your Unix command shell. You can always check the version number of gdb by entering the following at the command line: gdb -version

I am ssh-ing on to the server, and have checked that my version is, in fact, the older one.

Any help would be much appreciated!

Thanks,

badPanda

1 Answer 1

3

you can create an alias with:

alias gdb='/usr/local/bin/gdb'

or add it to your path with

export PATH=/usr/local/bin:$PATH

you can then run which gdb to see which version your session is looking at.

hope this helps

edit: also note that if you want these to be active for your next login, you will need to add them to your ~/.profile

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .