[lldb-dev] [Bug 24759] The example "Using the lldb.py module in python" is not working on Linux

2017-03-13 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=24759

louis.granboulan.develo...@gmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |---

--- Comment #4 from louis.granboulan.develo...@gmail.com ---
I still have the same issue with lldb-3.9.
Here are more details, which may help to understand why it is not teh same for
you.

I compiled a C file containing only "int main(){}" in a binary at /tmp/a.out

Here is an extract from the script at
http://lldb.llvm.org/python-reference.html which reproduces the behaviour.

#!/usr/bin/python
import lldb, os, sys
exe = "/tmp/a.out"
debugger = lldb.SBDebugger.Create()
print debugger.GetVersionString()
debugger.SetAsync (False)
target = debugger.CreateTargetWithFileAndArch (exe, lldb.LLDB_ARCH_DEFAULT)
if not target:
print "CreateTargetWithFileAndArch failed"
sys.exit(1)
main_bp = target.BreakpointCreateByName ("main",
target.GetExecutable().GetFilename())
print main_bp
process = target.LaunchSimple (None, None, os.getcwd())
print process

On MacOSX, the output is:

lldb-360.1.70
Creating a target for '/tmp/a.out'
SBBreakpoint: id = 1, name = 'main', module = a.out, locations = 1
SBProcess: pid = 10449, state = stopped, threads = 1, executable = a.out

On Linux, where lldb-3.9.1 is installed using the apt repository from
http://apt.llvm.org/jessie/ the output is:

lldb version 3.9.1 ( revision )
SBBreakpoint: id = 1, name = 'main', module = a.out, locations = 1
SBProcess: pid = 0, state = launching, threads = 0, executable = a.out


It is not the same output, and the fact that the process is "launching" rather
than "stopped" makes the rest of the script from
http://lldb.llvm.org/python-reference.html useless.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] LLVM 4.0.0 Release

2017-03-13 Thread Hans Wennborg via lldb-dev
It is my pleasure to announce that LLVM 4 is now available.

Get it here: http://llvm.org/releases/download.html#4.0.0

LLVM is now using a new versioning scheme, increasing the major
version number with each major release. Stable updates to this release
will be versioned 4.0.x, and the next major release, six months from
now, will be version 5.0.0. For more information, see
http://blog.llvm.org/2016/12/llvms-new-versioning-scheme.html

This release is the result of the community's work over the past six
months, including: use of profile data in ThinLTO, more aggressive
aggressive dead code elimination, experimental support for coroutines,
experimental AVR target, better GNU ld compatibility and significant
performance improvements in LLD, as well as improved optimizations,
many bug fixes and more.

See the release notes for more details:
http://llvm.org/releases/4.0.0/docs/ReleaseNotes.html
http://llvm.org/releases/4.0.0/tools/clang/docs/ReleaseNotes.html
http://llvm.org/releases/4.0.0/tools/clang/tools/extra/docs/ReleaseNotes.html
http://llvm.org/releases/4.0.0/tools/lld/docs/ReleaseNotes.html

Thanks to everyone who helped with filing, fixing and code reviewing
for release blocking bugs.

Special thanks to the release testers and packagers: Ben Pope,
Bernhard Rosenkränzer, Diana Picus, Dimitry Andric, Mehdi Amini,
Michał Górny, Renato Golin, Simon Dardis, and Sylvestre Ledru. Also
thanks to Zhendong Su and his team whose fuzz testing prevented many
bugs going into the release.

For questions or comments about this release, please contact the
community on the mailing lists. Onwards to LLVM 5!

Cheers,
Hans
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] [Release-testers] [4.0.0 Release] 'final' has been tagged

2017-03-13 Thread Simon Dardis via lldb-dev
Hi Hans,

Sorry for the delay. RC4 uploaded, looks ok, md5s:

85668cdcf53dc6de09af34e13d9a8a46  clang+llvm-4.0.0-rc4-mipsel-linux-gnu.tar.xz
61d46cb7650fd6acf5d23f11496f2ff8  clang+llvm-4.0.0-rc4-mips-linux-gnu.tar.xz
605f792a1b9371579bb2fa975dbbd25d  
clang+llvm-4.0.0-rc4-x86_64-linux-gnu-debian8.tar.xz

Final uploaded, looks ok so far, md5s:

6995e7c6421109588db2d0c935cf23cc  clang+llvm-4.0.0-mips-linux-gnu.tar.xz
b273c672f12ec0bbce7e80d4c024eaa5  clang+llvm-4.0.0-mipsel-linux-gnu.tar.xz
02d19c0d252cc3df3d21b02c61f57e42  
clang+llvm-4.0.0-x86_64-linux-gnu-debian8.tar.xz

Apologies again for the delay.

Thanks,
Simon

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] [Release-testers] [4.0.0 Release] 'final' has been tagged

2017-03-13 Thread Hans Wennborg via lldb-dev
On Mon, Mar 13, 2017 at 10:33 AM, Simon Dardis  wrote:
> Hi Hans,
>
> Sorry for the delay. RC4 uploaded, looks ok, md5s:
>
> 85668cdcf53dc6de09af34e13d9a8a46  clang+llvm-4.0.0-rc4-mipsel-linux-gnu.tar.xz
> 61d46cb7650fd6acf5d23f11496f2ff8  clang+llvm-4.0.0-rc4-mips-linux-gnu.tar.xz
> 605f792a1b9371579bb2fa975dbbd25d  
> clang+llvm-4.0.0-rc4-x86_64-linux-gnu-debian8.tar.xz
>
> Final uploaded, looks ok so far, md5s:
>
> 6995e7c6421109588db2d0c935cf23cc  clang+llvm-4.0.0-mips-linux-gnu.tar.xz
> b273c672f12ec0bbce7e80d4c024eaa5  clang+llvm-4.0.0-mipsel-linux-gnu.tar.xz
> 02d19c0d252cc3df3d21b02c61f57e42  
> clang+llvm-4.0.0-x86_64-linux-gnu-debian8.tar.xz
>
> Apologies again for the delay.

No worries. I've added the binaries to the download page.

Thanks,
Hans
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev