OLD | NEW |
1 /* Dump a gcov file, for debugging use. | 1 /* Dump a gcov file, for debugging use. |
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, | 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, |
3 2012 Free Software Foundation, Inc. | 3 2012 Free Software Foundation, Inc. |
4 Contributed by Nathan Sidwell <nathan@codesourcery.com> | 4 Contributed by Nathan Sidwell <nathan@codesourcery.com> |
5 | 5 |
6 Gcov is free software; you can redistribute it and/or modify | 6 Gcov is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation; either version 3, or (at your option) | 8 the Free Software Foundation; either version 3, or (at your option) |
9 any later version. | 9 any later version. |
10 | 10 |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 alloca ((length + 2) * sizeof (gcov_unsigned_t)); | 572 alloca ((length + 2) * sizeof (gcov_unsigned_t)); |
573 gcov_read_module_info (mod_info, length); | 573 gcov_read_module_info (mod_info, length); |
574 if (flag_dump_aux_modules_only) | 574 if (flag_dump_aux_modules_only) |
575 { | 575 { |
576 if (!mod_info->is_primary) | 576 if (!mod_info->is_primary) |
577 printf ("%s (ident=%u)\n", mod_info->source_filename, | 577 printf ("%s (ident=%u)\n", mod_info->source_filename, |
578 mod_info->ident); | 578 mod_info->ident); |
579 } | 579 } |
580 else | 580 else |
581 { | 581 { |
582 const char *suffix = mod_info->is_primary | 582 const char *primary_suffix = |
583 » ? (mod_info->is_exported ? "primary, exported" : "primary") | 583 mod_info->is_primary ? "primary" : "auxiliary"; |
584 » : "auxiliary"; | 584 const char *export_suffix = ""; |
585 printf (": %s (ident=%u) [%s]", mod_info->source_filename, | 585 const char *include_all_suffix = ""; |
586 mod_info->ident, suffix); | 586 |
| 587 if (mod_info->is_primary) |
| 588 { |
| 589 if (MODULE_EXPORTED_FLAG (mod_info)) |
| 590 export_suffix = ",exported"; |
| 591 if (MODULE_INCLUDE_ALL_AUX_FLAG (mod_info)) |
| 592 include_all_suffix =",include_all"; |
| 593 } |
| 594 printf (": %s (ident=%u) [%s%s%s]", mod_info->source_filename, |
| 595 mod_info->ident, primary_suffix, export_suffix, |
| 596 include_all_suffix); |
587 } | 597 } |
588 } | 598 } |
589 | 599 |
590 /* Read gcov tag GCOV_TAG_PMU_LOAD_LATENCY_INFO from the gcda file and | 600 /* Read gcov tag GCOV_TAG_PMU_LOAD_LATENCY_INFO from the gcda file and |
591 print the contents in a human readable form. */ | 601 print the contents in a human readable form. */ |
592 | 602 |
593 static void | 603 static void |
594 tag_pmu_load_latency_info (const char *filename ATTRIBUTE_UNUSED, | 604 tag_pmu_load_latency_info (const char *filename ATTRIBUTE_UNUSED, |
595 unsigned tag ATTRIBUTE_UNUSED, unsigned length) | 605 unsigned tag ATTRIBUTE_UNUSED, unsigned length) |
596 { | 606 { |
(...skipping 29 matching lines...) Expand all Loading... |
626 | 636 |
627 static void | 637 static void |
628 tag_pmu_tool_header (const char *filename ATTRIBUTE_UNUSED, | 638 tag_pmu_tool_header (const char *filename ATTRIBUTE_UNUSED, |
629 unsigned tag ATTRIBUTE_UNUSED, unsigned length) | 639 unsigned tag ATTRIBUTE_UNUSED, unsigned length) |
630 { | 640 { |
631 gcov_pmu_tool_header_t tool_header; | 641 gcov_pmu_tool_header_t tool_header; |
632 gcov_read_pmu_tool_header (&tool_header, length); | 642 gcov_read_pmu_tool_header (&tool_header, length); |
633 print_pmu_tool_header (stdout, &tool_header, no_newline); | 643 print_pmu_tool_header (stdout, &tool_header, no_newline); |
634 destroy_pmu_tool_header (&tool_header); | 644 destroy_pmu_tool_header (&tool_header); |
635 } | 645 } |
OLD | NEW |