<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      I'm planning to upstream the Windows Python API changes now. <br>
      <br>
      This has been done by completely rewriting the shell scripts used
      for the API generation in Python so that it's portable across
      different platforms. We have tested it on both Windows and Linux
      successfully. <br>
      <br>
      I have added a new CMake variable
      "LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION", to control if
      the new Python scripts for managing SWIG generating the API are
      enabled or not. This is disabled by default to not impact other
      platforms. This variable can be removed once we move all the
      platforms to the Python scripts from the shell scripts. There's
      some cleanup to be done, which I'll be working on.<br>
      <br>
      Please let me know if there are any issues or comments.<br>
      <br>
      Thanks,<br>
      Deepak<br>
      <br>
      On 24/06/14 12:23, Deepak Panickal wrote:<br>
    </div>
    <blockquote cite="mid:53A95F97.5000101@codeplay.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Yes, it was compiling with MSVC 2013.
        It hasn't been updated though since the review was submitted.<br>
        We're working on it now, so should be fixed to current tip and
        upstreamed soon.<br>
        <br>
        Thanks,<br>
        Deepak<br>
        <br>
        On 24/06/14 01:24, Zachary Turner wrote:<br>
      </div>
      <blockquote
cite="mid:CAAErz9hJFFUcMd3bCEfpw806SXV=kMScmj9gVmA5YKXE=C=7eA@mail.gmail.com"
        type="cite">
        <div dir="ltr">By the way, does this compile with MSVC 2013?
           Many of the changes I had to make to get things compiling
          don't seem to be present in this patch.</div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote"> On Mon, Jun 23, 2014 at 5:16 PM,
            Zachary Turner <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:zturner@google.com"
                target="_blank">zturner@google.com</a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="ltr">Interesting.  I had already made some
                progress towards this in my own branch, so I'll have a
                look.
                <div><br>
                </div>
                <div>BTW, I'm not sure what your solution was regarding
                  the missing python modules, but the pexpect one in
                  particualr is pretty trivial to fix.  Just change it
                  to subprocess.run() and remove the import of pexpect.</div>
              </div>
              <div class="HOEnZb">
                <div class="h5">
                  <div class="gmail_extra"><br>
                    <br>
                    <div class="gmail_quote">On Mon, Jun 23, 2014 at
                      5:09 PM, Deepak Panickal <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:deepak@codeplay.com"
                          target="_blank">deepak@codeplay.com</a>></span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div text="#000000" bgcolor="#FFFFFF">
                          <div>We have already ported the lldb.py
                            generating scripts to Python for portability
                            and got the API working in Windows and
                            Linux.<br>
                            We can load an ELF file, dump symbols, do
                            remote debugging etc.<br>
                            This work has been put into review sometime
                            ago, so might need some updation.<br>
                            <br>
                            <a moz-do-not-send="true"
                              href="http://llvm-reviews.chandlerc.com/D2980"
                              target="_blank">http://reviews.llvm.org/D2980</a><br>
                            <br>
                            We're planning to fix it up quite soon to
                            match with the current tip.<br>
                            <br>
                            Thanks,<br>
                            Deepak
                            <div>
                              <div><br>
                                <br>
                                On 23/06/2014 22:09, Zachary Turner
                                wrote:<br>
                              </div>
                            </div>
                          </div>
                          <div>
                            <div>
                              <blockquote type="cite">
                                <div dir="ltr">I'm already volunteering,
                                  just want to make sure it's ok before
                                  I do the work :)
                                  <div><br>
                                  </div>
                                  <div>That being said, Greg mentions in
                                    an earlier message that it might not
                                    be possible because we wish to
                                    support a Python-less build.   Who
                                    uses this out of curiosity?  I don't
                                    think any Windows developers mind
                                    installing Python as a requirement.
                                     It's also mentioned on the Building
                                    LLDB page (<a moz-do-not-send="true"
href="http://lldb.llvm.org/build.html" target="_blank">http://lldb.llvm.org/build.html</a>)
                                    that Python is a dependency</div>
                                </div>
                                <div class="gmail_extra"><br>
                                  <br>
                                  <div class="gmail_quote">On Mon, Jun
                                    23, 2014 at 2:07 PM, Todd Fiala <span
                                      dir="ltr"><<a
                                        moz-do-not-send="true"
                                        href="mailto:tfiala@google.com"
                                        target="_blank">tfiala@google.com</a>></span>
                                    wrote:<br>
                                    <blockquote class="gmail_quote"
                                      style="margin:0 0 0
                                      .8ex;border-left:1px #ccc
                                      solid;padding-left:1ex">
                                      <div dir="ltr">You can volunteer
                                        to write it more portably ;-)</div>
                                      <div class="gmail_extra">
                                        <div>
                                          <div><br>
                                            <br>
                                            <div class="gmail_quote">On
                                              Mon, Jun 23, 2014 at 1:55
                                              PM, Zachary Turner <span
                                                dir="ltr"><<a
                                                  moz-do-not-send="true"
href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span>
                                              wrote:<br>
                                              <blockquote
                                                class="gmail_quote"
                                                style="margin:0 0 0
                                                .8ex;border-left:1px
                                                #ccc
                                                solid;padding-left:1ex">
                                                <div dir="ltr">Hmm, a
                                                  shell script.  kind of
                                                  a non-starter for
                                                  Windows.  Any reason
                                                  this can't be a python
                                                  script?</div>
                                                <div>
                                                  <div>
                                                    <div
                                                      class="gmail_extra"><br>
                                                      <br>
                                                      <div
                                                        class="gmail_quote">On

                                                        Mon, Jun 23,
                                                        2014 at 1:52 PM,
                                                        Greg Clayton <span
                                                          dir="ltr"><<a
moz-do-not-send="true" href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span>
                                                        wrote:<br>
                                                        <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0

                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">It

                                                          is generated
                                                          by running
                                                          swig with many
                                                          options. See:<br>
                                                          <br>
lldb/scripts/build-swig-wrapper-classes.sh<br>
                                                          <div><br>
                                                          <br>
                                                          <br>
                                                          > On Jun
                                                          23, 2014, at
                                                          1:41 PM,
                                                          Zachary Turner
                                                          <<a
                                                          moz-do-not-send="true"
href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>>


                                                          wrote:<br>
                                                          ><br>
                                                          > I'm
                                                          trying to get
                                                          the test suite
                                                          into a working
                                                          state on
                                                          windows, or at
                                                          the very least
                                                          get it to the
                                                          point where it
                                                          fails by
                                                          saying that
                                                          none of the
                                                          tests are
                                                          supported on
                                                          this platform.
                                                           I seem to be
                                                          missing this
                                                          file lldb.py
                                                          though.  Is it
                                                          supposed to be
                                                          in the tree,
                                                          or is it
                                                          generated
                                                          somehow?<br>
                                                          </div>
                                                          >
                                                          _______________________________________________<br>
                                                          > lldb-dev
                                                          mailing list<br>
                                                          > <a
                                                          moz-do-not-send="true"
href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
                                                          > <a
                                                          moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev"
                                                          target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
                                                          <br>
                                                        </blockquote>
                                                      </div>
                                                      <br>
                                                    </div>
                                                  </div>
                                                </div>
                                                <br>
_______________________________________________<br>
                                                lldb-dev mailing list<br>
                                                <a
                                                  moz-do-not-send="true"
href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
                                                <a
                                                  moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev"
                                                  target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
                                                <br>
                                              </blockquote>
                                            </div>
                                            <br>
                                            <br clear="all">
                                            <div><br>
                                            </div>
                                          </div>
                                        </div>
                                        <span><font color="#888888">-- <br>
                                            <div dir="ltr">
                                              <table cellpadding="0"
                                                cellspacing="0">
                                                <tbody>
                                                  <tr
                                                    style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
                                                    <td
style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px"
                                                      nowrap="nowrap">Todd

                                                      Fiala |</td>
                                                    <td
style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"
                                                      nowrap="nowrap"> Software

                                                      Engineer |</td>
                                                    <td
style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"
                                                      nowrap="nowrap"> <a
moz-do-not-send="true" href="mailto:tfiala@google.com"
                                                        style="color:rgb(17,85,204)"
                                                        target="_blank"><span
                                                          style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial

                                                          initial">tfiala@google.com</span></a> |</td>
                                                    <td
style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"
                                                      nowrap="nowrap"><font
                                                        color="#1155cc"> <a
moz-do-not-send="true">650-943-3180</a></font></td>
                                                  </tr>
                                                </tbody>
                                              </table>
                                              <br>
                                            </div>
                                          </font></span></div>
                                    </blockquote>
                                  </div>
                                  <br>
                                </div>
                                <br>
                                <fieldset></fieldset>
                                <br>
                                <pre>_______________________________________________
lldb-dev mailing list
<a moz-do-not-send="true" href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a>
<a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
                              </blockquote>
                              <br>
                            </div>
                          </div>
                        </div>
                        <br>
                        _______________________________________________<br>
                        lldb-dev mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:lldb-dev@cs.uiuc.edu"
                          target="_blank">lldb-dev@cs.uiuc.edu</a><br>
                        <a moz-do-not-send="true"
                          href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev"
                          target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>