Index: build/gdb-add-index |
diff --git a/build/gdb-add-index b/build/gdb-add-index |
index fa3e7265589b8f6c084b7fffc7ccf7d200788310..4975532213bc199d437c342b1696e00bcc721520 100755 |
--- a/build/gdb-add-index |
+++ b/build/gdb-add-index |
@@ -28,7 +28,7 @@ trap "{ echo -n Removing temp directory $DIRECTORY...; |
# Grab all the chromium shared library files. |
so_files=$(ldd "$FILENAME" 2>/dev/null \ |
- | grep $(pwd) \ |
+ | grep $(dirname "$FILENAME") \ |
| sed "s/.*[ \t]\(.*\) (.*/\1/") |
# Add index to binary and the shared library dependencies. |