<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 16, 2016 at 11:12 AM, Jan Vrany <span dir="ltr">&lt;<a href="mailto:jan.vrany@fit.cvut.cz" target="_blank">jan.vrany@fit.cvut.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, <br>
<span class=""><br>
&gt; [Inferior 1 (process 1358) exited with code 01]<br>
<br>
</span>when no inferior is running, obviously you cannot let it<br>
to execute arbitrary code. <br>
<br>
I suggest you put a breakpoint to exit() to see why the <br>
inferior exited. <br></blockquote><div><br></div><div>You rock!</div><div><br></div><div>Doing a `break _exit` did work.</div><div>Thanks. I can even now understand the crash. </div><div>Time to see how to fix it.</div><div><br></div><div>Thanks!!!!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Another thing is that - I assume - spawn new processes out<br>
of the VM. In that case, you may want to read GDB documentation<br>
on debugging multiple inferiors at time. <br>
<br>
HTH, Jan<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, 2016-01-16 at 11:05 -0300, Mariano Martinez Peck wrote:<br>
&gt;  <br>
&gt; Hi guys,<br>
&gt;<br>
&gt; I build a Spur VM for debug, I tried to run an image that is crashing<br>
&gt; me on startup but all I get from gdb is:<br>
&gt;<br>
&gt; [Inferior 1 (process 1358) exited with code 01]<br>
&gt; (gdb) call printAllStacks()<br>
&gt; You can&#39;t do that without a process to debug.<br>
&gt;<br>
&gt; mmm I was always able to see stack traces. No I cannot do anything.<br>
&gt;<br>
&gt; Any ideas what could be wrong? I have no clue why it is failing at<br>
&gt; startup and I need to know it. <br>
&gt;<br>
&gt; Thanks in advance, <br>
&gt;<br>
&gt; -- <br>
&gt; Mariano<br>
&gt; <a href="http://marianopeck.wordpress.com" rel="noreferrer" target="_blank">http://marianopeck.wordpress.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>