<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Are you using <span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">/usr/local/cross/mips32/bin/mipsel-linux-gnu-gdb ?</span><div class=""><div><blockquote type="cite" class=""><div class="">On 8 Nov 2016, at 11:37, Artur Finger <<a href="mailto:fingerartur@gmail.com" class="">fingerartur@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I'm getting this:<br class=""><div class=""><br class="">target remote localhost:3000<br class=""><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 class="">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 class=""></blockquote>(gdb) break frame_init<br class=""><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 class=""></blockquote>(gdb) c<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Continuing.<br class="">Warning:<br class="">Cannot insert breakpoint 1.<br class="">Cannot access memory at address 0x8000b150 <br class=""></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 class=""></blockquote><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 8 November 2016 at 08:04, Jan Hrach <span dir="ltr" class=""><<a href="mailto:jenda@yakumo.hrach.eu" target="_blank" class="">jenda@yakumo.hrach.eu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">$ msim -g 3000<br class="">
<br class="">
$ gdb (the mipsel version, of course)<br class="">
symbol-file kernel/kernel.raw<br class="">
set endian little<br class="">
target remote localhost:3000<br class="">
break frame_init<br class="">
c<br class="">
p npages<br class="">
<div class=""><div class="h5"><br class="">
<br class="">
On 8.11.2016 07:54, Artur Finger wrote:<br class="">
> 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 class="">
><br class="">
> Have a nice day,<br class="">
> Artur Finger<br class="">
><br class="">
><br class="">
</div></div>> ______________________________<wbr class="">_________________<br class="">
> OSy mailing list<br class="">
> <a href="mailto:OSy@d3s.mff.cuni.cz" class="">OSy@d3s.mff.cuni.cz</a><br class="">
> <a href="https://d3s.mff.cuni.cz/mailman/listinfo/osy" rel="noreferrer" target="_blank" class="">https://d3s.mff.cuni.cz/<wbr class="">mailman/listinfo/osy</a><br class="">
><br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
<br class="">
--<br class="">
Jan Hrach | <a href="https://jenda.hrach.eu/" rel="noreferrer" target="_blank" class="">https://jenda.hrach.eu/</a><br class="">
GPG CD98 5440 4372 0C6D 164D A24D F019 2F8E 6527 282E<br class="">
<br class="">
______________________________<wbr class="">_________________<br class="">
OSy mailing list<br class="">
<a href="mailto:OSy@d3s.mff.cuni.cz" class="">OSy@d3s.mff.cuni.cz</a><br class="">
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/osy" rel="noreferrer" target="_blank" class="">https://d3s.mff.cuni.cz/<wbr class="">mailman/listinfo/osy</a><br class="">
</font></span></blockquote></div><br class=""></div>
_______________________________________________<br class="">OSy mailing list<br class=""><a href="mailto:OSy@d3s.mff.cuni.cz" class="">OSy@d3s.mff.cuni.cz</a><br class="">https://d3s.mff.cuni.cz/mailman/listinfo/osy<br class=""></div></blockquote></div><br class=""></div></body></html>