#include <stdio.h>
#include <unistd.h>
#include "basic_blocks.h"
-#include "core.h"
+#include "corefile.h"
#include "gmon_io.h"
#include "gmon_out.h"
#include "gprof.h"
if (fread (&nblocks, sizeof (nblocks), 1, ifp) != 1)
{
- fprintf (stderr, "%s: %s: unexpected end of file\n", whoami, filename);
+ fprintf (stderr, _("%s: %s: unexpected end of file\n"), whoami, filename);
done (1);
}
{
user_warned = TRUE;
fprintf (stderr,
- "%s: warning: ignoring basic-block exec counts (use -l or --line)\n",
+ _("%s: warning: ignoring basic-block exec counts (use -l or --line)\n"),
whoami);
}
}
{
if (sym->ncalls > 0 || ! ignore_zeros)
{
- printf ("%s:%d: (%s:0x%lx) %d executions\n",
- sym->file ? sym->file->name : "<unknown>", sym->line_num,
+ printf (_("%s:%d: (%s:0x%lx) %d executions\n"),
+ sym->file ? sym->file->name : _("<unknown>"), sym->line_num,
sym->name, sym->addr, sym->ncalls);
}
for (j = 0; j < NBBS && sym->bb_addr[j]; j ++)
{
if (sym->bb_calls[j] > 0 || ! ignore_zeros)
{
- printf ("%s:%d: (%s:0x%lx) %d executions\n",
- sym->file ? sym->file->name : "<unknown>", sym->line_num,
+ printf (_("%s:%d: (%s:0x%lx) %d executions\n"),
+ sym->file ? sym->file->name : _("<unknown>"), sym->line_num,
sym->name, sym->bb_addr[j], sym->bb_calls[j]);
}
}
if (bb_table_length > 0)
{
- fprintf (ofp, "\n\nTop %d Lines:\n\n Line Count\n\n",
+ fprintf (ofp, _("\n\nTop %d Lines:\n\n Line Count\n\n"),
bb_table_length);
/* abuse line arrays---it's not needed anymore: */
free (sf->line);
sf->line = 0;
- fprintf (ofp, "\nExecution Summary:\n\n");
- fprintf (ofp, "%9ld Executable lines in this file\n",
+ fprintf (ofp, _("\nExecution Summary:\n\n"));
+ fprintf (ofp, _("%9ld Executable lines in this file\n"),
num_executable_lines);
- fprintf (ofp, "%9ld Lines executed\n", num_lines_executed);
- fprintf (ofp, "%9.2f Percent of the file executed\n",
+ fprintf (ofp, _("%9ld Lines executed\n"), num_lines_executed);
+ fprintf (ofp, _("%9.2f Percent of the file executed\n"),
num_executable_lines
? 100.0 * num_lines_executed / (double) num_executable_lines
: 100.0);
- fprintf (ofp, "\n%9d Total number of line executions\n", sf->ncalls);
- fprintf (ofp, "%9.2f Average executions per line\n",
+ fprintf (ofp, _("\n%9d Total number of line executions\n"), sf->ncalls);
+ fprintf (ofp, _("%9.2f Average executions per line\n"),
num_executable_lines
? sf->ncalls / (double) num_executable_lines
: 0.0);