<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Good morning,<br>
    <br>
    I didn't try this in a while, but this is what I remember:<br>
    <br>
    1) $ make debugsim <br>
    This should build Barrelfish and start qemu and pop up a gdb prompt<br>
    <br>
    2) (gdb) debug_qemu<br>
    Which will point gdb to the symbol table (in that case the one for
    the kernel)<br>
    <br>
    3) (gdb) c <br>
    To start execution<br>
    <br>
    That being said, there are some limitations, the most severe one
    maybe being that qemu is not able to distinguish between different
    address spaces. This means, that if you set a breakpoint at a
    certain address (say a function), this breakpoint will be trigger
    even if a program in a another address space is executing something
    at the same address.<br>
    <br>
    Cheers,<br>
    &nbsp;Stefan<br>
    <br>
    <div class="moz-cite-prefix">On 02/28/2014 01:37 AM, Vishwas K.M.
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1393551457.72922.YahooMailNeo@web142405.mail.bf1.yahoo.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:10pt">
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Hello All,</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">I have
            recently stared working on BF OS and need assistance to
            understand the OS internals.</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">I am using
            "make sim" on x86_64 and it compiles and runs the BF till it
            reachs the fish prompt.</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Now to get
            into the BF internals I am trying to get the compiled BF
            code&nbsp;into a gdb session and start the run part so that I can
            get into each module and see the things.</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Please assist
            me a way out..</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Thanks,</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Vishwas K.M</span></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Barrelfish-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Barrelfish-users@lists.inf.ethz.ch">Barrelfish-users@lists.inf.ethz.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Stefan</pre>
  </body>
</html>