<div>@Mulyadi Santosa <br></div><div><br></div><div>several sources on the net suggested that interactive debuggers on the kernel are a bad thing so I pushed it down on the todo kernel-skill stack so I dont yet know how to use qemu's gdb with the kernel</div>
<div><br></div><div>Good news is I found the error (not me the folks at batman's irc channel did) the </div><div><br></div><div>memcpy(tvlv+sizeof(struct shortTvlv),value,length*sizeof(uint8_t)); needs to be</div><div>
memcpy((char *)tvlv+sizeof(struct shortTvlv),value,length*sizeof(uint8_t));</div><div><br></div><div>thanks for the assist everyone and if you have any good tutorials on qemu + kernel +gdb i'll be thankfull</div><div>
<br></div><br><div class="gmail_quote">On Fri, Jun 22, 2012 at 7:49 PM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi...<br>
<div class="im"><br>
On Fri, Jun 22, 2012 at 11:27 PM, NorthPole <<a href="mailto:morfeas3000@gmail.com">morfeas3000@gmail.com</a>> wrote:<br>
> Hi...<br>
><br>
> The virtual machine is supposed to run on 128 mb ram and according to the<br>
> batman folks its more than enough<br>
><br>
> How can I force a backtrace?<br>
<br>
</div>When it hangs, AFAIK in gdb, press ctrl-c...it will get you back to<br>
gdb prompt ... then type "bt" and Enter.<br>
<br>
I assume you use gdb that is hooked into qemu's gdb stub, right?<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
</div></div></blockquote></div><br>