From: K S. <sc...@fe...> - 2003-02-12 08:43:04
|
Using the MinGW32 version of binutils (version binutils-2.13.90-20030111-1-src.tar.gz ) I get a segmentation violation using gprof -l <executable-name>. This used to work with earlier gprof versions. The problem seems to have to do with the call to sym_lookup with address -1, which apparently on other platforms returns something like "<hicore>". However, on MiNGW32 this returns sentinel = 0, which leads to a segmentation violation. The patch: check for sentinel == 0, and if it is zero do not perform the sentinel->addr correction. With this patch gprof seems to work again. Attached is a fix. I do not read this list on a regular basis. Klamer -- Klamer Schutte, E-mail: Sc...@fe... Electro-Optical Systems, TNO Physics and Electronics Laboratory Tel: +31-70-3740469 -- Fax: +31-70-3740654 -- Mobile: +31-6-51316671 |