Comments (1)
Things improve with this patch:
adapteva/epiphany-binutils-gdb@3bcc59a
I can now set a breakpoint on a thread, continue, wait for the breakpoint to hit, continue... that works.
But when I issue "interrupt -a" when a thread with a breakpoint is running this assertion fails
gdb/gdb/infrun.c:2402: internal-error: void resume(gdb_signal): Assertion `!tp->stop_requested' failed.
$ ./gdb/gdb ./e_prime.elf -ex "set non-stop on" -ex "set target-async on" -ex "target extended-remote 192.168.0.110:51000" -ex "attach 1 &"
Reading symbols from ./e_prime.elf...done.
Remote debugging using 192.168.0.110:51000
Attaching to program: /tmp/gdb/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]
(gdb) b sqrt thread 8
Breakpoint 1 at 0x11c
(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) (running)
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)
Thread 8 hit Breakpoint 1, 0x0000011c in sqrt ()
interrupt -a
(gdb)
Thread 4 stopped.
0x00000124 in sqrt ()
Thread 12 stopped.
0x0000011c in sqrt ()
Thread 11 stopped.
0x00000120 in sqrt ()
Thread 10 stopped.
0x00000120 in sqrt ()
Thread 13 stopped.
0x0000011c in sqrt ()
Thread 9 stopped.
0x0000011c in sqrt ()
Thread 7 stopped.
0x00000224 in __ieee754_sqrt ()
Thread 14 stopped.
0x00000224 in __ieee754_sqrt ()
Thread 6 stopped.
0x00000122 in sqrt ()
Thread 5 stopped.
0x0000011c in sqrt ()
Thread 15 stopped.
0x0000011c in sqrt ()
Thread 3 stopped.
0x00000124 in sqrt ()
Thread 2 stopped.
0x0000011c in sqrt ()
Thread 16 stopped.
0x0000011c in sqrt ()
Thread 1 stopped.
0x00000120 in sqrt ()
c -a &
Continuing.
(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) (running)
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)
Thread 8 hit Breakpoint 1, 0x0000011c in sqrt ()
c -a &
Continuing.
[this interrupt issued immediately after continue ]
(gdb) interrupt -a
(gdb)
Thread 14 stopped.
0x0000024e in __ieee754_sqrt ()
Thread 13 stopped.
0x0000023c in __ieee754_sqrt ()
/home/esim/esdk-submodule/gdb/gdb/infrun.c:2402: internal-error: void resume(gdb_signal): Assertion `!tp->stop_requested' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
from epiphany-sdk.
Related Issues (20)
- simulator build fails with multiple defined symbols on Fedora 22 for 2015.1 HOT 7
- pull requests failing when cloning gnu tools HOT 4
- Multicore Epiphany simulator fails to build Fedora 22 / gcc (3.4 or 5.1.1) HOT 3
- the p[i] operand miss calculates the struct size HOT 2
- epiphany-examples: cpu/complex_numbers: Fails w/ devel branch + master toolchain HOT 1
- GCC emits superfluous movt r#, 0x0 instructions
- ESYS mmap failure. HOT 2
- -msmall16 not compatible with e_read() / e_write() SDK 2015.1
- unable to build ESDK 2016.3.1 for x86_64 (distro: Fedora Core 23) HOT 2
- gdb: Build with expat support HOT 2
- Should the `loader_cfg` section in Epiphany ELFs have its `ALLOC` flag set? HOT 2
- gcc: conjf suboptimal
- Build Error, multiple definitions of 'xmalloc'
- Workaround to install SDK on Mint (Ubuntu based) but without gdb. HOT 2
- e-as (epiphany.cpu): mov rd,#imm16 discrepancy w/ isa documentation
- Epiphany-sdk on Freebsd HOT 4
- epiphany-libs: e-server: Regs r50-r62 aliases to r25-r37
- Error on building ESDK 2016.11 on ubuntu 16.04 HOT 2
- Freshly build gcc5 and gcc8 eSDK download HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epiphany-sdk.