Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GDB 7.5.1

This includes two patches to BFD related to new Mach-O load commands
added in 10.8 (and possibly 10.7 depending on what version of the
devtools you have installed). The first patch is from upstream and will
be released as part of GDB 7.6. The second patch fixes a bug in the
upstream patch to make GDB properly read a binary's start address.  The
second patch is not yet upstream because I don't have a copyright
assignment agreement with the FSF yet, but it has been approved and some
version of it should find itself in GDB 7.6 as well.  You can find the
related email thread here:
http://sourceware.org/ml/binutils/2012-11/msg00320.html

Closes #126.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit 036117735ab48f63b7bc62d214e7ad9ce8d14c72 1 parent e39800e
@davidbalbert davidbalbert authored jacknagel committed
Showing with 18 additions and 3 deletions.
  1. +18 −3 gdb.rb
View
21 gdb.rb
@@ -2,9 +2,9 @@
class Gdb < Formula
homepage 'http://www.gnu.org/software/gdb/'
- url 'http://ftpmirror.gnu.org/gdb/gdb-7.5.tar.bz2'
- mirror 'http://ftp.gnu.org/gnu/gdb/gdb-7.5.tar.bz2'
- sha1 '79b61152813e5730fa670c89e5fc3c04b670b02c'
+ url 'http://ftpmirror.gnu.org/gdb/gdb-7.5.1.tar.bz2'
+ mirror 'http://ftp.gnu.org/gnu/gdb/gdb-7.5.1.tar.bz2'
+ sha1 'd04c832698ac470a88788e719d19ca7c1d4d803d'
depends_on 'readline'
@@ -18,6 +18,21 @@ def install
system "make install"
end
+ def patches
+ [
+ # Support for new Mach-O load commands backported from trunk. This should
+ # be unnecessary in GDB 7.6.
+ "https://raw.github.com/gist/4197567/dad208436d69ba591200098c91a94fa9e1cdc160/loadcommands.patch",
+
+ # This is a suplemental patch that fixes a small bug in the above patch.
+ # It's not in trunk yet, but it has been submitted upstream, okayed, and
+ # hopefully a version of it will be committed by the time 7.6 comes out.
+ # If you're updating this formula for 7.6, email davidbalbert@gmail.com,
+ # and I'll let you know if the change has made it into the release.
+ "https://raw.github.com/gist/4197567/e53221895da6bf0e8b307db6e774c24f543db1c3/startaddress.patch"
+ ]
+ end
+
def caveats; <<-EOS.undent
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
Please sign in to comment.
Something went wrong with that request. Please try again.