[lldb-dev] I'd like to make Windows an officially supported platform for LLDB.
ted.woodward at codeaurora.org
Tue Jan 6 11:36:23 PST 2015
My big issue with Windows LLDB right now is the python support. I can do most things in the interpreter, but some things just don’t quite work right. For example, using lldb.debugger is spotty:
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> print lldb
<module 'lldb' from 'R:\internal\branch-7.3\windows\latest\Tools\lib\site-packages\lldb\__init__.py'>
>>> print lldb.debugger
>>> print lldb.debugger.GetSelectedTarget()
>>> target = lldb.debugger.GetSelectedTarget()
<lldb.SBBreakpoint; proxy of <Swig Object of type 'lldb::SBBreakpoint *' at 0x00
(lldb) breakpoint list
No breakpoints currently set.
(lldb) b main
Breakpoint 1: where = factwin`main + 28 at factorial.c:32, address = 0x00005130
(lldb) breakpoint list
1: name = 'main', locations = 1
1.1: where = factwin`main + 28 at factorial.c:32, address = factwin[0x00005130], unresolved, hit count = 0
These sequences work on Linux.
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
From: lldb-dev-bounces at cs.uiuc.edu [mailto:lldb-dev-bounces at cs.uiuc.edu] On Behalf Of Zachary Turner
Sent: Monday, December 29, 2014 5:51 PM
To: lldb-dev at cs.uiuc.edu
Subject: Re: [lldb-dev] I'd like to make Windows an officially supported platform for LLDB.
BTW, I actually uploaded a patch to do this. http://reviews.llvm.org/D6805
On Mon Dec 29 2014 at 1:55:19 PM Zachary Turner <zturner at google.com <mailto:zturner at google.com> > wrote:
The LLDB homepage has the following to say about platform support:
LLDB is known to work on the following platforms, but ports to new platforms are welcome:
* Mac OS X desktop user space debugging for i386 and x86-64
* iOS simulator debugging on i386
* iOS device debugging on ARM
* Linux local user-space debugging for i386 and x86-64
* FreeBSD local user-space debugging for i386 and x86-64
Windows is not listed here. I would like to list it. What level of functionality needs to be present, and how many tests need to pass before I can list Windows here? Can I do it now, with the caveat that it's still experimental? I have the test suite running (although many tests failing), source level debugging with DWARF, breakpoints, stepping, stack traces, etc all working with basic support, so this seems like a good time to announce support for Windows. Obviously many things will not work, but we plan to support this long term, so it will just be a matter of time.
Along with an update to the supported platforms on the homepage, I plan to add some specific Windows instructions to the build page related to Python, required packages that need to be installed, etc.
Additionally, I hope to follow this up with a post to the LLVM blog announcing experimental support for live debugging on Windows along with a very high level overview of our future plans.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev