diff options
author | Josh Gao <jmgao@google.com> | 2015-10-13 17:12:17 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2015-10-13 17:12:17 -0700 |
commit | 6e0513d6ec995f391f2c747197c108b7f9088684 (patch) | |
tree | 8c9e1a34b2cef31fca7b0821d38edd58b48f8cc5 /bin | |
parent | f79bdee20cacc521d7ec3a8720a43087b47326d6 (diff) | |
download | linux-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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gdb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,3 +1,3 @@ #!/bin/bash -GDBDIR=$(dirname $(readlink -f $0)) +GDBDIR=$(cd $(dirname $0) && pwd) PYTHONHOME="$GDBDIR/.." "$GDBDIR/gdb-orig" "$@" |