* h8300-dis.c: Fix formatting.
[binutils-gdb.git] / gprof / gmon_io.h
1 #ifndef gmon_io_h
2 #define gmon_io_h
3
4 #include "bfd.h"
5 #include "gmon.h"
6
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
25 #define INPUT_HISTOGRAM (1<<0)
26 #define INPUT_CALL_GRAPH (1<<1)
27 #define INPUT_BB_COUNTS (1<<2)
28
29 extern int gmon_input; /* what input did we see? */
30 extern int gmon_file_version; /* file version are we dealing with */
31
32 extern bfd_vma get_vma PARAMS ((bfd * abfd, bfd_byte * addr));
33 extern void put_vma PARAMS ((bfd * abfd, bfd_vma val, bfd_byte * addr));
34
35 extern void gmon_out_read PARAMS ((const char *filename));
36 extern void gmon_out_write PARAMS ((const char *filename));
37
38 #endif /* gmon_io_h */