From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7542 invoked by alias); 6 Jan 2011 19:52:11 -0000 Received: (qmail 7533 invoked by uid 22791); 6 Jan 2011 19:52:10 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Jan 2011 19:52:05 +0000 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id p06Jq2Vc014364 for ; Thu, 6 Jan 2011 11:52:03 -0800 Received: from qwh6 (qwh6.prod.google.com [10.241.194.198]) by kpbe18.cbf.corp.google.com with ESMTP id p06Jo7wM021773 for ; Thu, 6 Jan 2011 11:52:01 -0800 Received: by qwh6 with SMTP id 6so18761918qwh.7 for ; Thu, 06 Jan 2011 11:52:01 -0800 (PST) Received: by 10.229.248.6 with SMTP id me6mr21740063qcb.54.1294343520823; Thu, 06 Jan 2011 11:52:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.7.132 with HTTP; Thu, 6 Jan 2011 11:51:29 -0800 (PST) In-Reply-To: References: <20110105193621.A8CBF190B3A@elbrus2.mtv.corp.google.com> <201101052257.30806.pedro@codesourcery.com> <201101052334.13475.pedro@codesourcery.com> From: Paul Pluzhnikov Date: Thu, 06 Jan 2011 19:52:00 -0000 Message-ID: Subject: Re: [patch] Add "debug jit" for easier tracing of JIT support internals To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org, Doug Evans Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00139.txt.bz2 On Thu, Jan 6, 2011 at 11:44 AM, Tom Tromey wrote: > Could we go even further, and just specify the name of the parameter and > then some generic documentation about it? =A0The set- and show-docs are > usually pretty useless. > > Something like: > > add_setshow_zinteger_cmd ("jit", class_maintenance, &jit_debug, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_("JIT debugging"), > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_("When non-zero, JIT = debugging is enabled."), > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&setdebuglist, &showde= buglist); > > Then: > > (gdb) help show debug jit > Show the "JIT debugging" setting. > Usage: show debug jit > When non-zero, JIT debugging is enabled. Just to avoid any confusion, "JIT debugging" (as in "GDB will set breakpoin= t, read in-memory JITed files, etc.") is (currently) always enabled. What 'set debug jit 1' turns on is debugging of what "JIT debugging" is doing internally :-) --=20 Paul Pluzhnikov