Cannot get annotated source from gprof and gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The following line produces not output.  I expected a profile result with annotated source.  Am I doing something wrong?

echo "int main() { return 0; }" > test.c && gcc -g -pg test.c && ./a.out && gprof -A a.out gmon.out 

Thank you,

Chris

===

PS: Drop the "-A" and it works fine:

echo "int main() { return 0; }" > test.c && gcc -g -pg test.c && ./a.out && gprof a.out gmon.out 

PPS: This happens on different versions of gcc/gprof on different machines.



      

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux