<div dir="ltr">Thanks a lot, this helped. (I wasn't). I falsely assumed that "gdb" on @uniform would be set to this correct path by default. Indeed it was not.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 November 2016 at 11:40, Adam Hornáček <span dir="ltr"><<a href="mailto:ado.hornacek@gmail.com" target="_blank">ado.hornacek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Are you using <span style="font-family:Menlo;font-size:11px;background-color:rgb(255,255,255)">/usr/local/cross/mips32/<wbr>bin/mipsel-linux-gnu-gdb ?</span><div><div class="h5"><div><div><blockquote type="cite"><div>On 8 Nov 2016, at 11:37, Artur Finger <<a href="mailto:fingerartur@gmail.com" target="_blank">fingerartur@gmail.com</a>> wrote:</div><br class="m_4749518395187414418Apple-interchange-newline"><div><div dir="ltr">I'm getting this:<br><div><br>target remote localhost:3000<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">warning: No executable has been specified and target does not support<br>determining executable automatically.  Try using the "file" command. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">0x00000000 in ?? ()<br></blockquote>(gdb) break frame_init<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Breakpoint 1 at 0x8000b150: file mm/falloc.c, line 100.<br></blockquote>(gdb) c<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Continuing.<br>Warning:<br>Cannot insert breakpoint 1.<br>Cannot access memory at address 0x8000b150 <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Command aborted.<br></blockquote><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 November 2016 at 08:04, Jan Hrach <span dir="ltr"><<a href="mailto:jenda@yakumo.hrach.eu" target="_blank">jenda@yakumo.hrach.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">$ msim -g 3000<br>
<br>
$ gdb  Â (the mipsel version, of course)<br>
symbol-file kernel/kernel.raw<br>
set endian little<br>
target remote localhost:3000<br>
break frame_init<br>
c<br>
p npages<br>
<div><div class="m_4749518395187414418h5"><br>
<br>
On 8.11.2016 07:54, Artur Finger wrote:<br>
> Hello, could you please give me a simple example of how to debug function frame_init() (in mm/falloc.c) with gdb? (eg. look at the value of variable A in frame_init())<br>
><br>
> Have a nice day,<br>
> Artur Finger<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> OSy mailing list<br>
> <a href="mailto:OSy@d3s.mff.cuni.cz" target="_blank">OSy@d3s.mff.cuni.cz</a><br>
> <a href="https://d3s.mff.cuni.cz/mailman/listinfo/osy" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailma<wbr>n/listinfo/osy</a><br>
><br>
<span class="m_4749518395187414418HOEnZb"><font color="#888888"><br>
<br>
--<br>
Jan Hrach | <a href="https://jenda.hrach.eu/" rel="noreferrer" target="_blank">https://jenda.hrach.eu/</a><br>
GPG CD98 5440 4372 0C6D 164D A24D F019 2F8E 6527 282E<br>
<br>
______________________________<wbr>_________________<br>
OSy mailing list<br>
<a href="mailto:OSy@d3s.mff.cuni.cz" target="_blank">OSy@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/osy" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailma<wbr>n/listinfo/osy</a><br>
</font></span></blockquote></div><br></div>
______________________________<wbr>_________________<br>OSy mailing list<br><a href="mailto:OSy@d3s.mff.cuni.cz" target="_blank">OSy@d3s.mff.cuni.cz</a><br><a href="https://d3s.mff.cuni.cz/mailman/listinfo/osy" target="_blank">https://d3s.mff.cuni.cz/<wbr>mailman/listinfo/osy</a><br></div></blockquote></div><br></div></div></div></div><br>______________________________<wbr>_________________<br>
OSy mailing list<br>
<a href="mailto:OSy@d3s.mff.cuni.cz">OSy@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/osy" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/<wbr>mailman/listinfo/osy</a><br>
<br></blockquote></div><br></div>