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 @@ -371,12 +371,13 @@ class ReflectionContext
371
371
if (!CmdBuf)
372
372
return false ;
373
373
auto CmdHdr = reinterpret_cast <typename T::SegmentCmd *>(CmdBuf.get ());
374
- // Look for any segment name starting with __DATA.
375
- if (strncmp (CmdHdr->segname , " __DATA" , 6 ) == 0 ) {
374
+ // Look for any segment name starting with __DATA or __AUTH.
375
+ if (strncmp (CmdHdr->segname , " __DATA" , 6 ) == 0 ||
376
+ strncmp (CmdHdr->segname , " __AUTH" , 6 ) == 0 ) {
376
377
auto DataSegmentStart = Slide + CmdHdr->vmaddr ;
377
378
auto DataSegmentEnd = DataSegmentStart + CmdHdr->vmsize ;
378
379
assert (DataSegmentStart > ImageStart.getAddressData () &&
379
- " invalid range for __DATA" );
380
+ " invalid range for __DATA/__AUTH " );
380
381
dataRanges.push_back (std::make_tuple (RemoteAddress (DataSegmentStart),
381
382
RemoteAddress (DataSegmentEnd)));
382
383
}
You can’t perform that action at this time.
0 commit comments