From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 346F03858D1E for ; Tue, 20 Jun 2023 13:46:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 346F03858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687268785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QwKAfRLXbsXFvakX7ys1yGvbVm/h6Jd2wZ5Iu+f6zBU=; b=TEBZ3HniPUkOoHhPzLQkEdnyDUmRKSKNbMOe2o/O4wWF2mmARAmkJ48Y2yAgP7voddF2iU 1i/+mARBCiWhdUVu0FDrV1fzn5PWi4jTaZa2+qV3s0uDtMdZ192hzlpH5ZsZQ07+BnUwsr Pp7ZZ/F792Gpi+R+g7sB2plXw+XoDtM= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-246-TYzPM5SeMPixYs7e576ZHA-1; Tue, 20 Jun 2023 09:46:24 -0400 X-MC-Unique: TYzPM5SeMPixYs7e576ZHA-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-62ff0c52cdcso60914426d6.2 for ; Tue, 20 Jun 2023 06:46:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687268783; x=1689860783; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QwKAfRLXbsXFvakX7ys1yGvbVm/h6Jd2wZ5Iu+f6zBU=; b=VkfJAZA/udxf1QzBibcPbnmwYXHAWjZXTLiuFbxxXLonJU3oMCMXxCX+ZE9WhLm8PY 8xwG1zRRADU6NKn6xurr2Coe8BJfEdXPC42oh33mx4JhqMVLF2orLBk1WuAzuEDfFCH5 fAzLcKsYUXOkvIuXhYFq4m870H78gQZfNzj8BlywVfGE8nYQxlqLs1KvDloE4ZVtKgAf ibj54iMZ6JX9oTC2274q10fvOzmj35MtpOCso00uPrEFUBBzSJdTfAzTbTUAKD+jpD/T Xb22i5dpJxI3eVEQ7ZqxEJQzymd4YMFnTfcm/14Qde/WTKwwkfuiy71jiwbPLV4tP3XH ftgw== X-Gm-Message-State: AC+VfDwaUMzcHAv7N7+h0U8bnynL89mLTqanIzkuPWfguEVm2uy80lD2 eNfphV+xbWx/q+Mcw/sf9ShtxKcvIAeJTi7wlM4khTch0V2taIfbfS/QBcLz9YYUpfbBnGVIClG 2E20RKAQlf6AgI0f5Ztn6ZA== X-Received: by 2002:ad4:5deb:0:b0:62f:e488:a458 with SMTP id jn11-20020ad45deb000000b0062fe488a458mr15595814qvb.0.1687268783592; Tue, 20 Jun 2023 06:46:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bBrleI+XY5A937CH/ghWscNtyrbixsSl+SH0gXqOvNtEh/tDWvyBQq0RazTMYwKY1AxpLBQ== X-Received: by 2002:ad4:5deb:0:b0:62f:e488:a458 with SMTP id jn11-20020ad45deb000000b0062fe488a458mr15595792qvb.0.1687268783137; Tue, 20 Jun 2023 06:46:23 -0700 (PDT) Received: from [192.168.0.129] (ip-94-112-225-44.bb.vodafone.cz. [94.112.225.44]) by smtp.gmail.com with ESMTPSA id o3-20020a0cf4c3000000b006301d3cab9csm1274849qvm.27.2023.06.20.06.46.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jun 2023 06:46:22 -0700 (PDT) Message-ID: <72e04013-9a92-cde5-2312-61e5d5bc4f3d@redhat.com> Date: Tue, 20 Jun 2023 15:46:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/3] gdb/cli: Improve UX when using list with no args To: Eli Zaretskii Cc: gdb-patches@sourceware.org References: <20230620122910.2459069-1-blarsen@redhat.com> <20230620122910.2459069-3-blarsen@redhat.com> <83ttv25jw0.fsf@gnu.org> From: Bruno Larsen In-Reply-To: <83ttv25jw0.fsf@gnu.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 20/06/2023 15:43, Eli Zaretskii wrote: >> Cc: Bruno Larsen >> Date: Tue, 20 Jun 2023 14:29:12 +0200 >> From: Bruno Larsen via Gdb-patches >> >> --- a/gdb/NEWS >> +++ b/gdb/NEWS >> @@ -78,6 +78,11 @@ >> functionality is also available for dprintf when dprintf-style is >> 'gdb'. >> >> +* Using the 'list' command with no arguments in a situation where the >> + command would attempt to list past the end of the file, instead of >> + erroring out, it will now warn the user that the end of file has been >> + reached and the default location. > ^^^^^^^^^^^^^^^^^^^^^^^^ > What is that "and the default location" part about? It looks > misplaced. > Oops. It is incomplete. It should have been "And the default location will be printed", default location being either where the inferior is (if it has started already) or around the main function. -- Cheers, Bruno