Created
May 11, 2019 20:33
-
-
Save ygit/eebe1ac58988d21e569fcf6156701271 to your computer and use it in GitHub Desktop.
A xcrun bash script to demangle symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE=$1 | |
ANOTHER_FILE=$2 | |
exec 4> "$ANOTHER_FILE" | |
while read -ru 3 LINE; do | |
line="$LINE" | |
linearray=($line) | |
echo ${linearray[2]} | |
xcrun c++filt "${linearray[2]}" >&4 | |
done 3< "$FILE" | |
# usage | |
#$ bash XcrunDemangleScript.sh mangledSymbolInput.txt output.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment