X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gprof%2Fsymtab.h;h=35a7cb4ddae7e6028f067f1f044bfba5e3d041f3;hb=d9ebca0c360a65af583829edec98aa879e301351;hp=e717c592e83e30e51f0b9df696de4bf087596130;hpb=37503931d0e0114248e20c27c117f326a6e48963;p=platform%2Fupstream%2Fbinutils.git diff --git a/gprof/symtab.h b/gprof/symtab.h index e717c59..35a7cb4 100644 --- a/gprof/symtab.h +++ b/gprof/symtab.h @@ -1,39 +1,35 @@ /* symtab.h - - Copyright 2000 Free Software Foundation, Inc. -This file is part of GNU Binutils. + Copyright (C) 2000-2014 Free Software Foundation, Inc. -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This file is part of GNU Binutils. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ #ifndef symtab_h #define symtab_h -#include "bfd.h" -#include "gprof.h" - /* For a profile to be intelligible to a human user, it is necessary to map code-addresses into source-code information. Source-code information can be any combination of: (i) function-name, (ii) source file-name, and (iii) source line number. - + The symbol table is used to map addresses into source-code information. */ -#include "source.h" - #define NBBS 10 /* Symbol-entry. For each external in the specified file we gather @@ -41,11 +37,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ typedef struct sym { /* Common information: - + In the symbol-table, fields ADDR and FUNC_NAME are guaranteed to contain valid information. FILE may be 0, if unknown and LINE_NUM maybe 0 if unknown. */ - + bfd_vma addr; /* Address of entry point. */ bfd_vma end_addr; /* End-address. */ const char *name; /* Name of function this sym is from. */ @@ -82,7 +78,7 @@ typedef struct sym double child_time; /* Cumulative ticks in children. */ int index; /* Index in the graph list. */ int top_order; /* Graph call chain top-sort order. */ - bool print_flag; /* Should this be printed? */ + bfd_boolean print_flag; /* Should this be printed? */ struct { double fract; /* What % of time propagates. */ @@ -116,9 +112,12 @@ Sym_Table; extern Sym_Table symtab; /* The symbol table. */ -extern void sym_init PARAMS ((Sym *)); -extern void symtab_finalize PARAMS ((Sym_Table *)); -extern Sym *sym_lookup PARAMS ((Sym_Table *, bfd_vma)); -extern void find_call PARAMS ((Sym *, bfd_vma, bfd_vma)); +extern void sym_init (Sym *); +extern void symtab_finalize (Sym_Table *); +#ifdef DEBUG +extern Sym *dbg_sym_lookup (Sym_Table *, bfd_vma); +#endif +extern Sym *sym_lookup (Sym_Table *, bfd_vma); +extern void find_call (Sym *, bfd_vma, bfd_vma); #endif /* symtab_h */