From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GTg3CprlMWlhfBkAWB0awg (envelope-from ) for ; Thu, 04 Dec 2025 14:48:42 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=LorK3nQs; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 266371E08D; Thu, 04 Dec 2025 14:48:42 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C59DE1E08D for ; Thu, 04 Dec 2025 14:48:41 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 52F204C3183B for ; Thu, 4 Dec 2025 19:48:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52F204C3183B Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=LorK3nQs Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 657DF4BC7EE0 for ; Thu, 4 Dec 2025 19:47:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 657DF4BC7EE0 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 657DF4BC7EE0 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764877655; cv=none; b=Jpgi7DQNp/SOs19cTOhOKsLPxmcFH8pICgnyDA5O9p9iVLmVfGs3XeEh8jW9K8bRpxOvFb0tx6tlhmu2ocSj8TwCilj5Vhpj3ANj8MLY8gvG9sWolG/0y39j5XoBNbaA+6BQxjR7MR1S3fFQU4QKqlfwmQm7oQ2TkYB2lYwP9rg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764877655; c=relaxed/simple; bh=J+hM/by/ynNr/ItfaoNS6RcxpIHBAE0wMC8aH322XSE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RTZlFLUcDsQ5Ytcl0ilpZ8EgFx3KUEWC/frzDGYNsmg+C4COtT3Y606xmxWrwCc8m4+Q/4N/Kj/LMhqVMAMyQyHfcyr6rD2iIjEfFgsYLdNqqPuc2W+nFQ5iM3PtmaNWAeCjweMKr0RCTzko3lXAe1O6scW2asMbdF2KIL2yXdg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 657DF4BC7EE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764877655; 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=kxJN/crOaEzdswTTJYaKnks9plcB4p10lvcmPyn2DPI=; b=LorK3nQslMSCFsqypfb4suhq1K+Eh3Foor65qB+fOn1nPGkv+bMaDVQQFBMzlEceSenCjX T3HGEsS8V3xU2yuWxL0pVC7ZC0m1xCXtMiAUVjFZ6Zq8Oq5Sr1DFOTRYdUK67SSfLIg/ek l4xKXMUifp5OcvUs5GCixGFKMHBl6Ak= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-206-b8aI_Z3CPW2TCWIlqxh5lA-1; Thu, 04 Dec 2025 14:47:33 -0500 X-MC-Unique: b8aI_Z3CPW2TCWIlqxh5lA-1 X-Mimecast-MFC-AGG-ID: b8aI_Z3CPW2TCWIlqxh5lA_1764877651 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4779edba8f3so8415415e9.3 for ; Thu, 04 Dec 2025 11:47:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764877650; x=1765482450; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kxJN/crOaEzdswTTJYaKnks9plcB4p10lvcmPyn2DPI=; b=H9QZCfs5pLh/m5nEFPH7bqIbXGAAi049HPo2gFv+vR5+aDVlDKzf1M0pDCJPG9F0mK 8Kvb6NTKjUc9w0ZnExFQKR1gl2AtE8oA89euVbJVKFiQIop9AVdunAust4c8q5q/m5PT ttVRxfVZGmzUACZQ0sGAwtTbcaVJ5hJObfLfeliq6ecofQI+TXtFRLokq+u0BG4rhLmN KQGlwHdhwZ9M7B9oojENWP8CMF2uD6fUuvu4xvtorXUv3dvKW1UWOG5JyAnk3nU6CFTd VsV6NFxOEOg+B8p/t1GZV442O5uApSQcfNb/HlLo/cDMcX2JQBrqPpGjuFkp/AtxKQ1f 0uvA== X-Gm-Message-State: AOJu0YzUqSLWwT8kcPJohKe8HNOVuXIe5dAh9chIB4uqi51Wl0vE5oSa 0L8j8mgksvoBh45IaPrFAb0oUcMxExu999ykCyjWu9mWa8gRAPH1T2Tkp111uy4t5BYydr4rqV1 l3HU49YDa75V/0jMBEpJHwgc9SJcL33ZpmEA5nONIvGBHvhg2z0qkvMfKq2VEQT/QHjl4ZwouKD efxJacFLVFO0V8Mov/rShiec1eQzsXE0ZqR6NdbM4hfkno3VM= X-Gm-Gg: ASbGncsaCea0vaRHXkxj23z2g6KH3wSvV1lJJdaIl0epNgILD3h4Fc5X2ObwgZL3xMl z0eIEL/rNf6velCVYOw7Ap8+fGr5TFV37+7oI7vwKARPhDuYBAcEXewmio05i3gkIjAVuDMzKet CwsQskSHayn73NSBBml3iji3bNyg3lj6mo2xJZk90wFYxw7T+bQQAJZfI/z36bHkUBBJTy/w9ez Bkm3by1Pur53CAUf3lMK3AjCp8w82P7t88f5tpOC7qncDaSCM+RBBeZNKPnIGmBKgZc/JEd+Cax 10vPISXsxoru0bh7fDsdHiPfWRDa5sLpFfLmSFpW/0Hex7vg/Bt40/ijQIBlO1OGJyr29zXtXW6 v0baV X-Received: by 2002:a05:600c:4710:b0:477:63b5:6f76 with SMTP id 5b1f17b1804b1-4792af3dc89mr64434845e9.25.1764877650360; Thu, 04 Dec 2025 11:47:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2yvH2YDlg+1eAGAXyeuqu9Rtl5WBxsdpwt0FnEyMgxJ1t5FWCr2Vdbx/+3rMGAwl0jTFypg== X-Received: by 2002:a05:600c:4710:b0:477:63b5:6f76 with SMTP id 5b1f17b1804b1-4792af3dc89mr64434695e9.25.1764877649950; Thu, 04 Dec 2025 11:47:29 -0800 (PST) Received: from localhost ([31.111.84.207]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47930ca15adsm48741585e9.13.2025.12.04.11.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Dec 2025 11:47:29 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/2] Fixes and tests related to new boxed hint startup text Date: Thu, 4 Dec 2025 19:47:23 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 0cO_10zkS5S50yhdI6TCR66MMpioswqWhWKjvL9-2Iw_1764877651 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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~public-inbox=simark.ca@sourceware.org Merged the first two patches from V1. Here are the second two patches rebased. In v2: - Resolved conflicts with an upstream patch that touched the same area. - Work around a regression in debuginfod tests caused by changing get_chars_per_line returning unsigned. Thanks, Andrew --- Andrew Burgess (2): gdb: make get_chars_per_line return an unsigned value gdb: fix crashes and weird output from new boxed hint text gdb/cli-out.c | 10 +- gdb/main.c | 5 +- gdb/testsuite/gdb.base/startup-hints.exp | 144 +++++++++++++++++++++++ gdb/top.c | 23 +++- gdb/utils.c | 3 +- gdb/utils.h | 5 +- 6 files changed, 173 insertions(+), 17 deletions(-) create mode 100644 gdb/testsuite/gdb.base/startup-hints.exp base-commit: c54f3d5be665d325fb37cf486282fc1916976618 -- 2.47.1