From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 0C9463858C2D for ; Mon, 14 Nov 2022 11:29:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0C9463858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 452031FEC8; Mon, 14 Nov 2022 11:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1668425386; h=from:from:reply-to: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=sFuk+6ZZCB82iWATCzK7rVLlGW8VLgf7I+OfzHcDfzI=; b=C75DLgpvZ2boL1fhaM9BxyyJ87N+POGjzDoOJ+5WkncdcHrNFPhLrWIm7q+E6WBa4TsvhE ONRseYcj7BNsiTzLBlu0wrtywTfPXyvCfFWUp6H2w0Wtn7ZsUcd6+/da5tBT5cpyX6GRGs isuQpn5E4XQ+qG/vrdxP5rkF1hPBjuY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1668425386; h=from:from:reply-to: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=sFuk+6ZZCB82iWATCzK7rVLlGW8VLgf7I+OfzHcDfzI=; b=znNa1V0nb5kmsb87PC9od3W+e7AiQU6kKDLvPss4+HR36dWiVuRBFhGkAf/RhmTf+kOFO+ gpUYdURagvZJ6BCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 28E0113A92; Mon, 14 Nov 2022 11:29:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FRutCKomcmNfegAAMHmgww (envelope-from ); Mon, 14 Nov 2022 11:29:46 +0000 Message-ID: <2c61909c-f5d9-2a69-bbd0-a05a0c39f5f0@suse.de> Date: Mon, 14 Nov 2022 12:29:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2] gdb: make "start" breakpoint inferior-specific Content-Language: en-US To: Simon Marchi , Simon Marchi , gdb-patches@sourceware.org References: <691c5a58-68ae-5fe9-2f3d-34fb7af69ad0@palves.net> <20221108212008.1792090-1-simon.marchi@efficios.com> <1c02e882-c19e-483e-e50c-634fbe282988@suse.de> <4c7b3e65-08a6-913a-8e0f-8d3812bbd005@efficios.com> <5d4c4f03-4aa5-cf36-cb4d-cf8293f247a1@suse.de> From: Tom de Vries In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,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: On 11/11/22 20:03, Simon Marchi via Gdb-patches wrote: >> I'm not sure if this is a better solution: it's more intrusive. > Ah, that would be good too. We wouldn't have to bake in the knowledge > of which languages use which operator. But I'm also a bit scared of > other unintended consequences when looking up the main symbol, as I see > the current_language is involved in some places. To be safe, I'll just > go with my naive patch. Thanks for the suggestion. FWIW, I've just stumbled onto language unknown, and realized that strictly speaking we've got a regression because we used to have: ... $ gdb -q -batch a.out -ex "set language unknown" -ex start Temporary breakpoint 1 at 0x40050b: file /home/vries/hello.c, line 6. Temporary breakpoint 1, main () at /home/vries/hello.c:6 6 printf ("hello\n"); Warning: the current language does not match this frame. $ ... but now we have: ... $ gdb -q -batch a.out -ex "set language unknown" -ex start expression parsing not implemented for language "Unknown" $ ... I don't really care about this, I thought I just mention it. Thanks, - Tom