From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 39A8C3858D20 for ; Thu, 18 Apr 2024 05:10:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 39A8C3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 39A8C3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713417035; cv=none; b=Z6slPltbZNX5Ep9uuyC6AJ8IGyIavMpSHZIyE570csrKHs1XjXkVmqvWkliKqwZq1h5q2GNdTzR6RxtvfgaU2ab0kTtQQpY+mL5DLha1Bh21cZ4/x85O5NjlqTIcObt3SzYHdjXfMaNw9j2SkFaJgMJP9E5FE56h8psDdu4hkFA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713417035; c=relaxed/simple; bh=C8iMETJA42xHANBU0d7LtZZMi4wrpNpUf3J+6LFx8DM=; h=DKIM-Signature:Date:Message-Id:From:To:Subject:MIME-version; b=meCDE951/DrLlac4QZFKKzG8OEO2TUfeGGLdtWluVvLvideITd4jzzxhRVHxPVC+fFP0UfnhQuQZ+J/1FzvBOPKwzZG0fKK5eXGzxxlqSkC0XSmPyCDpWZLse3L3tQ9exgUCOjJsVXWhgIz6n/bLMVqikgog8or3tTgSY/33JHs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxK2a-0004Ob-Jh; Thu, 18 Apr 2024 01:10:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Ql87SvGvAnDifW0Iwv3nZEusER/z4A6RhcQX0yunsLE=; b=DW7IPrFykRJtykSJ7A+d CspfRmQh9/rRhSHnlyzXWNGNZWqX4WPLuosb7QeIIf7aogIX1MUXrmz69uB/ZzFge08QoZ5Z/ysgO QCiap6Pb8yBARdLgBQWhFfgowmTTCpUDnDFSrosQTc0UXUjfWd+Fw6RgCaDWVeAU2BafOsQcFXtCC jN6ZnwY+zl+h/v0E4pKJCLUwmE9JluxjMusESs2QiJZJ78DxhyzErVNLh6FGEWMNf+Se5yIyjm+yG qrILOZ8zqLSJw++GTO/uAtL0gIyPrSrcQFfkCkDiAVbTy5o/1XfodkSbju891y+ulnufnZLYsw7no 8dl2bgQoAz2Peg==; Date: Thu, 18 Apr 2024 08:10:29 +0300 Message-Id: <86sezjfe7u.fsf@gnu.org> From: Eli Zaretskii To: Guinevere Larsen Cc: gdb-patches@sourceware.org, simark@simark.ca In-Reply-To: <9f1813c5-e74b-4f46-9dde-cefcee757a6d@redhat.com> (message from Guinevere Larsen on Wed, 17 Apr 2024 16:57:32 -0300) Subject: Re: [PATCH v2] gdb: Change "list ." command's error when no debuginfo is available References: <20240416200058.1300296-2-blarsen@redhat.com> <867cgwi4ji.fsf@gnu.org> <3fea82e9-692a-4544-824e-33614a8eb8d5@redhat.com> <86v84fg59w.fsf@gnu.org> <9f1813c5-e74b-4f46-9dde-cefcee757a6d@redhat.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Date: Wed, 17 Apr 2024 16:57:32 -0300 > Cc: gdb-patches@sourceware.org, simark@simark.ca > From: Guinevere Larsen > > On 4/17/24 16:26, Eli Zaretskii wrote: > >>>> > >>>> (gdb) list . > >>>> No debug information available to print source lines at current PC (0x55555555511d). > >>>> or > >>>> (gdb) list . > >>>> No debug information available to print source lines at default location. > >>>> > >>>> The difference now is if the inferior has started already, which is > >>>> controlled by the user and may be useful. > >>> How about this text instead: > >>> > >>> Insufficient debug info for showing source lines at current PC (0x55555555511d). > >>> > >> You mean this change only for the error when the inferior has already > >> started, or to the prefix of both errors? > >> > >> Seeing as the errors are for the same root cause, I'd like to keep the > >> prefix the same. > > I'm afraid I don't understand what is the "prefix" in this case. > > > Sorry, I meant the start of the sentence. I wasn't sure if you were > suggesting the errors should be > >     Insufficient debug info for showing source lines at current PC > (0x55555555511d). >     No debug information available to print source lines at default > location. > > Or if you meant that they should both be changed to start with > "insufficient debug info (...)". I meant to make both begin with "Insufficient debug info", yes. > I think I prefer this second option, So we agree.