Re: [lldb-dev] LLDB Website

2019-05-07 Thread Tanya Lattner via lldb-dev
Ignore this. svn wasn’t actually updating the src tree. It works! I just need 
doxygen script to finish and it will be confirmed tonight.


-Tanya

> On May 6, 2019, at 11:55 PM, Tanya Lattner  wrote:
> 
> I’m not sure it is working. To clarify, nothing in LLVM should be compiled to 
> build the python docs correct? 
> 
> So I shouldn’t see this?
> Scanning dependencies of target liblldb_exports
> [  0%] Creating export file for liblldb
> [  0%] Built target liblldb_exports
> Scanning dependencies of target LLVMDemangle
> [  0%] Building CXX object 
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
> [  0%] Building CXX object 
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
> [  0%] Building CXX object 
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
> [  0%] Building CXX object 
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
> [  0%] Linking CXX static library ../libLLVMDemangle.a
> [  0%] Built target LLVMDemangle
> Scanning dependencies of target LLVMSupport
> [  0%] Building CXX object 
> lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o
> [  0%] Building CXX object 
> lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o
> [  0%] Building CXX object 
> lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
> [  0%] Building CXX object 
> lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
> [  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
> 
> Do I need any additional config options?
> 
> Thanks,
> Tanya
> 
>> On May 3, 2019, at 8:58 AM, Jonas Devlieghere > > wrote:
>> 
>> Hey Tanya,
>> 
>> It appears the website is still stuck. It hasn't picked up my changes from 
>> earlier this week. Please let me know if there's anything I can do to help.
>> 
>> Thanks,
>> Jonas
>> 
>> On Wed, May 1, 2019 at 10:40 PM Tanya Lattner > > wrote:
>> I will give this a shot. I did remove the changes before to prevent any 
>> issue.
>> 
>> -Tanya
>> 
>>> On Apr 29, 2019, at 10:26 AM, Jonas Devlieghere >> > wrote:
>>> 
>>> I've merged the aforementioned patch. 
>>> 
>>> Tanya, can you give generating the python docs another shot?
>>> 
>>> Thanks,
>>> Jonas
>>> 
>>> On Fri, Apr 26, 2019 at 4:29 PM Jonas Devlieghere >> > wrote:
>>> I've put up a patch to make it possible to generate the python reference 
>>> without building lldb at all: https://reviews.llvm.org/D61216 
>>> 
>>> 
>>> PS: The website isn't updating anymore, is that because of the python 
>>> reference generation?
>>> 
>>> On Wed, Apr 24, 2019 at 11:46 AM Ted Woodward >> > wrote:
>>> That's the issue - lldb-python-doc depends on liblldb. From 
>>> docs/CMakeLists.txt:
>>> 
>>> if(EPYDOC_EXECUTABLE)
>>>   find_program(DOT_EXECUTABLE dot)
>>> if(DOT_EXECUTABLE)
>>>   set(EPYDOC_OPTIONS ${EPYDOC_OPTIONS} --graph all --dotpath 
>>> ${DOT_EXECUTABLE})
>>> endif()
>>> set(DOC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/doc")
>>> file(MAKE_DIRECTORY "${DOC_DIR}")
>>> #set(ENV{PYTHONPATH} 
>>> ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/python2.7/site-packages)
>>> add_custom_target(lldb-python-doc
>>>   ${EPYDOC_EXECUTABLE}
>>>   --html
>>>   lldb
>>>   -o ${CMAKE_CURRENT_BINARY_DIR}/python_reference
>>>   --name "LLDB python API"
>>>   --url "http://lldb.llvm.org "
>>>   ${EPYDOC_OPTIONS}
>>>   DEPENDS swig_wrapper liblldb
>>>   WORKING_DIRECTORY 
>>> ${CMAKE_CURRENT_BINARY_DIR}/../../../lib${LLVM_LIBDIR_SUFFIX}/python2.7/site-packages
>>>   COMMENT "Generating LLDB Python API reference with epydoc" VERBATIM
>>> )
>>> endif(EPYDOC_EXECUTABLE)
>>> 
>>> 
>>> > -Original Message-
>>> > From: lldb-dev >> > > On Behalf Of Pavel Labath
>>> > via lldb-dev
>>> > Sent: Wednesday, April 24, 2019 1:16 AM
>>> > To: Jonas Devlieghere >> > >; Tanya Lattner
>>> > mailto:tanyalatt...@llvm.org>>
>>> > Cc: LLDB mailto:lldb-dev@lists.llvm.org>>
>>> > Subject: [EXT] Re: [lldb-dev] LLDB Website
>>> > 
>>> > On 24/04/2019 03:19, Jonas Devlieghere via lldb-dev wrote:
>>> > >
>>> > >
>>> > > On Tue, Apr 23, 2019 at 6:04 PM Jonas Devlieghere
>>> > > mailto:jo...@devlieghere.com> 
>>> > > >> wrote:
>>> > >
>>> > >
>>> > >
>>> > > On Tue, Apr 23, 2019 at 5:43 PM Tanya Lattner 
>>> > > mailto:tanyalatt...@llvm.org>
>>> > > >> 
>>> > > wrote:
>>> > >
>>> > >
>>> > >
>>> > >> On Apr 23, 2019, at 5:06 PM, Jonas Devlieghere
>>> > >> mailto:jo...@devlieghere.com> 
>>> > >> >> wrote:
>>> > >>
>>> > >>
>>> > >>
>>> > >> On Tue, Apr 2

[lldb-dev] Batch execution

2019-05-07 Thread nu quaquaraqua via lldb-dev
Dear developers,

according to lldb -h the option -b / --batch should return to the command
prompt if the underlying process hits a crash, something that does not
happen in my case:

# echo "run" > /tmp/after_load.txt
# lldb -s /tmp/after_load.txt -b -- helloworld 2
(lldb) target create "helloworld"
Current executable set to 'helloworld' (x86_64).
(lldb) settings set -- target.run-args  "2"
(lldb) command source -s 0 '/tmp/after_load.txt'
Executing commands in '/tmp/after_load.txt'.
(lldb) run
Process 26342 exited with status = 0 (0x)

Process 26342 launched: '/tmp/helloworld' (x86_64)
# lldb -s /tmp/after_load.txt -b -- helloworld 3
(lldb) target create "helloworld"
Current executable set to 'helloworld' (x86_64).
(lldb) settings set -- target.run-args  "3"
(lldb) command source -s 0 '/tmp/after_load.txt'
Executing commands in '/tmp/after_load.txt'.
(lldb) run
Process 26423 stopped
* thread #1, name = 'helloworld', stop reason = unknown crash reason
frame #0: 0x77a86d7f libc.so.6`__GI_raise + 271
libc.so.6`__GI_raise:
->  0x77a86d7f <+271>: movq   0x108(%rsp), %rcx
0x77a86d87 <+279>: xorq   %fs:0x28, %rcx
0x77a86d90 <+288>: movl   %r8d, %eax
0x77a86d93 <+291>: jne0x77a86dae; <+318>

Process 26423 launched: '/tmp/helloworld' (x86_64)
#

lldb terminated again and the control went back to the shell.

Let me know if any fix or workaround is available.

lldb 7.0.1, arch linux x64.

Yours,
Quaquaraqua
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] LLDB Website

2019-05-07 Thread Jonas Devlieghere via lldb-dev
Hey Tanya,

That's great. I see the Python documentation is online now!

Unfortunately it appears that the Sphinx part still isn't updating. I
pushed a bunch of changes last week and none have made it to the homepage
yet. I checked the www-scripts mailing list but I don't see any failures
for LLDB. Do you know what's up here?

Thanks,
Jonas

On Tue, May 7, 2019 at 12:19 AM Tanya Lattner  wrote:

> Ignore this. svn wasn’t actually updating the src tree. It works! I just
> need doxygen script to finish and it will be confirmed tonight.
>
>
> -Tanya
>
> On May 6, 2019, at 11:55 PM, Tanya Lattner  wrote:
>
> I’m not sure it is working. To clarify, nothing in LLVM should be compiled
> to build the python docs correct?
>
> So I shouldn’t see this?
> *Scanning dependencies of target liblldb_exports*
> [  0%] *Creating export file for liblldb*
> [  0%] Built target liblldb_exports
> *Scanning dependencies of target LLVMDemangle*
> [  0%] Building CXX object
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
> [  0%] Building CXX object
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
> [  0%] Building CXX object
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
> [  0%] Building CXX object
> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
> [  0%] *Linking CXX static library ../libLLVMDemangle.a*
> [  0%] Built target LLVMDemangle
> *Scanning dependencies of target LLVMSupport*
> [  0%] Building CXX object
> lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o
> [  0%] Building CXX object
> lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o
> [  0%] Building CXX object
> lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
> [  0%] Building CXX object
> lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
> [  0%] Building CXX object
> lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
>
> Do I need any additional config options?
>
> Thanks,
> Tanya
>
> On May 3, 2019, at 8:58 AM, Jonas Devlieghere 
> wrote:
>
> Hey Tanya,
>
> It appears the website is still stuck. It hasn't picked up my changes from
> earlier this week. Please let me know if there's anything I can do to help.
>
> Thanks,
> Jonas
>
> On Wed, May 1, 2019 at 10:40 PM Tanya Lattner 
> wrote:
>
>> I will give this a shot. I did remove the changes before to prevent any
>> issue.
>>
>> -Tanya
>>
>> On Apr 29, 2019, at 10:26 AM, Jonas Devlieghere 
>> wrote:
>>
>> I've merged the aforementioned patch.
>>
>> Tanya, can you give generating the python docs another shot?
>>
>> Thanks,
>> Jonas
>>
>> On Fri, Apr 26, 2019 at 4:29 PM Jonas Devlieghere 
>> wrote:
>>
>>> I've put up a patch to make it possible to generate the python reference
>>> without building lldb at all: https://reviews.llvm.org/D61216
>>>
>>> PS: The website isn't updating anymore, is that because of the python
>>> reference generation?
>>>
>>> On Wed, Apr 24, 2019 at 11:46 AM Ted Woodward 
>>> wrote:
>>>
 That's the issue - lldb-python-doc depends on liblldb. From
 docs/CMakeLists.txt:

 if(EPYDOC_EXECUTABLE)
   find_program(DOT_EXECUTABLE dot)
 if(DOT_EXECUTABLE)
   set(EPYDOC_OPTIONS ${EPYDOC_OPTIONS} --graph all --dotpath
 ${DOT_EXECUTABLE})
 endif()
 set(DOC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/doc")
 file(MAKE_DIRECTORY "${DOC_DIR}")
 #set(ENV{PYTHONPATH}
 ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/python2.7/site-packages)
 add_custom_target(lldb-python-doc
   ${EPYDOC_EXECUTABLE}
   --html
   lldb
   -o ${CMAKE_CURRENT_BINARY_DIR}/python_reference
   --name "LLDB python API"
   --url "http://lldb.llvm.org";
   ${EPYDOC_OPTIONS}
   DEPENDS swig_wrapper liblldb
   WORKING_DIRECTORY
 ${CMAKE_CURRENT_BINARY_DIR}/../../../lib${LLVM_LIBDIR_SUFFIX}/python2.7/site-packages
   COMMENT "Generating LLDB Python API reference with epydoc"
 VERBATIM
 )
 endif(EPYDOC_EXECUTABLE)


 > -Original Message-
 > From: lldb-dev  On Behalf Of Pavel
 Labath
 > via lldb-dev
 > Sent: Wednesday, April 24, 2019 1:16 AM
 > To: Jonas Devlieghere ; Tanya Lattner
 > 
 > Cc: LLDB 
 > Subject: [EXT] Re: [lldb-dev] LLDB Website
 >
 > On 24/04/2019 03:19, Jonas Devlieghere via lldb-dev wrote:
 > >
 > >
 > > On Tue, Apr 23, 2019 at 6:04 PM Jonas Devlieghere
 > > mailto:jo...@devlieghere.com>> wrote:
 > >
 > >
 > >
 > > On Tue, Apr 23, 2019 at 5:43 PM Tanya Lattner <
 tanyalatt...@llvm.org
 > > > wrote:
 > >
 > >
 > >
 > >> On Apr 23, 2019, at 5:06 PM, Jonas Devlieghere
 > >> mailto:jo...@devlieghere.com>>
 wrote:
 > >>
 > >>
 > >>
 > >> On Tue, Apr 23, 2019 at 5:00 PM Tanya Lattner
 > >> mailto:tanyalatt...@llvm.org>>
 wrote:
 > >>
 > >

Re: [lldb-dev] LLDB Website

2019-05-07 Thread Tanya Lattner via lldb-dev
Ok, I believe everything should be working. So the cpp ref and python ref are 
generated nightly. Sphinx/web is done post-commit. I just ran it by hand and 
you can see the script output: 
http://lists.llvm.org/pipermail/www-scripts/2019-May/007606.html

Is it possible for you to add a timestamp to the bottom of the sphinx generated 
webpages? That would also make it easy to spot if it hasn’t run recently. 

If you aren’t seeing something updated, please let me know. If you add new 
targets, I have to do that manually as it's not automatic.

Thanks,
Tanya


> On May 7, 2019, at 9:28 AM, Jonas Devlieghere  wrote:
> 
> Hey Tanya,
> 
> That's great. I see the Python documentation is online now! 
> 
> Unfortunately it appears that the Sphinx part still isn't updating. I pushed 
> a bunch of changes last week and none have made it to the homepage yet. I 
> checked the www-scripts mailing list but I don't see any failures for LLDB. 
> Do you know what's up here?
> 
> Thanks,
> Jonas
> 
> On Tue, May 7, 2019 at 12:19 AM Tanya Lattner  > wrote:
> Ignore this. svn wasn’t actually updating the src tree. It works! I just need 
> doxygen script to finish and it will be confirmed tonight.
> 
> 
> -Tanya
> 
>> On May 6, 2019, at 11:55 PM, Tanya Lattner > > wrote:
>> 
>> I’m not sure it is working. To clarify, nothing in LLVM should be compiled 
>> to build the python docs correct? 
>> 
>> So I shouldn’t see this?
>> Scanning dependencies of target liblldb_exports
>> [  0%] Creating export file for liblldb
>> [  0%] Built target liblldb_exports
>> Scanning dependencies of target LLVMDemangle
>> [  0%] Building CXX object 
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
>> [  0%] Building CXX object 
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
>> [  0%] Building CXX object 
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
>> [  0%] Building CXX object 
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
>> [  0%] Linking CXX static library ../libLLVMDemangle.a
>> [  0%] Built target LLVMDemangle
>> Scanning dependencies of target LLVMSupport
>> [  0%] Building CXX object 
>> lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o
>> [  0%] Building CXX object 
>> lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o
>> [  0%] Building CXX object 
>> lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
>> [  0%] Building CXX object 
>> lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
>> [  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
>> 
>> Do I need any additional config options?
>> 
>> Thanks,
>> Tanya
>> 
>>> On May 3, 2019, at 8:58 AM, Jonas Devlieghere >> > wrote:
>>> 
>>> Hey Tanya,
>>> 
>>> It appears the website is still stuck. It hasn't picked up my changes from 
>>> earlier this week. Please let me know if there's anything I can do to help.
>>> 
>>> Thanks,
>>> Jonas
>>> 
>>> On Wed, May 1, 2019 at 10:40 PM Tanya Lattner >> > wrote:
>>> I will give this a shot. I did remove the changes before to prevent any 
>>> issue.
>>> 
>>> -Tanya
>>> 
 On Apr 29, 2019, at 10:26 AM, Jonas Devlieghere >>> > wrote:
 
 I've merged the aforementioned patch. 
 
 Tanya, can you give generating the python docs another shot?
 
 Thanks,
 Jonas
 
 On Fri, Apr 26, 2019 at 4:29 PM Jonas Devlieghere >>> > wrote:
 I've put up a patch to make it possible to generate the python reference 
 without building lldb at all: https://reviews.llvm.org/D61216 
 
 
 PS: The website isn't updating anymore, is that because of the python 
 reference generation?
 
 On Wed, Apr 24, 2019 at 11:46 AM Ted Woodward >>> > wrote:
 That's the issue - lldb-python-doc depends on liblldb. From 
 docs/CMakeLists.txt:
 
 if(EPYDOC_EXECUTABLE)
   find_program(DOT_EXECUTABLE dot)
 if(DOT_EXECUTABLE)
   set(EPYDOC_OPTIONS ${EPYDOC_OPTIONS} --graph all --dotpath 
 ${DOT_EXECUTABLE})
 endif()
 set(DOC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/doc")
 file(MAKE_DIRECTORY "${DOC_DIR}")
 #set(ENV{PYTHONPATH} 
 ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/python2.7/site-packages)
 add_custom_target(lldb-python-doc
   ${EPYDOC_EXECUTABLE}
   --html
   lldb
   -o ${CMAKE_CURRENT_BINARY_DIR}/python_reference
   --name "LLDB python API"
   --url "http://lldb.llvm.org "
   ${EPYDOC_OPTIONS}
   DEPENDS swig_wrapper liblldb
   WORKING_DIRECTORY 
 ${CMAKE_CURRENT_BINARY_DIR}/../../../lib${LLVM_LIBDIR_SUFFIX}/python2.7/site-packages
   COMMENT "Generating LLDB Python API refere

Re: [lldb-dev] LLDB Website

2019-05-07 Thread Jonas Devlieghere via lldb-dev
Thanks Tanya! I can see the website was updated. I've added a timestamp to
the Sphinx configuration, but it doesn't show up on the website. I'm not
sure whether that's because I did something wrong or because the site is
still not generated post-commit.

Did you change anything to where the Doxygen is generated? I updated all
the links to remove the /html/ form the URL and put a redirect in place,
but now the cpp docs are back at their old location:
https://lldb.llvm.org/cpp_reference/html/index.html

Thank,
Jonas

On Tue, May 7, 2019 at 4:08 PM Tanya Lattner  wrote:

> Ok, I believe everything should be working. So the cpp ref and python ref
> are generated nightly. Sphinx/web is done post-commit. I just ran it by
> hand and you can see the script output:
> http://lists.llvm.org/pipermail/www-scripts/2019-May/007606.html
>
> Is it possible for you to add a timestamp to the bottom of the sphinx
> generated webpages? That would also make it easy to spot if it hasn’t run
> recently.
>
> If you aren’t seeing something updated, please let me know. If you add new
> targets, I have to do that manually as it's not automatic.
>
> Thanks,
> Tanya
>
>
> On May 7, 2019, at 9:28 AM, Jonas Devlieghere 
> wrote:
>
> Hey Tanya,
>
> That's great. I see the Python documentation is online now!
>
> Unfortunately it appears that the Sphinx part still isn't updating. I
> pushed a bunch of changes last week and none have made it to the homepage
> yet. I checked the www-scripts mailing list but I don't see any failures
> for LLDB. Do you know what's up here?
>
> Thanks,
> Jonas
>
> On Tue, May 7, 2019 at 12:19 AM Tanya Lattner 
> wrote:
>
>> Ignore this. svn wasn’t actually updating the src tree. It works! I just
>> need doxygen script to finish and it will be confirmed tonight.
>>
>>
>> -Tanya
>>
>> On May 6, 2019, at 11:55 PM, Tanya Lattner  wrote:
>>
>> I’m not sure it is working. To clarify, nothing in LLVM should be
>> compiled to build the python docs correct?
>>
>> So I shouldn’t see this?
>> *Scanning dependencies of target liblldb_exports*
>> [  0%] *Creating export file for liblldb*
>> [  0%] Built target liblldb_exports
>> *Scanning dependencies of target LLVMDemangle*
>> [  0%] Building CXX object
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
>> [  0%] Building CXX object
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
>> [  0%] Building CXX object
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
>> [  0%] Building CXX object
>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
>> [  0%] *Linking CXX static library ../libLLVMDemangle.a*
>> [  0%] Built target LLVMDemangle
>> *Scanning dependencies of target LLVMSupport*
>> [  0%] Building CXX object
>> lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o
>> [  0%] Building CXX object
>> lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o
>> [  0%] Building CXX object
>> lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
>> [  0%] Building CXX object
>> lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
>> [  0%] Building CXX object
>> lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
>>
>> Do I need any additional config options?
>>
>> Thanks,
>> Tanya
>>
>> On May 3, 2019, at 8:58 AM, Jonas Devlieghere 
>> wrote:
>>
>> Hey Tanya,
>>
>> It appears the website is still stuck. It hasn't picked up my changes
>> from earlier this week. Please let me know if there's anything I can do to
>> help.
>>
>> Thanks,
>> Jonas
>>
>> On Wed, May 1, 2019 at 10:40 PM Tanya Lattner 
>> wrote:
>>
>>> I will give this a shot. I did remove the changes before to prevent any
>>> issue.
>>>
>>> -Tanya
>>>
>>> On Apr 29, 2019, at 10:26 AM, Jonas Devlieghere 
>>> wrote:
>>>
>>> I've merged the aforementioned patch.
>>>
>>> Tanya, can you give generating the python docs another shot?
>>>
>>> Thanks,
>>> Jonas
>>>
>>> On Fri, Apr 26, 2019 at 4:29 PM Jonas Devlieghere 
>>> wrote:
>>>
 I've put up a patch to make it possible to generate the python
 reference without building lldb at all: https://reviews.llvm.org/D61216

 PS: The website isn't updating anymore, is that because of the python
 reference generation?

 On Wed, Apr 24, 2019 at 11:46 AM Ted Woodward 
 wrote:

> That's the issue - lldb-python-doc depends on liblldb. From
> docs/CMakeLists.txt:
>
> if(EPYDOC_EXECUTABLE)
>   find_program(DOT_EXECUTABLE dot)
> if(DOT_EXECUTABLE)
>   set(EPYDOC_OPTIONS ${EPYDOC_OPTIONS} --graph all --dotpath
> ${DOT_EXECUTABLE})
> endif()
> set(DOC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/doc")
> file(MAKE_DIRECTORY "${DOC_DIR}")
> #set(ENV{PYTHONPATH}
> ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/python2.7/site-packages)
> add_custom_target(lldb-python-doc
>   ${EPYDOC_EXECUTABLE}
>   --html
>   lldb
>   -o ${CMAKE_CURRENT_BINARY_DIR}/python_reference
>   --na

Re: [lldb-dev] LLDB Website

2019-05-07 Thread Tanya Lattner via lldb-dev


> On May 7, 2019, at 4:48 PM, Jonas Devlieghere  wrote:
> 
> Thanks Tanya! I can see the website was updated. I've added a timestamp to 
> the Sphinx configuration, but it doesn't show up on the website. I'm not sure 
> whether that's because I did something wrong or because the site is still not 
> generated post-commit. 
> 

You are right. I needed to change one more thing to trigger the script. Can you 
try to change one thing now? 

> Did you change anything to where the Doxygen is generated? I updated all the 
> links to remove the /html/ form the URL and put a redirect in place, but now 
> the cpp docs are back at their old location: 
> https://lldb.llvm.org/cpp_reference/html/index.html 
> 
Yes! I forgot we had this conversation. Sorry about that. I just changed it 
back.

-Tanya



> 
> Thank,
> Jonas
> 
> On Tue, May 7, 2019 at 4:08 PM Tanya Lattner  > wrote:
> Ok, I believe everything should be working. So the cpp ref and python ref are 
> generated nightly. Sphinx/web is done post-commit. I just ran it by hand and 
> you can see the script output: 
> http://lists.llvm.org/pipermail/www-scripts/2019-May/007606.html 
> 
> 
> Is it possible for you to add a timestamp to the bottom of the sphinx 
> generated webpages? That would also make it easy to spot if it hasn’t run 
> recently. 
> 
> If you aren’t seeing something updated, please let me know. If you add new 
> targets, I have to do that manually as it's not automatic.
> 
> Thanks,
> Tanya
> 
> 
>> On May 7, 2019, at 9:28 AM, Jonas Devlieghere > > wrote:
>> 
>> Hey Tanya,
>> 
>> That's great. I see the Python documentation is online now! 
>> 
>> Unfortunately it appears that the Sphinx part still isn't updating. I pushed 
>> a bunch of changes last week and none have made it to the homepage yet. I 
>> checked the www-scripts mailing list but I don't see any failures for LLDB. 
>> Do you know what's up here?
>> 
>> Thanks,
>> Jonas
>> 
>> On Tue, May 7, 2019 at 12:19 AM Tanya Lattner > > wrote:
>> Ignore this. svn wasn’t actually updating the src tree. It works! I just 
>> need doxygen script to finish and it will be confirmed tonight.
>> 
>> 
>> -Tanya
>> 
>>> On May 6, 2019, at 11:55 PM, Tanya Lattner >> > wrote:
>>> 
>>> I’m not sure it is working. To clarify, nothing in LLVM should be compiled 
>>> to build the python docs correct? 
>>> 
>>> So I shouldn’t see this?
>>> Scanning dependencies of target liblldb_exports
>>> [  0%] Creating export file for liblldb
>>> [  0%] Built target liblldb_exports
>>> Scanning dependencies of target LLVMDemangle
>>> [  0%] Building CXX object 
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
>>> [  0%] Linking CXX static library ../libLLVMDemangle.a
>>> [  0%] Built target LLVMDemangle
>>> Scanning dependencies of target LLVMSupport
>>> [  0%] Building CXX object 
>>> lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
>>> [  0%] Building CXX object 
>>> lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
>>> 
>>> Do I need any additional config options?
>>> 
>>> Thanks,
>>> Tanya
>>> 
 On May 3, 2019, at 8:58 AM, Jonas Devlieghere >>> > wrote:
 
 Hey Tanya,
 
 It appears the website is still stuck. It hasn't picked up my changes from 
 earlier this week. Please let me know if there's anything I can do to help.
 
 Thanks,
 Jonas
 
 On Wed, May 1, 2019 at 10:40 PM Tanya Lattner >>> > wrote:
 I will give this a shot. I did remove the changes before to prevent any 
 issue.
 
 -Tanya
 
> On Apr 29, 2019, at 10:26 AM, Jonas Devlieghere  > wrote:
> 
> I've merged the aforementioned patch. 
> 
> Tanya, can you give generating the python docs another shot?
> 
> Thanks,
> Jonas
> 
> On Fri, Apr 26, 2019 at 4:29 PM Jonas Devlieghere  > wrote:
> I've put up a patch to make it possible to generate the python reference 
> without building lldb at all: https://reviews.llvm.org/D61216 
> 
> 
> PS: The webs

Re: [lldb-dev] LLDB Website

2019-05-07 Thread Jonas Devlieghere via lldb-dev
Thank you Tanya, everything is working! 🎉

On Tue, May 7, 2019 at 5:35 PM Tanya Lattner  wrote:

>
>
> On May 7, 2019, at 4:48 PM, Jonas Devlieghere 
> wrote:
>
> Thanks Tanya! I can see the website was updated. I've added a timestamp to
> the Sphinx configuration, but it doesn't show up on the website. I'm not
> sure whether that's because I did something wrong or because the site is
> still not generated post-commit.
>
>
> You are right. I needed to change one more thing to trigger the script.
> Can you try to change one thing now?
>
> Did you change anything to where the Doxygen is generated? I updated all
> the links to remove the /html/ form the URL and put a redirect in place,
> but now the cpp docs are back at their old location:
> https://lldb.llvm.org/cpp_reference/html/index.html
>
>
> Yes! I forgot we had this conversation. Sorry about that. I just changed
> it back.
>
> -Tanya
>
>
>
>
> Thank,
> Jonas
>
> On Tue, May 7, 2019 at 4:08 PM Tanya Lattner 
> wrote:
>
>> Ok, I believe everything should be working. So the cpp ref and python ref
>> are generated nightly. Sphinx/web is done post-commit. I just ran it by
>> hand and you can see the script output:
>> http://lists.llvm.org/pipermail/www-scripts/2019-May/007606.html
>>
>> Is it possible for you to add a timestamp to the bottom of the sphinx
>> generated webpages? That would also make it easy to spot if it hasn’t run
>> recently.
>>
>> If you aren’t seeing something updated, please let me know. If you add
>> new targets, I have to do that manually as it's not automatic.
>>
>> Thanks,
>> Tanya
>>
>>
>> On May 7, 2019, at 9:28 AM, Jonas Devlieghere 
>> wrote:
>>
>> Hey Tanya,
>>
>> That's great. I see the Python documentation is online now!
>>
>> Unfortunately it appears that the Sphinx part still isn't updating. I
>> pushed a bunch of changes last week and none have made it to the homepage
>> yet. I checked the www-scripts mailing list but I don't see any failures
>> for LLDB. Do you know what's up here?
>>
>> Thanks,
>> Jonas
>>
>> On Tue, May 7, 2019 at 12:19 AM Tanya Lattner 
>> wrote:
>>
>>> Ignore this. svn wasn’t actually updating the src tree. It works! I just
>>> need doxygen script to finish and it will be confirmed tonight.
>>>
>>>
>>> -Tanya
>>>
>>> On May 6, 2019, at 11:55 PM, Tanya Lattner 
>>> wrote:
>>>
>>> I’m not sure it is working. To clarify, nothing in LLVM should be
>>> compiled to build the python docs correct?
>>>
>>> So I shouldn’t see this?
>>> *Scanning dependencies of target liblldb_exports*
>>> [  0%] *Creating export file for liblldb*
>>> [  0%] Built target liblldb_exports
>>> *Scanning dependencies of target LLVMDemangle*
>>> [  0%] Building CXX object
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
>>> [  0%] Building CXX object
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
>>> [  0%] Building CXX object
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o
>>> [  0%] Building CXX object
>>> lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangleNodes.cpp.o
>>> [  0%] *Linking CXX static library ../libLLVMDemangle.a*
>>> [  0%] Built target LLVMDemangle
>>> *Scanning dependencies of target LLVMSupport*
>>> [  0%] Building CXX object
>>> lib/Support/CMakeFiles/LLVMSupport.dir/AArch64TargetParser.cpp.o
>>> [  0%] Building CXX object
>>> lib/Support/CMakeFiles/LLVMSupport.dir/ARMTargetParser.cpp.o
>>> [  0%] Building CXX object
>>> lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
>>> [  0%] Building CXX object
>>> lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
>>> [  0%] Building CXX object
>>> lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
>>>
>>> Do I need any additional config options?
>>>
>>> Thanks,
>>> Tanya
>>>
>>> On May 3, 2019, at 8:58 AM, Jonas Devlieghere 
>>> wrote:
>>>
>>> Hey Tanya,
>>>
>>> It appears the website is still stuck. It hasn't picked up my changes
>>> from earlier this week. Please let me know if there's anything I can do to
>>> help.
>>>
>>> Thanks,
>>> Jonas
>>>
>>> On Wed, May 1, 2019 at 10:40 PM Tanya Lattner 
>>> wrote:
>>>
 I will give this a shot. I did remove the changes before to prevent any
 issue.

 -Tanya

 On Apr 29, 2019, at 10:26 AM, Jonas Devlieghere 
 wrote:

 I've merged the aforementioned patch.

 Tanya, can you give generating the python docs another shot?

 Thanks,
 Jonas

 On Fri, Apr 26, 2019 at 4:29 PM Jonas Devlieghere <
 jo...@devlieghere.com> wrote:

> I've put up a patch to make it possible to generate the python
> reference without building lldb at all:
> https://reviews.llvm.org/D61216
>
> PS: The website isn't updating anymore, is that because of the python
> reference generation?
>
> On Wed, Apr 24, 2019 at 11:46 AM Ted Woodward 
> wrote:
>
>> That's the issue - lldb-python-doc depends on liblldb. From
>> docs/CMakeLists.txt:
>>
>> if(EPYDOC_EXECUTABLE)
>>