common.h (EM_CRIS): New machine number.
[deliverable/binutils-gdb.git] / gprof / gmon_io.h
CommitLineData
252b5132
RH
1#ifndef gmon_io_h
2#define gmon_io_h
3
4#include "bfd.h"
5#include "gmon.h"
6
5af11cab
AM
7/* Some platforms need to put stdin into binary mode, to read
8 binary files. */
9#include "sysdep.h"
10#ifdef HAVE_SETMODE
11#ifndef O_BINARY
12#ifdef _O_BINARY
13#define O_BINARY _O_BINARY
14#define setmode _setmode
15#else
16#define O_BINARY 0
17#endif
18#endif
19#if O_BINARY
20#include <io.h>
21#define SET_BINARY(f) do { if (!isatty(f)) setmode(f,O_BINARY); } while (0)
22#endif
23#endif
24
252b5132
RH
25#define INPUT_HISTOGRAM (1<<0)
26#define INPUT_CALL_GRAPH (1<<1)
27#define INPUT_BB_COUNTS (1<<2)
28
29extern int gmon_input; /* what input did we see? */
30extern int gmon_file_version; /* file version are we dealing with */
31
32extern bfd_vma get_vma PARAMS ((bfd * abfd, bfd_byte * addr));
33extern void put_vma PARAMS ((bfd * abfd, bfd_vma val, bfd_byte * addr));
34
35extern void gmon_out_read PARAMS ((const char *filename));
36extern void gmon_out_write PARAMS ((const char *filename));
37
38#endif /* gmon_io_h */
This page took 0.065095 seconds and 4 git commands to generate.