Skip to content

Instantly share code, notes, and snippets.

@saghul
Forked from hirofumi/gdb.rb
Created March 13, 2012 16:40
Show Gist options
  • Save saghul/2029824 to your computer and use it in GitHub Desktop.
Save saghul/2029824 to your computer and use it in GitHub Desktop.
Homebrew Formula of GDB 7.4
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