Skip to content

Instantly share code, notes, and snippets.

@darkhelmet
Created February 28, 2012 20:24
Show Gist options
  • Save darkhelmet/1934886 to your computer and use it in GitHub Desktop.
Save darkhelmet/1934886 to your computer and use it in GitHub Desktop.
GDB for Homebrew
require 'formula'
class Gdb < Formula
url 'http://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.bz2'
homepage 'http://www.gnu.org/software/gdb/'
md5 '95a9a8305fed4d30a30a6dc28ff9d060'
def install
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--with-python=/usr"]
system "./configure", *args
system "make"
system "make install"
end
def caveats; <<-EOS.undent
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
http://sourceware.org/gdb/wiki/BuildingOnDarwin
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment