rust/src/etc
bors f693d339f1 Auto merge of #61827 - golddranks:lldb_fix, r=nikomatsakis
Fix rust-lldb wrapper scripts.

Currently the `rust-lldb` wrapper provided by Rust project is broken. The error messages it produces on launch are as follows:
```
warning: ignoring unknown option: --one-line-before-file=command script import "/Users/kon/.rustup/toolchains/nightly-2019-05-02-x86_64-apple-darwin/lib/rustlib/etc/lldb_rust_formatters.py"
warning: ignoring unknown option: --one-line-before-file=type summary add --no-value --python-function lldb_rust_formatters.print_val -x ".*" --category Rust
warning: ignoring unknown option: --one-line-before-file=type category enable Rust
(lldb) target create "target/debug/nagare"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/kon/.rustup/toolchains/nightly-2019-05-02-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/python2.7/site-packages/lldb/__init__.py", line 1481, in <module>
    class SBAddress(object):
  File "/Users/kon/.rustup/toolchains/nightly-2019-05-02-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/python2.7/site-packages/lldb/__init__.py", line 1647, in SBAddress
    __swig_getmethods__["module"] = GetModule
NameError: name '__swig_getmethods__' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
...etc.
```

The errors stem from two regressions: one caused by an LLVM upgrade and one caused by unintended upgrade to SWIG 4.0 (SWIG is a wrapper generator that is used to generate Python bindings for LLVM and LLDB.)

(Edit: found the exact dates) The SWIG breakage happened because of a Homebrew version upgrade on `nightly-2019-05-01-x86_64-apple-darwin` and the LLVM breakage happened on `nightly-2019-01-27-x86_64-apple-darwin` (likely to have been caused by https://github.com/rust-lang/rust/pull/57675 ).

The fix is to update the LLVM parameter syntax and to "downgrade" to SWIG 3.0.x. SWIG 3.0.x is not going to be supported by Homebrew forever, but should be good for now, until LLDB upgrades to  support SWIG 4.0.0. Here's some more info about Homebrew support: https://github.com/Homebrew/homebrew-core/pull/39929 & https://github.com/Homebrew/homebrew-core/pull/40882 I'm going to send a bug & fix to LLDB about SWIG 4.0.0 to get the situation fixed in the future.

It would be good to also backport this to beta, since it's such a small change, and will fix an obvious regression.
2019-06-20 17:57:04 +00:00
..
installer fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}} 2018-02-10 12:22:57 +01:00
natvis Fix .natvis visualizers. 2019-05-09 16:15:43 -07:00
test-float-parse Remove licenses 2018-12-25 21:08:33 -07:00
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
cat-and-grep.sh Remove licenses 2018-12-25 21:08:33 -07:00
CONFIGS.md Add sublime-rust to CONFIGS.md. 2016-08-22 01:24:01 -04:00
cpu-usage-over-time-plot.sh ci: Add a script for generating CPU usage graphs 2019-06-18 09:51:39 -07:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
debugger_pretty_printers_common.py Remove the private generic NonZero<T> wrapper type. 2018-12-26 20:54:10 +01:00
dec2flt_table.py Remove licenses 2018-12-25 21:08:33 -07:00
gdb_load_rust_pretty_printers.py Remove licenses 2018-12-25 21:08:33 -07:00
gdb_rust_pretty_printing.py fix gdb debug printing 2019-01-28 17:33:29 +01:00
generate-deriving-span-tests.py Remove initial newline from automatically generated span tests 2019-02-08 09:50:54 +01:00
generate-keyword-tests.py Fix runtime error in generate-keyword-tests 2019-02-15 14:48:21 +01:00
htmldocck.py use utf-8 throughout htmldocck 2019-01-06 01:27:33 -05:00
indenter fix some python3 incompatibilities 2017-11-16 13:34:13 -05:00
lldb_batchmode.py lldb_batchmode.py: try import _thread for Python 3 2019-01-08 13:19:50 -08:00
lldb_rust_formatters.py rust-lldb: fix crash when printing empty string 2019-03-06 12:28:38 -05:00
rust-gdb Remove licenses 2018-12-25 21:08:33 -07:00
rust-gdbgui Remove licenses 2018-12-25 21:08:33 -07:00
rust-lldb Fix rust-lldb wrapper scripts. 2019-06-16 01:51:32 +09:00
rust-windbg.cmd Remove licenses 2018-12-25 21:08:33 -07:00
wasm32-shim.js Remove licenses 2018-12-25 21:08:33 -07:00