From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32361 invoked by alias); 13 Feb 2008 01:54:22 -0000 Received: (qmail 32274 invoked by uid 22791); 13 Feb 2008 01:54:21 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Feb 2008 01:53:48 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m1D1rkuP006785 for ; Tue, 12 Feb 2008 20:53:46 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1D1rjKQ004719 for ; Tue, 12 Feb 2008 20:53:45 -0500 Received: from opsy.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1D1rj5V029864; Tue, 12 Feb 2008 20:53:45 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 00C61378663; Tue, 12 Feb 2008 18:09:47 -0700 (MST) To: gdb-patches@sources.redhat.com Subject: Re: Patch: 'show args' -vs- '--args' References: From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Wed, 13 Feb 2008 01:54:00 -0000 In-Reply-To: (Tom Tromey's message of "Sun\, 03 Feb 2008 13\:03\:10 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2008-02/txt/msg00205.txt.bz2 Ping. (I hope it isn't too early for that.) Tom> This patch fixes the problem by using the (apparently as-yet-unused) Tom> 'pre_show_hook' of the show command. Tom> ChangeLog: Tom> 2008-02-03 Tom Tromey Tom> * symfile.c (_initialize_symfile): Update. Tom> * solib.c (_initialize_solib): Update. Tom> * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set Tom> pre_show_hook. Tom> * infcmd.c (notice_args_read): Change arguments. Don't print Tom> value. Tom> (_initialize_infcmd): Update. Tom> * command.h (add_setshow_optional_filename_cmd): Add Tom> 'pre_show_func' argument. Tom