Hi,
Thanks for your replay. We use thread-groups as you suggested but encountered some problems.
The debug view is not properly updated when using multiple
processes (thread-groups). We need 2 thread-groups (2 processes). The second
process is not displayed in the Debug View.
This is how part of the gdb trace looks like:
26-exec-run --thread-group i1
=thread-group-started,id="i1",pid="5086"
=thread-created,id="8",group-id="i1"
=thread-group-added,id="i2"
=thread-group-started,id="i2",pid="5090"
27-list-thread-groups --available
=thread-created,id="0",group-id="i2"
26^running
(gdb)
*running,thread-id="all"
28-list-thread-groups
27^done, groups=[]
(gdb)
28^done,groups=[{id="i1",type="process",pid="5086",executable=test.elf]},{id="i2",type="process",pid="5090",executable=test1.elf]}]
(gdb)
29-list-thread-groups
29^done,groups=[{id="i1",type="process",pid="5086",executable=test.elf]},{id="i2",type="process",pid="5090",executable=test1.elf]}]
(gdb)
30-list-thread-groups i1
30^done,threads=[{id="8",thread-id="Thread
1",frame={addr="0xF01015B8",func="main",args=[],file="../main.c",fullname="test.c",line="26"},state="stopped"}]
(gdb)
31-list-thread-groups i2
32-stack-info-depth --thread 8 11
31^done,threads=[{id="0",thread-id="Thread
2",frame={addr="0x0",func="func1",args=[],file="../test2.c",fullname="test2.c",line="7"},state="stopped"}]
(gdb)
32^done,depth="3"
(gdb)
33-stack-list-frames --thread 8
…
34-thread-info
8
We don’t
know what we are doing wrong. We must somehow tell Eclipse that we want a multi-process debug session?
Any suggestion is welcomed.
Thank
you.