aboutsummaryrefslogtreecommitdiff
path: root/gprof/gmon.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-03-21 22:07:14 +0000
committerIan Lance Taylor <ian@airs.com>1996-03-21 22:07:14 +0000
commit0f579087abbd52ef11e1c0dc0236e0393ccfaba0 (patch)
tree4219135568b5e7b910d0e79702c9cad8924380e6 /gprof/gmon.h
parent9e4ebb1b3a69d506af5f46c3704458ff5bbfc999 (diff)
downloadgdb-0f579087abbd52ef11e1c0dc0236e0393ccfaba0.zip
gdb-0f579087abbd52ef11e1c0dc0236e0393ccfaba0.tar.gz
gdb-0f579087abbd52ef11e1c0dc0236e0393ccfaba0.tar.bz2
Thu Mar 21 17:02:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
* gprof.c (default_excluded_list): Add "__mcount". * gprof.c (main): Change ifdef __osf__ to __alpha__. * gmon_io.c (gmon_out_read): If BSD44_FORMAT is defined, get the profiling rate from the header. * gmon.h (struct raw_phdr): Only include pad if both __alpha__ and __osf__ are defined. Add new fields if BSD44_FORMAT is defined. * alpha.h (MIN_INSN_SIZE): Define. * core.c (MIN_INSN_SIZE): If not defined, define as 1. (core_sym_class): Ignore debugging symbols. (core_create_line_syms): Use MIN_INSN_SIZE when gathering line information.
Diffstat (limited to 'gprof/gmon.h')
-rw-r--r--gprof/gmon.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gprof/gmon.h b/gprof/gmon.h
index 74cd4b8..488f11e 100644
--- a/gprof/gmon.h
+++ b/gprof/gmon.h
@@ -40,12 +40,17 @@ struct raw_phdr
char low_pc[sizeof (bfd_vma)]; /* base pc address of sample buffer */
char high_pc[sizeof (bfd_vma)]; /* max pc address of sampled buffer */
char ncnt[4]; /* size of sample buffer (plus this header) */
-#ifdef __osf__
+
+#if defined (__alpha__) && defined (__osf__)
/*
* DEC's OSF v3.0 uses 4 bytes of padding to bring the header to
* a size that is a multiple of 8.
*/
char pad[4];
+#elif defined (BSD44_FORMAT)
+ char version[4]; /* version number */
+ char profrate[4]; /* profiling clock rate */
+ char spare[3*4]; /* reserved */
#endif
};