title: Updating GDB on mac osx 10.8 from 6.3 to 7.*
body: <p>I now have gdb-6.3 from Xcode. Wanting to upgrade to gdb-7.*</p>
  
  <p>Here's what happened:
  I used macports to install GDB-7.5, all is fine during installation only until I tried to run gdb as,</p>
  
  <p>ggdb exectutable</p>
  
  <p>it showed,</p>
  
  <p>BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x2a
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x28
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x29
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x2b
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x2a
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x28
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x29
  BFD: /Users/jiaxilong/Desktop/EECS281_proj3/proj2: unknown load command 0x2b</p>
  
  <p>executable is compiled as,</p>
  
  <p>g++ -ggdb a.cpp executable</p>
  
  <p>i tried using -g as well. not working.</p>
  
  <p>another thing is, gdb -v shows version 6.3
  ggdb -v shows version 7.5</p>
  
  <p>Please give a hand if you have a clue what i should do here :) Thanks in advance.</p>