Without this, gdb-add-index incorrectly skips DSO dependencies if running from a symlink. $(pwd) returns the path to your directory via the symlink, but ldd returns the "realpath". Using dirname allows you to match a substring of the path returned by ldd.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/10913264
git-svn-id: http://src.chromium.org/svn/trunk/src/build@156968 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
For linux users who are going to debug chromium, running gdb-add-index
on the binary first will significantly speed up debugger start time.
The originating RPM is gdb-7.4.50.20120603-1.1.x86_64.rpm. The script is
just a bash script version of the instructions in the gdb man page.
BUG=none
TEST=ran it on a statically linked browser_tests locally. verfied .gdb_index section exists
and that gdb does startup faster (from ~20 secs to ~3 seconds)
Review URL: https://chromiumcodereview.appspot.com/10695024
git-svn-id: http://src.chromium.org/svn/trunk/src/build@144644 4ff67af0-8c30-449e-8e8b-ad334ec8d88c