From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8516 invoked by alias); 14 Oct 2017 04:49:04 -0000 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 Received: (qmail 8506 invoked by uid 89); 14 Oct 2017 04:49:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gproxy2-pub.mail.unifiedlayer.com Received: from gproxy2-pub.mail.unifiedlayer.com (HELO gproxy2-pub.mail.unifiedlayer.com) (69.89.18.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 14 Oct 2017 04:49:02 +0000 Received: from cmgw4 (unknown [10.0.90.85]) by gproxy2.mail.unifiedlayer.com (Postfix) with ESMTP id 750041E099F for ; Fri, 13 Oct 2017 22:49:01 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id MGoy1w0052f2jeq01Gp1eG; Fri, 13 Oct 2017 22:49:01 -0600 X-Authority-Analysis: v=2.2 cv=JNNLi4Cb c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=02M-m0pO-4AA:10 a=zstS-IiYAAAA:8 a=ZKt7uz4uwRG5O4MUYSIA:9 a=nGa1egVTTpm9FSfE:21 a=CDoLEXqNsXZ_aKid:21 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from 184-96-33-178.hlrn.qwest.net ([184.96.33.178]:35586 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1e3ENe-000JsH-2y; Fri, 13 Oct 2017 22:48:58 -0600 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA 7/8] Add truncate_repeat_arguments function References: <20171013205950.22943-1-tom@tromey.com> <20171013205950.22943-8-tom@tromey.com> Date: Sat, 14 Oct 2017 04:49:00 -0000 In-Reply-To: <20171013205950.22943-8-tom@tromey.com> (Tom Tromey's message of "Fri, 13 Oct 2017 14:59:49 -0600") Message-ID: <87vajitjuv.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BWhitelist: no X-Exim-ID: 1e3ENe-000JsH-2y X-Source-Sender: 184-96-33-178.hlrn.qwest.net (bapiya) [184.96.33.178]:35586 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-SW-Source: 2017-10/txt/msg00386.txt.bz2 >>>>> "Tom" == Tom Tromey writes: Tom> The "x" and "list" commands have special repetition behavior: Tom> repeating the command doesn't re-run it with the same arguments, but Tom> rather advances (through memory or the program listing). I found a couple more functions that do something similar, but not purely truncating their arguments. Both show_commands and show_values do: if (from_tty && num_exp) { num_exp[0] = '+'; num_exp[1] = '\0'; } I'm rewriting this patch to allow those uses as well... so you might as well skip this patch if you're reviewing. However, I think the other patches in the series are still ok to read. Tom