File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
include/swift/RemoteInspection Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -369,12 +369,13 @@ class ReflectionContext
369
369
if (!CmdBuf)
370
370
return false ;
371
371
auto CmdHdr = reinterpret_cast <typename T::SegmentCmd *>(CmdBuf.get ());
372
- // Look for any segment name starting with __DATA.
373
- if (strncmp (CmdHdr->segname , " __DATA" , 6 ) == 0 ) {
372
+ // Look for any segment name starting with __DATA or __AUTH.
373
+ if (strncmp (CmdHdr->segname , " __DATA" , 6 ) == 0 ||
374
+ strncmp (CmdHdr->segname , " __AUTH" , 6 ) == 0 ) {
374
375
auto DataSegmentStart = Slide + CmdHdr->vmaddr ;
375
376
auto DataSegmentEnd = DataSegmentStart + CmdHdr->vmsize ;
376
377
assert (DataSegmentStart > ImageStart.getAddressData () &&
377
- " invalid range for __DATA" );
378
+ " invalid range for __DATA/__AUTH " );
378
379
dataRanges.push_back (std::make_tuple (RemoteAddress (DataSegmentStart),
379
380
RemoteAddress (DataSegmentEnd)));
380
381
}
You can’t perform that action at this time.
0 commit comments