]> granicus.if.org Git - nethack/commitdiff
OSX sysconf bit
authorPatR <rankin@nethack.org>
Wed, 17 Feb 2016 22:20:56 +0000 (14:20 -0800)
committerPatR <rankin@nethack.org>
Wed, 17 Feb 2016 22:20:56 +0000 (14:20 -0800)
Prefer macports gdb over Xcode gdb.  No effect if macports gdb isn't
installed or if user's sysconf doesn't set PANICTRACE_GDB to 1 or 2.

sys/unix/hints/macosx.sh

index 156dd94f35fa6b6d2b1be238d61663620e568f0f..84364636fc32018486e0c99b43baa4f4b2d3fde3 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# NetHack 3.6  macosx.sh $NHDT-Date: 1455397108 2016/02/13 20:58:28 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.14 $
+# NetHack 3.6  macosx.sh $NHDT-Date: 1455747518 2016/02/17 22:18:38 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.15 $
 # Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
 # NetHack may be freely redistributed.  See license for details.
 #
@@ -97,10 +97,11 @@ xeditsysconf)
        # we should traverse the elements of $PATH instead
        if [ -f /usr/bin/gdb ]; then
            gdbpath='GDBPATH=/usr/bin/gdb' #traditional location
+       elif [ -f /opt/local/bin/ggdb ]; then
+           gdbpath='GDBPATH=/opt/local/bin/ggdb' #macports gdb
        elif [ -f /Developer/usr/bin/gdb ]; then
+           # this one seems to be broken with Xcode 5.1.1 on Mountain Lion
            gdbpath='GDBPATH=/Developer/usr/bin/gdb' #recent Xcode tools
-       elif [ -f /opt/local/bin/gdb ]; then
-           gdbpath='GDBPATH=/opt/local/bin/gdb' #macports
        else
            gdbpath='#GDBPATH' #none of the above
        fi