Lines Matching refs:gOutFile
59 FILE* gOutFile = stdout; variable
357 fprintf(gOutFile, "DEX file header:\n"); in dumpFileHeader()
359 fprintf(gOutFile, "magic : '%s'\n", sanitized); in dumpFileHeader()
360 fprintf(gOutFile, "checksum : %08x\n", pHeader.checksum_); in dumpFileHeader()
361 fprintf(gOutFile, "signature : %02x%02x...%02x%02x\n", in dumpFileHeader()
365 fprintf(gOutFile, "file_size : %d\n", pHeader.file_size_); in dumpFileHeader()
366 fprintf(gOutFile, "header_size : %d\n", pHeader.header_size_); in dumpFileHeader()
367 fprintf(gOutFile, "link_size : %d\n", pHeader.link_size_); in dumpFileHeader()
368 fprintf(gOutFile, "link_off : %d (0x%06x)\n", in dumpFileHeader()
370 fprintf(gOutFile, "string_ids_size : %d\n", pHeader.string_ids_size_); in dumpFileHeader()
371 fprintf(gOutFile, "string_ids_off : %d (0x%06x)\n", in dumpFileHeader()
373 fprintf(gOutFile, "type_ids_size : %d\n", pHeader.type_ids_size_); in dumpFileHeader()
374 fprintf(gOutFile, "type_ids_off : %d (0x%06x)\n", in dumpFileHeader()
376 fprintf(gOutFile, "proto_ids_size : %d\n", pHeader.proto_ids_size_); in dumpFileHeader()
377 fprintf(gOutFile, "proto_ids_off : %d (0x%06x)\n", in dumpFileHeader()
379 fprintf(gOutFile, "field_ids_size : %d\n", pHeader.field_ids_size_); in dumpFileHeader()
380 fprintf(gOutFile, "field_ids_off : %d (0x%06x)\n", in dumpFileHeader()
382 fprintf(gOutFile, "method_ids_size : %d\n", pHeader.method_ids_size_); in dumpFileHeader()
383 fprintf(gOutFile, "method_ids_off : %d (0x%06x)\n", in dumpFileHeader()
385 fprintf(gOutFile, "class_defs_size : %d\n", pHeader.class_defs_size_); in dumpFileHeader()
386 fprintf(gOutFile, "class_defs_off : %d (0x%06x)\n", in dumpFileHeader()
388 fprintf(gOutFile, "data_size : %d\n", pHeader.data_size_); in dumpFileHeader()
389 fprintf(gOutFile, "data_off : %d (0x%06x)\n\n", in dumpFileHeader()
399 fprintf(gOutFile, "Class #%d header:\n", idx); in dumpClassDef()
400 fprintf(gOutFile, "class_idx : %d\n", pClassDef.class_idx_); in dumpClassDef()
401 fprintf(gOutFile, "access_flags : %d (0x%04x)\n", in dumpClassDef()
403 fprintf(gOutFile, "superclass_idx : %d\n", pClassDef.superclass_idx_); in dumpClassDef()
404 fprintf(gOutFile, "interfaces_off : %d (0x%06x)\n", in dumpClassDef()
406 fprintf(gOutFile, "source_file_idx : %d\n", pClassDef.source_file_idx_); in dumpClassDef()
407 fprintf(gOutFile, "annotations_off : %d (0x%06x)\n", in dumpClassDef()
409 fprintf(gOutFile, "class_data_off : %d (0x%06x)\n", in dumpClassDef()
416 fprintf(gOutFile, "static_fields_size : %d\n", pClassData.NumStaticFields()); in dumpClassDef()
417 fprintf(gOutFile, "instance_fields_size: %d\n", pClassData.NumInstanceFields()); in dumpClassDef()
418 fprintf(gOutFile, "direct_methods_size : %d\n", pClassData.NumDirectMethods()); in dumpClassDef()
419 fprintf(gOutFile, "virtual_methods_size: %d\n", pClassData.NumVirtualMethods()); in dumpClassDef()
421 fprintf(gOutFile, "static_fields_size : 0\n"); in dumpClassDef()
422 fprintf(gOutFile, "instance_fields_size: 0\n"); in dumpClassDef()
423 fprintf(gOutFile, "direct_methods_size : 0\n"); in dumpClassDef()
424 fprintf(gOutFile, "virtual_methods_size: 0\n"); in dumpClassDef()
426 fprintf(gOutFile, "\n"); in dumpClassDef()
435 fprintf(gOutFile, " #%d : '%s'\n", i, interfaceName); in dumpInterface()
438 fprintf(gOutFile, "<implements name=\"%s\">\n</implements>\n", dotted); in dumpInterface()
451 fprintf(gOutFile, " catches : (none)\n"); in dumpCatches()
456 fprintf(gOutFile, " catches : %d\n", triesSize); in dumpCatches()
461 fprintf(gOutFile, " 0x%04x - 0x%04x\n", start, end); in dumpCatches()
466 fprintf(gOutFile, " %s -> 0x%04x\n", descriptor, it.GetHandlerAddress()); in dumpCatches()
475 fprintf(gOutFile, " 0x%04x line=%d\n", entry.address_, entry.line_); in dumpPositionsCb()
484 fprintf(gOutFile, " 0x%04x - 0x%04x reg=%d %s %s %s\n", in dumpLocalsCb()
620 fprintf(gOutFile, "%06x:", codeOffset + 0x10 + insnIdx * 2); in dumpInstruction()
627 fprintf(gOutFile, " ... "); in dumpInstruction()
631 fprintf(gOutFile, " %02x%02x", bytePtr[0], bytePtr[1]); in dumpInstruction()
634 fputs(" ", gOutFile); in dumpInstruction()
642 fprintf(gOutFile, "|%04x: packed-switch-data (%d units)", insnIdx, insnWidth); in dumpInstruction()
644 fprintf(gOutFile, "|%04x: sparse-switch-data (%d units)", insnIdx, insnWidth); in dumpInstruction()
646 fprintf(gOutFile, "|%04x: array-data (%d units)", insnIdx, insnWidth); in dumpInstruction()
648 fprintf(gOutFile, "|%04x: nop // spacer", insnIdx); in dumpInstruction()
651 fprintf(gOutFile, "|%04x: %s", insnIdx, pDecInsn->Name()); in dumpInstruction()
670 fprintf(gOutFile, " v%d, v%d", pDecInsn->VRegA(), pDecInsn->VRegB()); in dumpInstruction()
673 fprintf(gOutFile, " v%d, #int %d // #%x", in dumpInstruction()
677 fprintf(gOutFile, " v%d", pDecInsn->VRegA()); in dumpInstruction()
683 fprintf(gOutFile, " %04x // %c%04x", in dumpInstruction()
690 fprintf(gOutFile, " v%d, v%d", pDecInsn->VRegA(), pDecInsn->VRegB()); in dumpInstruction()
695 fprintf(gOutFile, " v%d, %04x // %c%04x", pDecInsn->VRegA(), in dumpInstruction()
702 fprintf(gOutFile, " v%d, #int %d // #%x", in dumpInstruction()
709 fprintf(gOutFile, " v%d, #int %d // #%x", in dumpInstruction()
713 fprintf(gOutFile, " v%d, #long %" PRId64 " // #%x", in dumpInstruction()
719 fprintf(gOutFile, " v%d, %s", pDecInsn->VRegA(), indexBuf); in dumpInstruction()
722 fprintf(gOutFile, " v%d, v%d, v%d", in dumpInstruction()
726 fprintf(gOutFile, " v%d, v%d, #int %d // #%02x", in dumpInstruction()
733 fprintf(gOutFile, " v%d, v%d, %04x // %c%04x", in dumpInstruction()
741 fprintf(gOutFile, " v%d, v%d, #int %d // #%04x", in dumpInstruction()
748 fprintf(gOutFile, " v%d, v%d, %s", in dumpInstruction()
752 fprintf(gOutFile, " #%08x", pDecInsn->VRegA()); in dumpInstruction()
762 fprintf(gOutFile, " v%d, #float %f // #%08x", in dumpInstruction()
767 fprintf(gOutFile, " v%d, %08x // +%08x", in dumpInstruction()
771 fprintf(gOutFile, " v%d, v%d", pDecInsn->VRegA(), pDecInsn->VRegB()); in dumpInstruction()
780 fputs(" {", gOutFile); in dumpInstruction()
783 fprintf(gOutFile, "v%d", arg[i]); in dumpInstruction()
785 fprintf(gOutFile, ", v%d", arg[i]); in dumpInstruction()
788 fprintf(gOutFile, "}, %s", indexBuf); in dumpInstruction()
795 fprintf(gOutFile, " v%d, {", arg[0]); in dumpInstruction()
798 fprintf(gOutFile, "v%d", arg[Instruction::kLambdaVirtualRegisterWidth + i]); in dumpInstruction()
800 fprintf(gOutFile, ", v%d", arg[Instruction::kLambdaVirtualRegisterWidth + i]); in dumpInstruction()
803 fputc('}', gOutFile); in dumpInstruction()
813 fputs(" {", gOutFile); in dumpInstruction()
816 fprintf(gOutFile, "v%d", pDecInsn->VRegC() + i); in dumpInstruction()
818 fprintf(gOutFile, ", v%d", pDecInsn->VRegC() + i); in dumpInstruction()
821 fprintf(gOutFile, "}, %s", indexBuf); in dumpInstruction()
832 fprintf(gOutFile, " v%d, #double %f // #%016" PRIx64, in dumpInstruction()
840 fprintf(gOutFile, " ???"); in dumpInstruction()
844 fputc('\n', gOutFile); in dumpInstruction()
863 fprintf(gOutFile, "%06x: " in dumpBytecodes()
887 fprintf(gOutFile, " registers : %d\n", pCode->registers_size_); in dumpCode()
888 fprintf(gOutFile, " ins : %d\n", pCode->ins_size_); in dumpCode()
889 fprintf(gOutFile, " outs : %d\n", pCode->outs_size_); in dumpCode()
890 fprintf(gOutFile, " insns size : %d 16-bit code units\n", in dumpCode()
903 fprintf(gOutFile, " positions : \n"); in dumpCode()
905 fprintf(gOutFile, " locals : \n"); in dumpCode()
927 fprintf(gOutFile, " #%d : (in %s)\n", i, backDescriptor); in dumpMethod()
928 fprintf(gOutFile, " name : '%s'\n", name); in dumpMethod()
929 fprintf(gOutFile, " type : '%s'\n", typeDescriptor); in dumpMethod()
930 fprintf(gOutFile, " access : 0x%04x (%s)\n", flags, accessStr); in dumpMethod()
932 fprintf(gOutFile, " code : (none)\n"); in dumpMethod()
934 fprintf(gOutFile, " code -\n"); in dumpMethod()
938 fputc('\n', gOutFile); in dumpMethod()
946 fprintf(gOutFile, "<constructor name=\"%s\"\n", tmp); in dumpMethod()
949 fprintf(gOutFile, " type=\"%s\"\n", tmp); in dumpMethod()
952 fprintf(gOutFile, "<method name=\"%s\"\n", name); in dumpMethod()
959 fprintf(gOutFile, " return=\"%s\"\n", tmp); in dumpMethod()
961 fprintf(gOutFile, " abstract=%s\n", quotedBool((flags & kAccAbstract) != 0)); in dumpMethod()
962 fprintf(gOutFile, " native=%s\n", quotedBool((flags & kAccNative) != 0)); in dumpMethod()
963 fprintf(gOutFile, " synchronized=%s\n", quotedBool( in dumpMethod()
968 fprintf(gOutFile, " static=%s\n", quotedBool((flags & kAccStatic) != 0)); in dumpMethod()
969 fprintf(gOutFile, " final=%s\n", quotedBool((flags & kAccFinal) != 0)); in dumpMethod()
971 fprintf(gOutFile, " visibility=%s\n>\n", quotedVisibility(flags)); in dumpMethod()
1002 fprintf(gOutFile, "<parameter name=\"arg%d\" type=\"%s\">\n" in dumpMethod()
1008 fprintf(gOutFile, "</constructor>\n"); in dumpMethod()
1010 fprintf(gOutFile, "</method>\n"); in dumpMethod()
1026 fputs("\\\\", gOutFile); in dumpEscapedString()
1029 fputs("\\\"", gOutFile); in dumpEscapedString()
1032 fputs("\\t", gOutFile); in dumpEscapedString()
1035 fputs("\\n", gOutFile); in dumpEscapedString()
1038 fputs("\\r", gOutFile); in dumpEscapedString()
1041 putc(*p, gOutFile); in dumpEscapedString()
1053 fputs("&", gOutFile); in dumpXmlAttribute()
1056 fputs("<", gOutFile); in dumpXmlAttribute()
1059 fputs(""", gOutFile); in dumpXmlAttribute()
1062 fputs("	", gOutFile); in dumpXmlAttribute()
1065 fputs("
", gOutFile); in dumpXmlAttribute()
1068 fputs("
", gOutFile); in dumpXmlAttribute()
1071 putc(*p, gOutFile); in dumpXmlAttribute()
1084 fprintf(gOutFile, "%" PRIu8, pValue->b); in dumpSFieldValue()
1087 fprintf(gOutFile, "%" PRId16, pValue->s); in dumpSFieldValue()
1090 fprintf(gOutFile, "%" PRIu16, pValue->c); in dumpSFieldValue()
1093 fprintf(gOutFile, "%" PRId32, pValue->i); in dumpSFieldValue()
1096 fprintf(gOutFile, "%" PRId64, pValue->j); in dumpSFieldValue()
1099 fprintf(gOutFile, "%f", pValue->f); in dumpSFieldValue()
1102 fprintf(gOutFile, "%f", pValue->d); in dumpSFieldValue()
1108 fputs("\"", gOutFile); in dumpSFieldValue()
1110 fputs("\"", gOutFile); in dumpSFieldValue()
1117 fputs("null", gOutFile); in dumpSFieldValue()
1120 fputs(pValue->z ? "true" : "false", gOutFile); in dumpSFieldValue()
1130 fprintf(gOutFile, "Unexpected static field type: %d", valueType); in dumpSFieldValue()
1152 fprintf(gOutFile, " #%d : (in %s)\n", i, backDescriptor); in dumpSField()
1153 fprintf(gOutFile, " name : '%s'\n", name); in dumpSField()
1154 fprintf(gOutFile, " type : '%s'\n", typeDescriptor); in dumpSField()
1155 fprintf(gOutFile, " access : 0x%04x (%s)\n", flags, accessStr); in dumpSField()
1157 fputs(" value : ", gOutFile); in dumpSField()
1159 fputs("\n", gOutFile); in dumpSField()
1162 fprintf(gOutFile, "<field name=\"%s\"\n", name); in dumpSField()
1164 fprintf(gOutFile, " type=\"%s\"\n", tmp); in dumpSField()
1166 fprintf(gOutFile, " transient=%s\n", quotedBool((flags & kAccTransient) != 0)); in dumpSField()
1167 fprintf(gOutFile, " volatile=%s\n", quotedBool((flags & kAccVolatile) != 0)); in dumpSField()
1169 fprintf(gOutFile, " static=%s\n", quotedBool((flags & kAccStatic) != 0)); in dumpSField()
1170 fprintf(gOutFile, " final=%s\n", quotedBool((flags & kAccFinal) != 0)); in dumpSField()
1172 fprintf(gOutFile, " visibility=%s\n", quotedVisibility(flags)); in dumpSField()
1174 fputs(" value=\"", gOutFile); in dumpSField()
1176 fputs("\"\n", gOutFile); in dumpSField()
1178 fputs(">\n</field>\n", gOutFile); in dumpSField()
1204 fprintf(gOutFile, "%s", oss.str().c_str()); in dumpCfg()
1286 fprintf(gOutFile, "</package>\n"); in dumpClass()
1288 fprintf(gOutFile, "<package name=\"%s\"\n>\n", mangle); in dumpClass()
1305 fprintf(gOutFile, "Class #%d -\n", idx); in dumpClass()
1306 fprintf(gOutFile, " Class descriptor : '%s'\n", classDescriptor); in dumpClass()
1307 fprintf(gOutFile, " Access flags : 0x%04x (%s)\n", pClassDef.access_flags_, accessStr); in dumpClass()
1309 fprintf(gOutFile, " Superclass : '%s'\n", superclassDescriptor); in dumpClass()
1311 fprintf(gOutFile, " Interfaces -\n"); in dumpClass()
1314 fprintf(gOutFile, "<class name=\"%s\"\n", tmp); in dumpClass()
1318 fprintf(gOutFile, " extends=\"%s\"\n", tmp); in dumpClass()
1321 fprintf(gOutFile, " interface=%s\n", in dumpClass()
1323 fprintf(gOutFile, " abstract=%s\n", quotedBool((pClassDef.access_flags_ & kAccAbstract) != 0)); in dumpClass()
1324 fprintf(gOutFile, " static=%s\n", quotedBool((pClassDef.access_flags_ & kAccStatic) != 0)); in dumpClass()
1325 fprintf(gOutFile, " final=%s\n", quotedBool((pClassDef.access_flags_ & kAccFinal) != 0)); in dumpClass()
1327 fprintf(gOutFile, " visibility=%s\n", quotedVisibility(pClassDef.access_flags_)); in dumpClass()
1328 fprintf(gOutFile, ">\n"); in dumpClass()
1343 fprintf(gOutFile, " Static fields -\n"); in dumpClass()
1344 fprintf(gOutFile, " Instance fields -\n"); in dumpClass()
1345 fprintf(gOutFile, " Direct methods -\n"); in dumpClass()
1346 fprintf(gOutFile, " Virtual methods -\n"); in dumpClass()
1351 fprintf(gOutFile, " Static fields -\n"); in dumpClass()
1371 fprintf(gOutFile, " Instance fields -\n"); in dumpClass()
1378 fprintf(gOutFile, " Direct methods -\n"); in dumpClass()
1387 fprintf(gOutFile, " Virtual methods -\n"); in dumpClass()
1405 fprintf(gOutFile, " source_file_idx : %d (%s)\n\n", in dumpClass()
1408 fprintf(gOutFile, "</class>\n"); in dumpClass()
1419 fprintf(gOutFile, "Opened '%s', DEX version '%.3s'\n", in processDexFile()
1430 fprintf(gOutFile, "<api>\n"); in processDexFile()
1445 fprintf(gOutFile, "</package>\n"); in processDexFile()
1451 fprintf(gOutFile, "</api>\n"); in processDexFile()
1460 fprintf(gOutFile, "Processing '%s'...\n", fileName); in processFile()
1485 fprintf(gOutFile, "Checksum verified\n"); in processFile()