I received a Ci40 and installed the latest OpenWRT image on the board 0.10.4.
I also downloaded the OpenWrt-Toolchain-0.10.4-pistachio-marduk_gcc-5.3.0_musl-1.1.14.Linux-x86_64 onto my Linux Ubuntu 14.04 build machine.
Problem: I tried to build Gnu gdb 7.12 from gdb source using the toolkit mentioned above. I was able to successfully link gdb, but gdb crashes when started on the Ci40 - see output below.
Question 1) Have you built gdb using musl for the Ci40?
Question 2) Have you had success running the gdb mentioned in (1), and are there any exotic options to set during build?
do_page_fault(): sending SIGSEGV to gdb for invalid read access from 00000050
[28703.414832] epc = 0056ac94 in gdb[400000+5b3000]
[28703.420032] ra = 0056ac88 in gdb[400000+5b3000]
Segmentation fault (core dumped)
Thanks for any info you can provide.