esim@adapteva-dev:~/esdk-submodule/builds/bd-x86_64-master$ ./gdb/gdb ./e_prime.elf -ex "set non-stop" -ex "target extended-remote 192.168.0.110:51000" -ex "attach 1" GNU gdb (Epiphany toolchain master) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=epiphany-elf". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./e_prime.elf...done. Remote debugging using 192.168.0.110:51000 Attaching to program: /home/esim/esdk-submodule/builds/bd-x86_64-master/e_prime.elf, process 1 [New Thread 1.101] [New Thread 1.102] [New Thread 1.103] [New Thread 1.104] [New Thread 1.201] [New Thread 1.202] [New Thread 1.203] [New Thread 1.204] [New Thread 1.301] [New Thread 1.302] [New Thread 1.303] [New Thread 1.304] [New Thread 1.401] [New Thread 1.402] [New Thread 1.403] [New Thread 1.404] 0x000021dc in __umodsi3 () (gdb) Thread 2 stopped. 0x000020a6 in is_prime (number=27818789) at src/isprime.c:28 28 src/isprime.c: No such file or directory. Thread 3 stopped. 0x000021ca in __umodsi3 () Thread 4 stopped. 0x0000223a in __umodsi3 () Thread 5 stopped. 0x000020a2 in is_prime (number=27819947) at src/isprime.c:28 28 in src/isprime.c Thread 6 stopped. 0x00002110 in __umodsi3 () Thread 7 stopped. 0x00002214 in __umodsi3 () Thread 8 stopped. __ieee754_sqrt (x=) at /home/esim/esdk-submodule/unisrc-master/newlib/libm/math/e_sqrt.c:152 152 ix0 += ix0 + ((ix1&sign)>>31); Thread 9 stopped. 0x00002234 in __umodsi3 () Thread 10 stopped. 0x00002214 in __umodsi3 () Thread 11 stopped. 0x00002212 in __umodsi3 () Thread 12 stopped. 0x00002214 in __umodsi3 () Thread 13 stopped. 0x00002140 in __umodsi3 () Thread 14 stopped. 0x00002232 in __umodsi3 () Thread 15 stopped. 0x00002140 in __umodsi3 () Thread 16 stopped. __ieee754_sqrt (x=) at /home/esim/esdk-submodule/unisrc-master/newlib/libm/math/e_sqrt.c:146 146 t = s0+r; (gdb) b 59 Breakpoint 1 at 0x1d94: file src/e_prime.c, line 59. (gdb) delete breakpoints Delete all breakpoints? (y or n) y (gdb) b 59 thread 8 Breakpoint 2 at 0x1d94: file src/e_prime.c, line 59. (gdb) c -a Continuing. Thread 8 hit Breakpoint 2, main () at src/e_prime.c:64 64 in src/e_prime.c (gdb) info threads Id Target Id Frame * 1 Thread 1.101 (Core: 0000: halted, interruptible) (running) 2 Thread 1.102 (Core: 0001: halted, interruptible) (running) 3 Thread 1.103 (Core: 0002: halted, interruptible) (running) 4 Thread 1.104 (Core: 0003: halted, interruptible) (running) 5 Thread 1.201 (Core: 0100: halted, interruptible) (running) 6 Thread 1.202 (Core: 0101: halted, interruptible) (running) 7 Thread 1.203 (Core: 0102: halted, interruptible) (running) 8 Thread 1.204 (Core: 0103: halted, interruptible) main () at src/e_prime.c:64 9 Thread 1.301 (Core: 0200: halted, interruptible) (running) 10 Thread 1.302 (Core: 0201: halted, interruptible) (running) 11 Thread 1.303 (Core: 0202: halted, interruptible) (running) 12 Thread 1.304 (Core: 0203: halted, interruptible) (running) 13 Thread 1.401 (Core: 0300: halted, interruptible) (running) 14 Thread 1.402 (Core: 0301: halted, interruptible) (running) 15 Thread 1.403 (Core: 0302: halted, interruptible) (running) 16 Thread 1.404 (Core: 0303: halted, interruptible) (running) (gdb) interrupt -a /home/esim/esdk-submodule/unisrc-master/gdb/infrun.c:5565: internal-error: int finish_step_over(execution_control_state*): Assertion `ecs->event_thread->control.trap_expected' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n)