summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2015-10-13 17:12:17 -0700
committerJosh Gao <jmgao@google.com>2015-10-13 17:12:17 -0700
commit6e0513d6ec995f391f2c747197c108b7f9088684 (patch)
tree8c9e1a34b2cef31fca7b0821d38edd58b48f8cc5
parentf79bdee20cacc521d7ec3a8720a43087b47326d6 (diff)
downloadlinux-x86-6e0513d6ec995f391f2c747197c108b7f9088684.tar.gz
Don't use readlink to find gdb's location.
readlink isn't in POSIX, and the one available in on OS X does not support the -f option. Use $(cd $(dirname $0) && pwd) instead. Bug: http://b/24776250 Change-Id: Ie62274752f777e3dd152a7ed2946691a45b4e198
-rwxr-xr-xbin/gdb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gdb b/bin/gdb
index 85d1900..d560b97 100755
--- a/bin/gdb
+++ b/bin/gdb
@@ -1,3 +1,3 @@
#!/bin/bash
-GDBDIR=$(dirname $(readlink -f $0))
+GDBDIR=$(cd $(dirname $0) && pwd)
PYTHONHOME="$GDBDIR/.." "$GDBDIR/gdb-orig" "$@"