summaryrefslogtreecommitdiff
path: root/tests/manual/trk/README
blob: f8b12329459d0ee12767e77b221dfb8af2045773 (plain)
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
45
46
47
Run ./run.sh  in one terminal.
Run ./welsh-gdb or ./symbianelf-gdb in a second terminal.
Note that welsh-gdb does not handle 'set remote noack-packet on'

The following items "work":

- "stop" at E32Main
- manual relocation on the gdb side using
  add-symbol-file filebrowseapp.sym 0x786A4000
- disassembly at stopped location
- p <functionname>
- p $pc
- one level of 'bt'

To do:

- figure out why the result of the qOffsets query is not honoured
  _or_ how to have gdb doing the relocation automatically
- setting breakpoints by filename:line
- signaling of stopped/single step end. SIGTRAP? SIGSTOP?
- run it against the red brick


Setting up TRK on Linux with Bluetooth 

Enter the following commands in a terminal (all as root, adjust device
permissions as required to work as user):


sdptool add SP  # announce Serial Port Profile via Service Discovery Protocol
sudo mknod --mode=666 /dev/rfcomm0 c 216 0  # Creates a Bluetooth Serial Device

rfcomm listen /dev/rfcomm0 1 $PWD/trklauncher -v -f {}

#This should print the Trk/CPU versions. The option -f tells the command to
#disable the serial frames message encapsulation for BlueTooth.

#The same with the debug adapter:

rfcomm listen /dev/rfcomm0 1 $PWD/run.pl -af -av -w {}
rfcomm listen /dev/rfcomm0 1 $PWD/runner -af -av -w {}

#Important options: -w wait for adapter, -af omit serial frame.

cp /data5/dev/debugger/symbian-codesourcery-welsh/cs-gdb/build/gdb/gdb cs-gdb
cp /data5/dev/trk/filebrowseapp* .
cp /home/f*/dev/creator/tests/manual/trk/*.bin .