MCPcopy
hub / github.com/DerekSelander/LLDB / getObjCSelRefs

Function getObjCSelRefs

lldb_commands/ds.py:514–531  ·  view source on GitHub ↗
(section, outputCount)

Source from the content-addressed store, hash-verified

512 return (indeces, functionList, descriptions)
513
514def getObjCSelRefs(section, outputCount):
515 target = getTarget()
516 ptrsize = getType("char*").GetByteSize()
517 sz = section.GetByteSize() / ptrsize
518 addr = target.ResolveLoadAddress(section.GetLoadAddress(target))
519 ty = getType("char*", sz)
520 val = target.CreateValueFromAddress("somename", addr, ty)
521
522 indeces = []
523 stringList = []
524 descriptions = []
525
526 for i, x in enumerate(val):
527 indeces.append(i * ptrsize)
528 descriptions.append("{}".format(hex(x.deref.GetLoadAddress())))
529 stringList.append("{}".format(x.summary))
530
531 return (indeces, stringList, descriptions)
532
533
534def getCFStringsFromData(data, outputCount):

Callers 1

formatFromDataFunction · 0.85

Calls 2

getTargetFunction · 0.85
getTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…