From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yeDnLCLskWdNNBgAWB0awg (envelope-from ) for ; Thu, 23 Jan 2025 02:13:38 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ocallahan-org.20230601.gappssmtp.com header.i=@ocallahan-org.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=jQjX0zCM; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A82641E100; Thu, 23 Jan 2025 02:13:38 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 303F81E08E for ; Thu, 23 Jan 2025 02:13:37 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD16D3858420 for ; Thu, 23 Jan 2025 07:13:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD16D3858420 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=ocallahan-org.20230601.gappssmtp.com header.i=@ocallahan-org.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=jQjX0zCM Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by sourceware.org (Postfix) with ESMTPS id D81FE3858D28 for ; Thu, 23 Jan 2025 07:12:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D81FE3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ocallahan.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D81FE3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::733 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737616369; cv=none; b=BzkBEcCYFGSLSLmdmDt7jjoXALMU8iv8lv1TlEJrDWScEpDMwNwErRCauBzD4mY8hvfmaYCk4TqrARTyOL7AzuQehtBVN0u1393kKwlIdyv/WnDF3FTPYtYNj0ZgMhORCvNkew+NrYNZiGe6w6ek/aWboqA7kMb6885p3gvNRHc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737616369; c=relaxed/simple; bh=luOpcw/nPhcAnsMzFZFLECZSiySV67SGmLv2X95y0W0=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=tOQM3ct6RPV7ZnvhJDbsVV/ZdsMUwLoFgTSB6D9dS3eifKHtbgOrIiJ4MxbvpxVEDKf/VJnsnVCAjn+kxPAgWyntWPXSD93RXwiQi7GuNLzr/5D4S8HRyv/iNQU1IYdnARWq+HMShmmto+SzvrVE5RGHRb0LyRZQsZN4b9fUpkA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D81FE3858D28 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7b6e9586b82so50976385a.1 for ; Wed, 22 Jan 2025 23:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ocallahan-org.20230601.gappssmtp.com; s=20230601; t=1737616367; x=1738221167; darn=sourceware.org; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cigqi8hjdOFwrWqh6OSD5Hijfsnp6g0+cnGSbxjT9/4=; b=jQjX0zCMvj0QPCE7ol9qyHc/BMgUn41qMTWr+kJ34KPrKsugvbGhP9fO8LpfCTMBA+ Njj4j4O2zJOEBOXpIGJqEvrZgXJwR31M+EPoy3rZP6yJaapTA5Ij0qdFVSfN2Dg5ap41 FrAB6ASxsap+6JpqdwArd0/kRQKGq1XyFEM+e+O40KU6x1BVnJEAXAijQZY8f7NEoTT6 q/Je+wSl4N2I8ZyYWiuhcBkzpFKVB4IarwEVG1P2fCzvJmaIZxkLqQhTofk/x8fRrpnD xFADvKBORlTUhlFpaxs6G26ROYACZRDdXVF1eUqfmsPyILCMtZxsu9CNZUX4fHWG98m8 O9ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737616367; x=1738221167; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cigqi8hjdOFwrWqh6OSD5Hijfsnp6g0+cnGSbxjT9/4=; b=BxiH3hjUlY9Ol7XAyCyuX4NPT4GgTZMs1IREevf/T5ctIWTLJfGe7MAzwIgee8hZIm 51QrUHYPV59oGlEu1RHhzeQlIU8zrvk8oVPxOfQ0BCyvxP1qI/lfROq6Rus1xQQa1ONP 8m4rR2HC4dBgNo0eqmS8nQqjB6oBGagRbh61nI5hwngk5XdlXsdqLiflSlcGeYGBw4RE cK5wwM2HppyTY50gaIaHVmwdny1gmfiE4I+tFfJoeQoRC5PiF/7/tW7UoH+MO2UyDjIx 8RtLP7OCGlK57+/CbJvsfJ2vM7GBlPStKaLc5qK1YJstnKG0Urv4mBZePuHY7K+9rLhB bJPA== X-Gm-Message-State: AOJu0YxhHoVvaG3hBMYLMLJkZEEYwTEZYdiSmx3LDaH3ZTXbzbPKHu3U rkeDr8xi5GzERSuhLm5J6GXRzTSnaDZKoBQrq/zvkayfUW3P6jcdInHk+99+ENKJbcqOAhSYyIE rS4HXvXs9cQICYgsq6wApEOtJEWf/KQ== X-Gm-Gg: ASbGncucpD5aPKKgKLM4C2Dy5f9qYjwlHFy5S4/jOG4iUciqDDDocdhYv1OM2HwL5RL s2sgwKYSmPyZaCipKJpGUVTZ4cHmA4FvdbhLMeMAK52QZrFX2TCD0dgE+J5/km6s= X-Google-Smtp-Source: AGHT+IEhZ78jwxS9LpPfjbZhf7Benj5Su144B6cLrB8YFJi8ZSEK7mGbMZEsBylviDs9uH/Ycym7rcELp5DXKRE1kZc= X-Received: by 2002:a05:620a:c50:b0:7b7:342:a11e with SMTP id af79cd13be357-7be63289901mr4160662785a.57.1737616367554; Wed, 22 Jan 2025 23:12:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Robert O'Callahan" Date: Thu, 23 Jan 2025 20:12:36 +1300 X-Gm-Features: AbW1kvZqKw_RhRFWy1CTMYcMaGQw5GQikntiXjO5YCkpXTKJA1P-CAOsNFv7-90 Message-ID: Subject: Re: Incompatible implementat ion of 'x' packet in GDB vs LLDB To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: robert@ocallahan.org Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Thu, 23 Jan 2025 at 08:57, Robert O'Callahan wrote: > GDB (client) 16.1 started sending the gdbserver 'x' packet. It follows the > documentation [1] and expects a leading 'b' in the response [2]. > Unfortunately LLDB has supported this packet for quite a long time [3] and > does not expect a leading 'b' in the response. We added support for this > packet to rr last year and followed LLDB's format because it was the only > user of the packet at that time. So GDB 16.1 doesn't work with rr. [4] > > I realize that compatibility between GDB and LLDB flavoured gdbserver > protocols is not a priority for either team, but until now it has actually > worked in practice --- rr hasn't needed a client mode switch. We can add > one, but it will be unfortunate if GDB 16.1 and later is incompatible for > anyone who's installed the latest rr since May 2024. > > Could you make a GDB 16.1 point release that removes the 'b'? AFAIK it > serves no purpose. > It has been pointed out that if you want to return different error codes then you need the 'b'. Is that the rationale? Rob -- Su ot deraeppa sah dna Rehtaf eht htiw saw hcihw, efil lanrete eht uoy ot mialcorp ew dna, ti ot yfitset dna ti nees evah ew; deraeppa efil eht. Efil fo Drow eht gninrecnoc mialcorp ew siht - dehcuot evah sdnah ruo dna ta dekool evah ew hcihw, seye ruo htiw nees evah ew hcihw, draeh evah ew hcihw, gninnigeb eht morf saw hcihw taht.