Skip to content

Commit 11faafe

Browse files
committed
swift-reflection-test: Spread out the printing a little
1 parent cef6a23 commit 11faafe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tools/swift-reflection-test/swift-reflection-test.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ int doDumpHeapInstance(const char *BinaryFilename) {
388388

389389
uintptr_t instance = PipeMemoryReader_receiveInstanceAddress(&Pipe);
390390
assert(instance);
391-
printf("Parent: instance pointer in child address space: 0x%lx\n",
391+
printf("Instance pointer in child address space: 0x%lx\n",
392392
instance);
393393

394394
uintptr_t isa;
@@ -413,15 +413,19 @@ int doDumpHeapInstance(const char *BinaryFilename) {
413413
uintptr_t isaMask;
414414
if (!swift_reflection_readIsaMask(RC, &isaMask))
415415
errorAndExit("Couldn't read isa mask");
416-
printf("Parent: isa mask in child address space: 0x%lx\n", isaMask);
416+
printf("isa mask in child address space: 0x%lx\n", isaMask);
417417

418418
isa &= isaMask;
419419

420-
printf("Parent: metadata pointer in child address space: 0x%lx\n", isa);
421-
printf("Decoding type reference ...\n");
420+
printf("Metadata pointer in child address space: 0x%lx\n\n", isa);
421+
422+
printf("Type reference:\n");
422423

423424
swift_typeref_t TR = swift_reflection_typeRefForMetadata(RC, isa);
424425
swift_reflection_dumpTypeRef(TR);
426+
printf("\n");
427+
428+
printf("Type info:\n");
425429
swift_reflection_dumpInfoForMetadata(RC, isa);
426430
}
427431
}

0 commit comments

Comments
 (0)