llvm-project/lldb/bindings/interface/SBAddressRangeExtensions.i
Miro Bucko 48175a5d9f
[lldb] Add SBAddressRange and SBAddressRangeList to SB API (#93836)
This adds new SB API calls and classes to allow a user of the SB API to obtain an address range from SBFunction and SBBlock. This is a second attempt to land the reverted PR #92014.
2024-05-30 10:38:21 -07:00

12 lines
279 B
OpenEdge ABL

%extend lldb::SBAddressRange {
#ifdef SWIGPYTHON
%pythoncode%{
def __repr__(self):
import lldb
stream = lldb.SBStream()
self.GetDescription(stream, lldb.target if lldb.target else lldb.SBTarget())
return stream.GetData()
%}
#endif
}