Thanks, it works now. <br>The only remaining thing is to think to run gdb in the child process directory. <br><br>/stephane<br><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 10:28 AM, Norman Feske <span dir="ltr"><<a href="mailto:norman.feske@...1...">norman.feske@...1...</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Stephane,<br>
<br>
I suspect that have you placed the 'wait_for_continue' call in a program<br>
that you started via init's 'config' file but attached gdb to core's<br>
PID? You'll need to attach gdb to the thread that executes<br>
'wait_for_continue'. Each Genode process is executed as a separate Linux<br>
process. If you want to debug a non-core process, attach gdb to the<br>
corresponding Linux thread ID. To find out about which threads there<br>
are, use 'ps -eLf' and look for thread names starting with "[Genode]".<br>
<br>
Best regards<br>
Norman<br>
<div><div></div><div class="h5"><br>
On 09/14/2010 09:45 AM, stephane frenot wrote:<br>
> Actually, it is not really working.<br>
><br>
> Everything works find, until I attach gdb to the process.<br>
><br>
> I am stucked to this:<br>
><br>
> (gdb) info thread<br>
> * 1 process 2370  pseudo_end ()<br>
>     at<br>
> /opt/genode/genode-r121/base-linux/../base-linux/src/platform/x86_64/lx_syscall.S:29<br>
><br>
> (gdb) info stack<br>
> #0  pseudo_end ()<br>
>     at<br>
> /opt/genode/genode-r121/base-linux/../base-linux/src/platform/x86_64/lx_syscall.S:29<br>
> #1  0x0000000001021442 in lx_nanosleep (this=0x103c400)<br>
>     at /opt/genode/genode-r121/base-linux/src/platform/linux_syscalls.h:371<br>
> #2  thread_stop_myself (this=0x103c400)<br>
>     at /opt/genode/genode-r121/base-linux/src/base/lock/lock_helper.h:70<br>
> #3  Genode::Cancelable_lock::lock (this=0x103c400)<br>
>     at /opt/genode/genode-r121/base/src/base/lock/lock.cc:137<br>
> #4  0x000000000101022e in Genode::Lock::lock (this=<value optimized out>)<br>
>     at /opt/genode/genode-r121/base/include/base/lock.h:35<br>
> #5  Genode::Platform::wait_for_exit (this=<value optimized out>)<br>
>     at /opt/genode/genode-r121/base-linux/src/core/platform.cc:50<br>
> #6  0x000000000100dfde in main ()<br>
>     at /opt/genode/genode-r121/base/src/core/main.cc:229<br>
><br>
> And I am not able to reach the line where I put "the wait_for_continue"<br>
> instruction.<br>
><br>
> /stephane<br>
<br>
</div></div><div class="im">------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing.<br>
</div><a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>
<div><div></div><div class="h5">_______________________________________________<br>
Genode-main mailing list<br>
<a href="mailto:Genode-main@lists.sourceforge.net">Genode-main@...12...ceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/genode-main" target="_blank">https://lists.sourceforge.net/lists/listinfo/genode-main</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://perso.citi.insa-lyon.fr/sfrenot">http://perso.citi.insa-lyon.fr/sfrenot</a><br>work here : <a href="http://tinyurl.com/2ts4xf">http://tinyurl.com/2ts4xf</a><br>
sleep here : <a href="http://tinyurl.com/33p2gt">http://tinyurl.com/33p2gt</a> <br>play here : <a href="http://tinyurl.com/3yarjz">http://tinyurl.com/3yarjz</a><br>---<br>Stephane Frenot<br>Université de Lyon, INRIA<br>INSA-Lyon, CITI, F-69621, France<br>