[lldb-dev] Bug report, lldb 8.0.1 python binding is not correctly generated

Joey Xie via lldb-dev lldb-dev at lists.llvm.org
Tue Jul 30 23:15:18 PDT 2019


I'm using vscode and CodeLLDB to debug rust code.

```text
Internal debugger error:
Traceback (most recent call last):
  File
"/home/joey/.vscode/extensions/vadimcn.vscode-lldb-1.2.3/adapter/debugsession.py",
line 1366, in handle_message
    result = handler(args)
  File
"/home/joey/.vscode/extensions/vadimcn.vscode-lldb-1.2.3/adapter/debugsession.py",
line 426, in DEBUG_setBreakpoints
    result = self.set_source_breakpoints(file_bps, req_bps, file_id)
  File
"/home/joey/.vscode/extensions/vadimcn.vscode-lldb-1.2.3/adapter/debugsession.py",
line 447, in set_source_breakpoints
    for bp_loc in bp:
TypeError: 'SBBreakpoint' object is not iterable
```

I checked my `/usr/lib/python2.7/site-packages/lldb/__init__.py` file, the
`SBBreakpoint` class lack a `__iter__` method, but In the document at
https://lldb.llvm.org/python_reference/index.html `SBBreakpoint` class has
a `__iter__` method.

I guess it may be a bug that when generating the python binding for lldb
8.0.1 some methods are missing, can someone confirm this bug? thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190731/a351067b/attachment.html>


More information about the lldb-dev mailing list