This is the mail archive of the
mailing list for the GDB project.
Re: Patch: --enable-profiling
> BTW, will this work with djgpp and/or cygwin?
With DJGPP, it won't, at least not without some changes.
For starters, DJGPP doesn't have moncontrol. It should probably be
possible to write an emulation, provided that someone points me to the
docs of that function (I don't have Linux installed).
In any case, I think that the configure script should check for the
existence of moncontrol even if they say --enable-profiling. Don't
rely on the assumption they know what they are doing!
There might also be some problems with running GDB that was compiled
with -pg. Profiling works in DJGPP by raising SIGPROF from a signal,
and that in turn uses the exception machinery which might interfere with
the debugging exceptions. I will have to try this to see if it works
I would also suggest to use "maint profiling ON/OFF" as the
corresponding command, as I think it would be more intuitive than