Fix: added UnionSyntheticProvider for LLDB#154055
Fix: added UnionSyntheticProvider for LLDB#154055Mottl wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
There was a problem hiding this comment.
r? @Walnut356, can you take a look and see if this makes sense?
|
|
||
| addr = child.GetLoadAddress() | ||
| if addr == LLDB_INVALID_ADDRESS: | ||
| return True # can't check — let LLDB decide |
There was a problem hiding this comment.
Can you say more about this? If LLDB can decide, why can't it always do the right thing? Does this still leave the bug in place for some set of cases?
|
Failed to set assignee to
|
|
I was not able to replicate the crash. I tried compiling your example program, and for both
CLI LLDB simply omitted the If possible, can you provide the following:
|
|
☔ The latest upstream changes (presumably #154824) made this pull request unmergeable. Please resolve the merge conflicts. |
This PR fixes crashing of rust-lldb when
unioninsideunionholds variants which are aligned differently.The following code will crash rust-lldb while inspecting
AlignedStruct:Trying to expand
swill crash lldb withSIGSEGV