Commit 0fc719c
committed
[lldb][swift] Call FixCodeAddress on code addresses read from memory
In the changed code, we read a code address from memory and then attempt
to use that value to create a load address. This fails in targets using
high order bits for metadata, as we must first call `FixCodeAddress` so
that the appropriate plugin can clean-up the address.
Unfortunately, there doesn't seem to be any clean way of testing this,
but this patch also adds logging in case we fail to resolve the symbol
context again.1 parent 5556acc commit 0fc719c
File tree
1 file changed
+13
-6
lines changed- lldb/source/Plugins/LanguageRuntime/Swift
1 file changed
+13
-6
lines changedLines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2806 | 2806 | | |
2807 | 2807 | | |
2808 | 2808 | | |
2809 | | - | |
2810 | | - | |
| 2809 | + | |
2811 | 2810 | | |
2812 | 2811 | | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
2813 | 2815 | | |
2814 | 2816 | | |
2815 | 2817 | | |
| |||
2818 | 2820 | | |
2819 | 2821 | | |
2820 | 2822 | | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
2825 | 2831 | | |
| 2832 | + | |
2826 | 2833 | | |
2827 | 2834 | | |
2828 | 2835 | | |
| |||
0 commit comments