[lldb] Add an overload to SetModuleLoadAddress that takes an unsigned value
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 6 Apr 2023 17:27:06 +0000 (10:27 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 6 Apr 2023 17:43:54 +0000 (10:43 -0700)
commitea95da1809008abd9b81b0fb2cc6ec6438c4c0e0
tree5d85c1335b7cd144b1c951c3ff5586648272a08f
parent50af6ab0ab55829f332d304794b8198fa73e94f7
[lldb] Add an overload to SetModuleLoadAddress that takes an unsigned value

Currently, SBTarget::SetModuleLoadAddress does not accept large slides
needed to load images in high memory. This function should always have
taken an unsigned as the slide, as it immediately passes it to
Target::SetSectionLoadAddress which takes an unsigned.

This patch adds an overload and exposes that to SWIG instead of the
signed variant. I've marked the signed variant as deprecated and added
check that the slide is positive.

rdar://101355155

Differential revision: https://reviews.llvm.org/D147482
lldb/include/lldb/API/SBTarget.h
lldb/source/API/SBTarget.cpp
lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py