Commit 3775be2
committed
Target: correct the return value for
We would return `LLDB_INVALID_IMAGE_TOKEN` for the address rather than
the correct value of `LLDB_IMAGE_ADDRESS`. This would result in the
check for the return value to silently pass on x64 as the invalid
address and invalid token are of different sizes (`size_t` vs
`uintprr_t`). This corrects the return value to `LLDB_INVALID_ADDRESS`
and addresses the rest to reset the mapped address to the invalid value.
This was found by inspection when trying to implement module support for
Windows.GetImageAddrFromToken
1 parent 469580a commit 3775be2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5796 | 5796 | | |
5797 | 5797 | | |
5798 | 5798 | | |
5799 | | - | |
| 5799 | + | |
5800 | 5800 | | |
5801 | 5801 | | |
5802 | 5802 | | |
5803 | 5803 | | |
5804 | | - | |
| 5804 | + | |
5805 | 5805 | | |
5806 | 5806 | | |
5807 | 5807 | | |
| |||
0 commit comments