rust/src/etc
Vladimir Makayev fb2d9cdfc5 Implement lldb formattter for "clang encoded" enums (LLDB 18.1+)
Summary:
I landed a fix last year to enable `DW_TAG_variant_part` encoding in LLDBs (https://reviews.llvm.org/D149213). This PR is a corresponding fix in synthetic formatters to decode that information.
This is in no way perfect implementation but at least it improves the status quo. But most types of enums will be visible and debuggable in some way.
I've also updated most of the existing tests that touch enums and re-enabled test cases based on LLDB for enums.

Test Plan:
ran tests `./x test tests/debuginfo/`. Also tested manually in LLDB CLI and LLDB VSCode

Other Thoughs
A better approach would probably be adopting [formatters from codelldb](https://github.com/vadimcn/codelldb/blob/master/formatters/rust.py). There is some neat hack that hooks up summary provider via synthetic provider which can ultimately fix more display issues for Rust types and enums too. But getting it to work well might take more time that I have right now.
2024-05-05 17:53:02 -07:00
..
completions introduce x vendor 2024-04-22 17:07:49 +03:00
installer Raise minimum supported macOS to 10.12 2023-09-23 19:14:25 -05:00
natvis Try fixing debuginfo test. 2024-03-14 17:34:58 +01:00
test-float-parse Add two lockfiles 2023-10-10 12:47:26 +00:00
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
cat-and-grep.sh simplify 2022-09-26 21:56:08 +08:00
CONFIGS.md Add sublime-rust to CONFIGS.md. 2016-08-22 01:24:01 -04:00
cpu-usage-over-time-plot.sh Fix a bunch of typo 2022-08-31 18:24:55 +08:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
dec2flt_table.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
gdb_load_rust_pretty_printers.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
gdb_lookup.py Rewrite gdb pretty-printer registration 2023-10-20 10:35:28 -06:00
gdb_providers.py Fix StdNonZeroNumberProvider for gdb. 2024-03-14 17:34:59 +01:00
generate-deriving-span-tests.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
generate-keyword-tests.py remove unnecessary import statement 2020-02-08 00:03:51 -05:00
htmldocck.py Improve htmldocck error a bit by providing line where error occurred 2023-07-19 14:34:06 +02:00
indenter fix some python3 incompatibilities 2017-11-16 13:34:13 -05:00
lldb_batchmode.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
lldb_commands Add rust-lldb pretty printing for Path and PathBuf 2024-03-29 18:02:26 -06:00
lldb_lookup.py Implement lldb formattter for "clang encoded" enums (LLDB 18.1+) 2024-05-05 17:53:02 -07:00
lldb_providers.py Implement lldb formattter for "clang encoded" enums (LLDB 18.1+) 2024-05-05 17:53:02 -07:00
pre-push.sh User may want to skip tidy check sometimes 2023-06-30 15:37:10 +08:00
rust-gdb Typo fix in src/etc/rust-gdb 2023-04-14 19:07:13 -07:00
rust-gdbgui rust-gdbgui: remove excessive quotes 2023-08-22 09:09:00 -04:00
rust-lldb Fix loading pretty-printers in rust-lldb script 2020-08-28 09:29:45 +03:00
rust-windbg.cmd Remove licenses 2018-12-25 21:08:33 -07:00
rust_analyzer_settings.json Increase vscode git.detectSubmodulesLimit 2024-01-19 23:46:17 +04:00
rust_types.py Implement lldb formattter for "clang encoded" enums (LLDB 18.1+) 2024-05-05 17:53:02 -07:00