Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Issue with register view for a multicore heterogeneous system

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On Behalf Of pvuser pvuser
> Sent: Monday, January 13, 2014 1:51 PM
> To: cdt-dev@xxxxxxxxxxx
> Subject: Re: [cdt-dev] Issue with register view for a multicore
> heterogeneous system
> 
> 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=[]

Looks like you don't support
  -list-thread-groups --available
which probably will mean you won't see the name of the processes in the Debug view,
but I think things should still work.

> (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?

It is hard to tell from this, but one thing maybe is that you should probably
run in non-stop mode.

> Any suggestion is welcomed.

I would recommend trying out a multi-process session on Linux
and comparing the behavior of GDB with yours:
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_use_multi-process_debugging.3F

Marc



Back to the top