Commit 5acac0d
Do not crash when enum discriminant is not recognized
Sometimes the DWARF can omit information about a discriminant, for
example when an Option shares a discriminant slot with an enum that it
wraps. In this case, lldb could crash, because the discriminant was
not found and because there was no default variant.
No test case because this relies on a compiler bug that will soon be
fixed.
Fixes #161 parent f65a0c0 commit 5acac0d
File tree
2 files changed
+7
-0
lines changed- lldb/source
- Plugins/LanguageRuntime/Rust
- Symbol
2 files changed
+7
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
628 | 632 | | |
629 | 633 | | |
630 | 634 | | |
| |||
0 commit comments