Make gmon work a bit on sparcv9 machines.
This commit is contained in:
parent
780f68fd71
commit
19b86fa1f6
6
gnu/dist/toolchain/gprof/gmon.h
vendored
6
gnu/dist/toolchain/gprof/gmon.h
vendored
@ -39,7 +39,7 @@ struct raw_phdr
|
||||
{
|
||||
/* FIXME: Checking a host compiler define means that we can't use
|
||||
a cross gprof to the alpha. */
|
||||
#ifdef __alpha__
|
||||
#if defined(__alpha__) || defined(__arch64__)
|
||||
char low_pc[8]; /* base pc address of sample buffer */
|
||||
char high_pc[8]; /* max pc address of sampled buffer */
|
||||
#else
|
||||
@ -59,7 +59,7 @@ struct old_raw_phdr
|
||||
{
|
||||
/* FIXME: Checking a host compiler define means that we can't use
|
||||
a cross gprof to the alpha. */
|
||||
#ifdef __alpha__
|
||||
#if defined(__alpha__) || defined(__arch64__)
|
||||
char low_pc[8]; /* base pc address of sample buffer */
|
||||
char high_pc[8]; /* max pc address of sampled buffer */
|
||||
#else
|
||||
@ -136,7 +136,7 @@ struct raw_arc
|
||||
{
|
||||
/* FIXME: Checking a host compiler define means that we can't use
|
||||
a cross gprof to the alpha. */
|
||||
#ifdef __alpha__
|
||||
#if defined(__alpha__) || defined(__arch64__)
|
||||
char from_pc[8];
|
||||
char self_pc[8];
|
||||
char count[8];
|
||||
|
4
gnu/dist/toolchain/gprof/gmon_io.c
vendored
4
gnu/dist/toolchain/gprof/gmon_io.c
vendored
@ -296,7 +296,11 @@ DEFUN (gmon_out_read, (filename), const char *filename)
|
||||
++narcs;
|
||||
from_pc = get_vma (core_bfd, (bfd_byte *) raw_arc.from_pc);
|
||||
self_pc = get_vma (core_bfd, (bfd_byte *) raw_arc.self_pc);
|
||||
#if defined(__arch64__)
|
||||
count = bfd_get_64 (core_bfd, (bfd_byte *) raw_arc.count);
|
||||
#else
|
||||
count = bfd_get_32 (core_bfd, (bfd_byte *) raw_arc.count);
|
||||
#endif
|
||||
DBG (SAMPLEDEBUG,
|
||||
printf ("[gmon_out_read] frompc 0x%lx selfpc 0x%lx count %lu\n",
|
||||
(unsigned long) from_pc, (unsigned long) self_pc, count));
|
||||
|
Loading…
Reference in New Issue
Block a user