-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhwSymbols
executable file
·44 lines (36 loc) · 1.04 KB
/
hwSymbols
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#/bin/bash
hwBase=~/Projects/ATV2/HelloWorld_ATVBlack/
applianceName=HW
address=0x14a5000
usage ()
{
echo " "
echo "usage: hwSymbols <address>"
echo " "
echo "Symbolicate HW.frappliance crash lines."
echo " "
echo " "
echo "EXAMPLE"
echo " "
echo " 10 HW 0x014a61e0 0x14a5000 + 4576"
echo " 11 HW 0x014a607e 0x14a5000 + 4222"
echo " "
echo ""
echo "% hwSymbols 0x014a61e0"
echo " "
echo "+[HWAppliance forceCrash] (in HW) (HWAppliance.mm:80)"
echo ""
echo "---------"
echo ""
echo "Input Error: You must a numeric address to symbolicate"
echo " "
}
# if there aren't two arguments display usage and exit
if [ $# != 1 ]; then
usage
exit
fi
cd $hwBase"/build/Debug-iphoneos"
#echo cd $hwBase"/build/Debug-iphoneos"
atos -o HW.frappliance/HW -arch arm -l $address $1
#echo "atos -o HW.frappliance/HW -arch arm -l $address $1"