This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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
or not.

I would also suggest to use "maint profiling ON/OFF" as the
corresponding command, as I think it would be more intuitive than
"maint moncontrol".

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]