Skip to content
Ola Jeppsson edited this page Dec 9, 2016 · 17 revisions

e-server

(Work in progress)

Start e-server

Start e-server in one terminal.

$ e-server --multiprocess

Start a program

In a second terminal we start a host program:
Let's use e-prime from epiphany-examples for this tutorial.

$ cd ~/epiphany-examples/apps/e-prime
$ git pull
$ ./build.sh
$ EHAL_GDBSERVER=yes ./run.sh

gdb

In a third terminal, start gdb. You can either do this on your parallella or on your local computer if you have esdk-2016.11.x86_64 installed.

$ cd ~/epiphany-examples/apps/e-prime
$ ./build.sh
$ epiphany-elf-gdb e_prime.elf
(gdb) set mi-async
(gdb) set non-stop
(gdb) target extended-remote localhost:51000
(gdb) info os processes
(gdb) attach 1 # 1 is the default process
(gdb)interrupt -a
(gdb) info threads
(gdb) thread 7
(gdb) bt
(gdb) b is_prime
(gdb) c -a
(gdb) info locals
(gdb) info args

...