-
Notifications
You must be signed in to change notification settings - Fork 11
Development
mfrey edited this page Sep 15, 2014
·
3 revisions
If you want to debug libARA on the testbed you have to set up a ssh tunnel on uhu. First you have to run the gdbserver on the target (e.g. t9-203):
t9-203:~# gdbserver t9-203:2222 ./TestbedDaemon t9-203.conf
Second, you have to set up the gdbserver on your local host, e.g.
michael@prefect:~$ ssh -L 4000:t9-203:2222 mfrey@uhu.imp.fu-berlin.de
You should now be able to debug the daemon on a testbed router. For example
michael@prefect:~$ gdb
(gdb) target remote localhost:4000
So far, we haven't introduced it into the build process, but it is possible to use the address sanitizer for libARA, e.g.
michael@prefect:~$ LINKFLAGS="-lasan" CFLAGS="-O1 -fsanitize=address
-fno-omit-frame-pointer -fno-optimize-sibling-calls" make testbedARA