From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id pVFpDKiNZmkFrgEAWB0awg (envelope-from ) for ; Tue, 13 Jan 2026 13:23:36 -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=VcYI2Q30; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1FA331E0BA; Tue, 13 Jan 2026 13:23:36 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 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_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.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 6D5131E08D for ; Tue, 13 Jan 2026 13:23:35 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id DF6784BA23D8 for ; Tue, 13 Jan 2026 18:23:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF6784BA23D8 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=VcYI2Q30 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 77A9E4BA2E24 for ; Tue, 13 Jan 2026 18:23:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77A9E4BA2E24 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 77A9E4BA2E24 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768328588; cv=none; b=dN6SdNaKwpPhYNoj1g+QRhfdr6Y2zC+lbi+WiQId8t0o41IqprqLEhXr0yd/om5NIH6NWY3IQEdSPobN73yLK8Omr9pwUdLikJ34q8UV/klwf21vkvMGImC+ltQzE2oNV6ES+GimfnqpXWYiUlTX3/djzLIG4Ls48yXWSJPne5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768328588; c=relaxed/simple; bh=LKJCwL1+OkqAthoDHlUlZ57CFgT15ZFjeFqoYeC4Uk8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=wMBgTYcGve4QBqCZpUsiUoKY+RNcNYpORSMQOmbmDQXyjY5NJiXvmf6gHqYPsVox3VTyCf1tQkvxbsnEskWh/RB7MsL+ZUkw9n1Byx/G0NiBYdjZ9JyIzfbT+uJBjX1c+eAvMrN2TAi6JR3Qj5tXBkIM1/qgFnE/jduqMVRQM+c= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77A9E4BA2E24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768328588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GxbO2JJzYlDRh5a5pc574QZyELuAH6UD+I26hCxIN4E=; b=VcYI2Q30NYbGOrcasaMnhNZcZoB9w2TCNvOGqQZjK81EI2M78vTlNacoM4MdHXwktISjPv 3ZvngJdHssd+oLxvIFXnYlrySl55G0s/YiFgcoasRX1fIzA+iP0I4upwvQk+RWDn2NckWf V9Z0+kI3EXSvOc62WSIXdeqRPXkf4hM= Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-649-drR9V0DYOOm5FkPJSkD6Bg-1; Tue, 13 Jan 2026 13:23:07 -0500 X-MC-Unique: drR9V0DYOOm5FkPJSkD6Bg-1 X-Mimecast-MFC-AGG-ID: drR9V0DYOOm5FkPJSkD6Bg_1768328587 Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-5637112ac92so9118007e0c.0 for ; Tue, 13 Jan 2026 10:23:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768328586; x=1768933386; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GxbO2JJzYlDRh5a5pc574QZyELuAH6UD+I26hCxIN4E=; b=XhDi2C2erSU87QrajVcx+I6VGqu8Hms7dkzVjfMTClFU14uu3lRN7IjxXEgJCWcJYQ b3Tptu15KGBcGFoAJNzndN7YZUZqfy3fVM8ZQT/KcGq2Lb9cBV3inMPaevrcStJkc6XT xdkJIFJJKAUDP20qoRM4g0/QDqEDn6qjcmSt5c9KapAQj6xr+H+Bgyae2vKyPRnasBwP PIYjjr/uESLdsyEsjAQvRS45A1wPZIypypWizo0N0dJyzmHWi1Dhx4R0JhBfS0nkziAb koroEOofSWpMrJO7vfRwAWXm70Ca3iLfqEDGHTYq5PxSsGEVHbmmoEJtjFPsmem52gex iA7A== X-Forwarded-Encrypted: i=1; AJvYcCURz3NfO05RjI0/ZcIXT0TlvYNrpHK2mnPixHFHqPbqG8jgUcwMBYDQtRqVd29BgEjYtjq+GcDf26vjgg==@sourceware.org X-Gm-Message-State: AOJu0Yz9iW0L1y2V2Stwj03v+6N5/9+6K2AFpKHVYdhYT3ClLmRPZZ2g pYk/eI4s2HYhNsMdApPzUK4j6V7LUQ/eZT2yEB98aK8Ybs4dQ25zNdExQhRWgruNZlP+vEMxQ70 QY0Nbv9ENbtXy2bq8+WN+0QTR4wDrrC1aikl53zuPC9UySAPpnwHGb/heMNXmo11WZyjcPlg= X-Gm-Gg: AY/fxX4Lvy7gWx2LD3Gw/Mu8zjO4ebQ4YoBuj/zKb9uynJOeyObT1b+9VBUotJnZLrn TevZuQgajOa/fjTBtSUqFK+9JlxbE9WiGu1UXVL5hmbXy88ld98nfLbsUgXMMwjY/DcfN5bpnP9 lz6k3Yp4dHMcaAvjoIG5tnosvyWazJGdQljH/v6ldV7Za+yeGabA2eiiSM7OZhTuUZKpl8rT1b0 MAdm3oA6PlMeRphlrzUPyjjRKc7iYfMDuII97c8yTB76HqoThYSuuVpLF78p/7S7+ATWahmCBxO juk+EMH7maigPWN3vzvDfqrfslDNg/qiClSqXMScJNUh3iMyfgqeJ6Z4afid2O9l9mqPTNiQHWb wZgB2x04YfzJndu6yWr7b3g== X-Received: by 2002:a05:6122:2887:b0:559:7acd:1d3a with SMTP id 71dfb90a1353d-563a0924a58mr65015e0c.2.1768328586393; Tue, 13 Jan 2026 10:23:06 -0800 (PST) X-Received: by 2002:a05:6122:2887:b0:559:7acd:1d3a with SMTP id 71dfb90a1353d-563a0924a58mr65012e0c.2.1768328585991; Tue, 13 Jan 2026 10:23:05 -0800 (PST) Received: from ?IPV6:2804:14d:8084:a5b1::1002? ([2804:14d:8084:a5b1::1002]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-563774362bcsm9795311e0c.22.2026.01.13.10.23.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jan 2026 10:23:05 -0800 (PST) Message-ID: <1eb5e49d-c9fc-4bee-8e38-c6a542337f0a@redhat.com> Date: Tue, 13 Jan 2026 15:23:01 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] gdb: add warning when no native target is available To: Andrew Burgess , Ciaran Woodward , "gdb-patches@sourceware.org" References: <20260109115621.26003-1-guinevere@redhat.com> <20260109115621.26003-3-guinevere@redhat.com> <1d1c0ce0-ab58-4b8b-ba05-119f8401ab8d@redhat.com> <878qe2vo9z.fsf@redhat.com> From: Guinevere Larsen In-Reply-To: <878qe2vo9z.fsf@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Z5tctSl7BkJb1CE7_vbzsYeJHscj8pWON3Zsd83sqF0_1768328587 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 1/12/26 12:33 PM, Andrew Burgess wrote: > Guinevere Larsen writes: > >> On 1/9/26 11:16 AM, Ciaran Woodward wrote: >>>> Hmmm, that's a good point. I think I can add a switch to this, to be >>>> added to the gdbinit (or maybe gdbearlyinit), will cook a v3 in a moment. >>> Would you object to making it configure-time, or would that break your >>> intended use case? > Currently, if a user tries to 'run' when there's no native target > support, GDB gives an error like: > > Don't know how to run. Try "help target". > > Would your new text be better emitted around the time this error is > produced? The actual output of 'help target' is pretty unhelpful for a > confused user I think, it's mostly just a list of the various target > sub-commands. But there is some introductory text at the top, maybe we > could do something smart and inject your new warning there for GDB's > without a native target? > > Both of these would defer the additional text to the point where the > user has tried to do the wrong thing, at which point, printing more text > is OK. Yeah, that was Ciaran's latest feedback, and I think this is a good idea (setting the warning when "Don't know how to run") I don't necessarily think there's much to be gained by injecting the warning in the "help target" message, but I think "help target native" could be much more informative, and since the "don't know how to run" message explicitly looks for a native target, the hint could be more specific as well. I'll look into this for v3 -- Cheers, Guinevere Larsen It/she > > Just a thought. > > Thanks, > Andrew >