Re: [RFA] patch to add 'maint profile-gdb' command

Eli Zaretskii
2001-09-10T13:43:00Z

> Date: Mon, 10 Sep 2001 11:52:45 -0700
> From: Jason Molenda <jason-swarelist@molenda.com>
>
> > i think the command should always be present. looking at the patch, it
> > appears to have started out that way.
>
> I'd disagree. First, these functions are not very portable. Our
> very own RH 6.2 box that is sourceware.cygnus.com does not have
> moncontrol() or monstart(), and -pg doesn't seem to be usable at
> all. My RH 7.1 box at home works fine. MacOS X's FreeBSD works
> fine.

We could autoconfiscate this, couldn't we?

> I just re-read the man page, it doesn't matter where it's disabled. The
> gmon.out file is going to be overwritten each time gdb is run no matter
> what.

Not if we use monstartup: the file is not touched unless monstartup is
called.