comparison gcc/gcov-dump.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Dump a gcov file, for debugging use. 1 /* Dump a gcov file, for debugging use.
2 Copyright (C) 2002-2018 Free Software Foundation, Inc. 2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 Contributed by Nathan Sidwell <nathan@codesourcery.com> 3 Contributed by Nathan Sidwell <nathan@codesourcery.com>
4 4
5 Gcov is free software; you can redistribute it and/or modify 5 Gcov is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option) 7 the Free Software Foundation; either version 3, or (at your option)
136 136
137 static void 137 static void
138 print_version (void) 138 print_version (void)
139 { 139 {
140 printf ("gcov-dump %s%s\n", pkgversion_string, version_string); 140 printf ("gcov-dump %s%s\n", pkgversion_string, version_string);
141 printf ("Copyright (C) 2018 Free Software Foundation, Inc.\n"); 141 printf ("Copyright (C) 2020 Free Software Foundation, Inc.\n");
142 printf ("This is free software; see the source for copying conditions.\n" 142 printf ("This is free software; see the source for copying conditions.\n"
143 "There is NO warranty; not even for MERCHANTABILITY or \n" 143 "There is NO warranty; not even for MERCHANTABILITY or \n"
144 "FITNESS FOR A PARTICULAR PURPOSE.\n\n"); 144 "FITNESS FOR A PARTICULAR PURPOSE.\n\n");
145 } 145 }
146 146
313 name = gcov_read_string (); 313 name = gcov_read_string ();
314 printf (" %s", name ? name : "NULL"); 314 printf (" %s", name ? name : "NULL");
315 unsigned line_start = gcov_read_unsigned (); 315 unsigned line_start = gcov_read_unsigned ();
316 unsigned column_start = gcov_read_unsigned (); 316 unsigned column_start = gcov_read_unsigned ();
317 unsigned line_end = gcov_read_unsigned (); 317 unsigned line_end = gcov_read_unsigned ();
318 printf (":%u:%u:%u", line_start, column_start, line_end); 318 unsigned column_end = gcov_read_unsigned ();
319 printf (":%u:%u-%u:%u", line_start, column_start,
320 line_end, column_end);
319 if (artificial) 321 if (artificial)
320 printf (", artificial"); 322 printf (", artificial");
321 } 323 }
322 } 324 }
323 } 325 }