title: Gdb on Mac OS X v10.7 (Lion)
body: <p>I am a new Mac user and wonder how to install the latest version of GDB (> 7.1). I prefer to use <a href="https://en.wikipedia.org/wiki/Homebrew_%28package_management_software%29" rel="nofollow noreferrer">Homebrew</a>, but I could not find GDB listed.</p>
  
  <pre><code>brew install gdb
  Error: No available formula for gdb
  </code></pre>
  
  <p>What is the best way to do it?</p>
  
  <p>When installed Xcode, it may have installed an older version. Currently,</p>
  
  <pre><code>$ which gdb
  /usr/bin/gdb
  
  $ gdb --version
  GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC 2011)
  Copyright 2004 Free Software Foundation, Inc.
  </code></pre>
  
  <p>But I need version > 7.1</p>
  
  <p>System version,</p>
  
  <pre><code>Model Name:     MacBook Air
  System Version: Mac OS X 10.7.1 (11B2118)
  </code></pre>