summaryrefslogtreecommitdiff
path: root/gprof/symtab.c
Commit message (Collapse)AuthorAgeFilesLines
* * corefile.c: Rename from core.c.Ian Lance Taylor1998-04-281-1/+1
| | | | | | | | | | * corefile.h: Rename from core.h. * Many .c files: Include corefile.h rather than core.h. * Makefile.am (sources): Change core.c to corefile.c. (noinst_HEADERS): Change core.h to corefile.h. ($(OBJECTS)): Depend upon corefile.h rather than core.h. (corefile.o): Rename target from core.o, depend upon corefile.c. * Makefile.in, po/POTFILES.in: Rebuild.
* Fix some gcc -Wall warnings:Ian Lance Taylor1998-03-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * cg_arcs.c (num_cycles): Change to unsigned int. (numarcs): Likewise. (arc_add): Change maxarcs to unsigned int. (cg_assemble): Change index to unsigned int. * cg_arcs.h (num_cycles, numarcs): Update declarations. * cg_print.c (cg_print): Change index to unsigned int. (cg_print_index): Change index, nnames, todo, i, and j to unsigned int. (cg_print_file_ordering): Change symbol_count and index2 to unsigned int. * core.c (symbol_map_count): Change to unsigned int. (core_create_function_syms): Change j to unsigned int. (core_create_line_syms): Add cast to avoid warning. * hist.c (hist_assign_samples): Change j to unsigned int. (hist_print): Change index to unsigned i nt. Add cast to avoid warning. * sym_ids.c (parse_spec): Add casts to avoid warning. * symtab.c (symtab_finalize): Change j to unsigned int. (sym_lookup): Update printf format strings. * symtab.h (Sym_Table): Change len to unsigned int. * tahoe.c (tahoe_reladdr): Add casts to avoid warnings.
* Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>Ian Lance Taylor1998-02-041-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * symtab.c (symtab_finalize): Prefer function symbols over line symbols. (dbg_sym_lookup): Correct debugging messages. * gprof.c (main): --sum implies --line. * cg_print.c (cg_print): When doing line by line profiling, don't use a non-function as a main listing item. * call_graph.c (cg_tally): When using line by line profiling, use the function symbol as the child. * symtab.h (NBBS): Define. (Sym): Add bb_addr and bb_calls fields. * basic_blocks.c (bb_read_rec): Save multiple basic blocks per symbol. (bb_write_blocks): Adjust for multiple basic blocks per symbol. (print_exec_counts): Don't check whether a symbol is the start of a basic block. Print all basic blocks for a symbol. (annotate_with_count): Rewrite to print all basic block counts and to pay attention to width argument. (print_annotated_source): Don't check whether symbol is the start of a basic block.
* * core.c (core_create_function_syms): Move filename and func_nameIan Lance Taylor1996-03-211-4/+4
| | | | | | | | | | | | | | inside ifdef where they are used. * core.c (core_sym_class): Parenthesize && within ||. * symtab.c (symtab_finalize): Correct parenthesization. * cg_print.h (cg_print_file_ordering): Declare. (cg_print_function_ordering): Declare. * __bb_exit_func.c (__bb_exit_func): Replace bcopy with memcpy. * cg_arcs.c (arc_add): Likewise. * cg_print.c (cg_print_function_ordering): Likewise.
* * __bb_exit_func.c: New file, from David Mosberger-Tang.Ken Raeburn1995-03-141-27/+25
| | | | | | | | | | | | | | | Thu Feb 9 16:56:07 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu> * All *.c: More cleanup towards GNU format. * gmon_out.h (struct gmon_hist_hdr, struct gmon_cg_arc_record): replaced sizeof (bfd_vma) by size (char*) because Ken tells me that bfd_vma is only guaranteed to be at least as big as a pointer. (GMON_Record_tag): added explicit enumeration values to ensure compatibility across compilers. * gmon_io.c (get_vma, put_vma): replaced sizeof(bfd_vma) by sizeof(char*).
* ran "indent -gnu"; have not fixed block comment styleKen Raeburn1995-02-081-169/+203
|
* Lots of changes from David Mosberger-Tang; see ChangeLog and NOTES for details:Ken Raeburn1995-02-071-0/+233
Alpha support. Long options. New file format to support more information; backwards compatibility. Line-level profiling, on systems where bfd_find_nearest_line works. Selective display of data.