[PATCH] Cygwin: Have gmondump support ssp-generated gmon.out
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Jun 10 10:21:27 GMT 2022
On Jun 8 21:47, Mark Geisert wrote:
> Cygwin tool ssp generates gmon.out files with different address
> resolution than other tools do. Two address bytes per bucket rather than
> the usual four address bytes. Gprof can deal with the difference but
> gmondump can't because the latter's gmon.out header validation fails.
>
> - Remove the offending portion of the header validation code.
> - Make sure all code can handle differing address resolutions.
> - Display address resolution in verbose data dumps.
> - Change "rawarc" to "struct rawarc" in certain sizeof expressions to
> avoid buffer overrun faults.
> - When "-v" (verbose) is specified, note when there is missing bucket
> data or rawarc data.
>
> ---
> winsup/utils/gmondump.c | 35 ++++++++++++++++++++++-------------
> 1 file changed, 22 insertions(+), 13 deletions(-)
Pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list