Skip to content


Subversion checkout URL

You can clone with
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:

Closes #126.

Signed-off-by: Jack Nagel <>
  • 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
21 gdb.rb
@@ -2,9 +2,9 @@
class Gdb < Formula
homepage ''
- url ''
- mirror ''
- sha1 '79b61152813e5730fa670c89e5fc3c04b670b02c'
+ url ''
+ mirror ''
+ sha1 'd04c832698ac470a88788e719d19ca7c1d4d803d'
depends_on 'readline'
@@ -18,6 +18,21 @@ def install
system "make install"
+ def patches
+ [
+ # Support for new Mach-O load commands backported from trunk. This should
+ # be unnecessary in GDB 7.6.
+ "",
+ # 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,
+ # and I'll let you know if the change has made it into the release.
+ ""
+ ]
+ 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.