From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12268 invoked by alias); 21 Jan 2002 03:27:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12199 invoked from network); 21 Jan 2002 03:26:42 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 21 Jan 2002 03:26:42 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id BAA533F0E; Sun, 20 Jan 2002 22:26:35 -0500 (EST) Message-ID: <3C4B8A6B.30407@cygnus.com> Date: Sun, 20 Jan 2002 19:27:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Profiling gdb? References: <20020120210343.A22638@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00226.txt.bz2 > What was the final status of the profiling patch? It's a feature I'd > really like to see in (having it in means fewer local changes in my > tree when I'm testing the speed of something!). Interesting timing, I was just looking over the same thing. My take is: Part 1: ``(gdb) maint set moncontrol {on,off}'' A home for the command doco (gdb.texinfo) has been created. The necessary framework (maint set) has been added along with the function to correctly implement a boolean command. Note: http://sources.redhat.com/gdb/ari/#var_boolean The command should always be present but the call should be wrapped in a check that the function exits. The function moncontrol() is in both the libc and libc_p libraries (at least on correctly implemented systems :-) so this is correct. Part 2: Add the -- Which adds the compile/link -gp flag. Eli's comment that you don't need to link with -gp is correct. Perhaphs the should let the user control the compile and link flags. Don't remember where the doco for this goes. Part 3: (new) ``(gdb) maint set monstartup Can anyone think why we shouldn't make this visible. Of course the user will need to somehow obtain the magic addresses from somewhere. Same as moncontrol(). Andrew