On 02/01/2017 02:04 AM, Stafford Horne wrote:
For kernel builds I have created toolchain binaries here:
http://shorne.noip.me/crosstool/files/bin/x86_64/5.4.0/
These should work.
This gdb crashes on the first "stepi" that I issue. To reproduce,
$ cat z.c
int main() { return 0; }
$ or1k-musl-linux-gcc -g z.c
$ qemu-or32 -g 10001 ./a.out
// another window
$ or1k-musl-linux-gdb ./a.out
(gdb) target remote localhost:10001
// should see that the pc is at _start
(gdb) stepi
// crash
I won't be able to debug this myself until I can build my own gdb.
r~