gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gprof / source.h
CommitLineData
ef368dac 1/* source.h
0eee5820 2
b3adc24a 3 Copyright (C) 2000-2020 Free Software Foundation, Inc.
ef368dac 4
651dbc76 5 This file is part of GNU Binutils.
ef368dac 6
651dbc76
NC
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
ef368dac 11
651dbc76
NC
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
ef368dac 16
651dbc76
NC
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
ef368dac 21\f
252b5132
RH
22#ifndef source_h
23#define source_h
24
252b5132
RH
25typedef struct source_file
26 {
27 struct source_file *next;
ef368dac
NC
28 const char *name; /* Name of source file. */
29 unsigned long ncalls; /* # of "calls" to this file. */
30 int num_lines; /* # of lines in file. */
31 int nalloced; /* Number of lines allocated. */
32 void **line; /* Usage-dependent per-line data. */
252b5132
RH
33 }
34Source_File;
35
ef368dac 36/* Options. */
b34976b6
AM
37
38/* Create annotated output files? */
39extern bfd_boolean create_annotation_files;
252b5132 40
ef368dac 41/* List of directories to search for source files. */
252b5132
RH
42extern Search_List src_search_list;
43
ef368dac 44/* Chain of source-file descriptors. */
252b5132
RH
45extern Source_File *first_src_file;
46
ef368dac 47/* Returns pointer to source file descriptor for PATH/FILENAME. */
3e8f6abf
BE
48extern Source_File *source_file_lookup_path (const char *);
49extern Source_File *source_file_lookup_name (const char *);
ef368dac
NC
50
51/* Read source file SF output annotated source. The annotation is at
52 MAX_WIDTH characters wide and for each source-line an annotation is
53 obtained by invoking function ANNOTE. ARG is an argument passed to
54 ANNOTE that is left uninterpreted by annotate_source().
0eee5820 55
ef368dac
NC
56 Returns a pointer to the output file (which maybe stdout) such
57 that summary statistics can be printed. If the returned file
58 is not stdout, it should be closed when done with it. */
1355568a 59extern FILE *annotate_source
3e8f6abf 60 (Source_File *sf, unsigned int max_width,
1355568a 61 void (*annote) (char *, unsigned int, int, PTR arg),
3e8f6abf 62 PTR arg);
252b5132 63#endif /* source_h */
This page took 0.836544 seconds and 4 git commands to generate.