1:1 source port of the engine and game code; Windows build and system layer; docs. No game files or SDK headers.
This commit is contained in:
parent
c3b032a45a
commit
0ecb47e9cb
3871 changed files with 91080 additions and 1640063 deletions
12
tools/port/sym.sh
Normal file
12
tools/port/sym.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
# usage: tools/port/sym.sh rva... (hex) -- symbolize the rvas printed by the crash logger in the Windows build.
|
||||
# Needs llvm-symbolizer on PATH (llvm-mingw bin) or $LLVM_MINGW_ROOT.
|
||||
here="$(cd "$(dirname "$0")" && pwd)"
|
||||
exe="$here/../../port/build-win/bin/choc3port.exe"
|
||||
sym=llvm-symbolizer
|
||||
[ -n "$LLVM_MINGW_ROOT" ] && sym="$LLVM_MINGW_ROOT/bin/llvm-symbolizer"
|
||||
for a in "$@"; do
|
||||
printf "%s " "$a"
|
||||
"$sym" --obj="$exe" 0x$(printf %x $((0x400000+16#$a-1))) -C -f | tr '\n' ' '
|
||||
echo
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue