MCPcopy Create free account
hub / github.com/KDE/kdevelop / validAddr

Function validAddr

plugins/lldb/formatters/helpers.py:124–127  ·  view source on GitHub ↗

Test if a address is valid

(valobj, addr)

Source from the content-addressed store, hash-verified

122
123
124def validAddr(valobj, addr):
125 """Test if a address is valid"""
126 return toSBPointer(valobj, addr,
127 valobj.GetType().GetBasicType(lldb.eBasicTypeVoid).GetPointerType()).IsValid()
128
129
130def validPointer(pointer):

Callers 2

__init__Method · 0.90
parseQt4DataMethod · 0.90

Calls 2

toSBPointerFunction · 0.85
IsValidMethod · 0.80

Tested by

no test coverage detected