From patchwork Tue Feb 27 14:45:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 86452 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6465D3858295 for ; Tue, 27 Feb 2024 14:46:39 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by sourceware.org (Postfix) with ESMTPS id 1B9EF3858C36 for ; Tue, 27 Feb 2024 14:45:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B9EF3858C36 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1B9EF3858C36 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709045157; cv=none; b=FGzeMtBnbuLMg3QcNUYFwMRKifDkxmjMQz3N4TYIh7HiSHP2faRGgjGd68TwRio7BKsdPZeQjMhb8F0dSC12VwYqzUKaNoQT56Q2/AbjZGLAvil567PImkgnqxiHnP10Pebp1jY2kUhtOlNFqWcuGYJy7Bale+V1/nknlvKzGgE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709045157; c=relaxed/simple; bh=mOOCyRLQBwqC6wDGVj49JoNn2YFGQB0tSL+cVO5gUEQ=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=Z3VoVvD+478AQTgxdanA5daRdAy/ZezDAYkM++gk1Rl3NoC6EFnHRer2oQnpRQo/viqiB44xJ8zAobElaZPCNRA+93ZfAg2K+X2lNwsEA+8wF/r3akMLxh7OqEg0YV0YEAkdoJltyknVkn57CDJ1OJZw7D0JGLzbBZ6tkMRxX+8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7c76a566218so207342139f.2 for ; Tue, 27 Feb 2024 06:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1709045154; x=1709649954; darn=sourceware.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5jKQTem14R6YXhKxMLda18OGh4GFxpwKEFAvA4ewfPU=; b=Yr+5sN7Ygw+tcSPSOjXEzl65+Qrl+D16haoCkBxQxYMEeueEhj6ipLCY++tdjXIr2u ILOHpHRwn58G4pXQVck1mgoZ5m8s0SxLmhYAeYTtqiJumuJXYjDkgaHjP3aOt8MidTfp NhI893aeefnY+HZ5lSoc4K0eBYl8DOTUrG9E5I48M3VMc52dgbKWLjKAMP7EFD5TsPOq xpd/06zKSMIPepGMRbDnbTItBosbgPrrOuSYwXkina2SeghI16f6Lz+dnyVz6e7xy5qX zLCMb5gapTgF4auPqW5weMlgRfSGibInhqBI4MVsIaeKBXGrnGRrjOeAv8nIZlGYE8ME ml2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709045154; x=1709649954; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5jKQTem14R6YXhKxMLda18OGh4GFxpwKEFAvA4ewfPU=; b=QVmTajTRskqRbuBgFVdcu/i4ecYRcOkE2EFwbYF+4JLQqMAmNpy+IPAaAyKN5K+LS6 cl3b12zzZmFgB4e2o+EdpCWbQtOJmf7gHXUjg839zj8TIqjpKvUvJ5LoGzsqIe9PSWuV cc6oN4gLJeZxX7FYGHnqA18/W7TvtV36elOyUZJ9FHN4x2n1rP/Ec0eU99QKCP6WuVqB EazE1/IC2FtitfPiMeUHujZMp3NnqH7uR7ZHdm57oxPVzXCc/Xuzy+AmaOh5wN2aiRzC RI4rqq5w3NSKV6M9TQve+z4Qu7CP/nDSN+Y3WCbiRe5C6R4BX86NiKekgBdSRqRAOA/a BH6g== X-Gm-Message-State: AOJu0YwgmRMglwXhSSOn6oGc+Sfe/rEe4U1LOUqO/QuvbJqjuA1ggein mDfxGHK5untMckZzPNJqSyuei4tB58/bp1m/qoiKnDJJkEV3TxTE0he/I0J8PqfJ/aqcCN506hM = X-Google-Smtp-Source: AGHT+IGkU/prCqWOqpMbg6Q/yYyIUo8RaqPcrK3LX9g66WNdTepLJ7huCFRdMxrx/D7d4zBGDXY7lw== X-Received: by 2002:a05:6e02:54b:b0:365:105d:e0b5 with SMTP id i11-20020a056e02054b00b00365105de0b5mr10212701ils.8.1709045154328; Tue, 27 Feb 2024 06:45:54 -0800 (PST) Received: from localhost.localdomain (71-211-170-195.hlrn.qwest.net. [71.211.170.195]) by smtp.gmail.com with ESMTPSA id bm9-20020a056e02330900b00365374d2143sm2212686ilb.5.2024.02.27.06.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:45:54 -0800 (PST) From: Tom Tromey Date: Tue, 27 Feb 2024 07:45:50 -0700 Subject: [PATCH v4 2/4] Fix formatting buglet in python.c MIME-Version: 1.0 Message-Id: <20240227-py-simple-exc-v4-2-3341d342c126@adacore.com> References: <20240227-py-simple-exc-v4-0-3341d342c126@adacore.com> In-Reply-To: <20240227-py-simple-exc-v4-0-3341d342c126@adacore.com> To: gdb-patches@sourceware.org Cc: Tom de Vries X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org python.c has a split string that is missing a space. There's also a stray backslash in this code. Reviewed-By: Tom de Vries --- gdb/python/python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/python/python.c b/gdb/python/python.c index 7b0997c8d52..b2e8f244f85 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1601,7 +1601,7 @@ gdbpy_print_stack (void) /* An error occurred computing the string representation of the error message. */ gdb_printf (gdb_stderr, - _("Error occurred computing Python error" \ + _("Error occurred computing Python error " "message.\n")); PyErr_Clear (); }