From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id lgWfC8pQ2l9FMAAAWB0awg (envelope-from ) for ; Wed, 16 Dec 2020 13:24:10 -0500 Received: by simark.ca (Postfix, from userid 112) id 14F7E1F0AA; Wed, 16 Dec 2020 13:24:10 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 158A61E552 for ; Wed, 16 Dec 2020 13:24:06 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8991F3840C33; Wed, 16 Dec 2020 18:24:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8991F3840C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1608143045; bh=DGduNvJzzfCvbtToIQa1UOGlVkW19zuu1Qn55RQaSvw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=gWk9WGQtur9pLxgRbtoJVF320XYj7B2rxUDPuMBk3bhbzyqGw5k6P0fXNGmEoctjK BHDGlxFIh3LFjZwGQGloD19CzGKTqQcORsiykgJVs4O9+YOx3xeBV0mXPerNPhpFGx rs29FXTRcYfooa0X7JOc6KFEyAyDyBeTn0s8XZNY= Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id BB5B7387540F for ; Wed, 16 Dec 2020 18:23:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BB5B7387540F Received: by mail-wm1-x332.google.com with SMTP id k10so3279882wmi.3 for ; Wed, 16 Dec 2020 10:23:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DGduNvJzzfCvbtToIQa1UOGlVkW19zuu1Qn55RQaSvw=; b=irp+MgXmkwzEiUk29h8ulS+W/SvAVIckxXlGHPV5AqXUNPC4+L2Tq7nYoOtel6Jjdp Za78FfszqaZSmNE4rkGiujp2Dpq9M/CVj00CHT1Y/L2b6FqGOfcdL7ERTM7Uzz8kNo93 URR/aIr7jotuvtXQTadeHHTZgiwvlNhrl10Y9FMVFfgzQfcyV3Dlu5D8FCooEAH8S0sA AJSO+SbgQ1IDl8Dyr/i8RYEpZV6nmXoE8cJKGoc5XWYgaT6Z2ieOOYInozFptTCmWdoK LrcIVxT5V1ji52ODJLq8BuYl0v/FlACrGyxQb/ag/+pyUh0/oJXWHa6stltRMVjOLKLq 5GVQ== X-Gm-Message-State: AOAM533hYgkQU1zy+2bJINilLs6pV5et9uyGCONY0yBDrZBKrn3UpJrs M++U/BgtYGznRyxdOAf1a3zR0w== X-Google-Smtp-Source: ABdhPJzgALDp5YBLU1FY8WTwicoJpcw9Eew0KwZSolTMlNVBj7ZvHh0PJe/ZggqTW4cMZOUWXSYl2A== X-Received: by 2002:a1c:3b46:: with SMTP id i67mr4509562wma.108.1608143023713; Wed, 16 Dec 2020 10:23:43 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id k6sm3878546wmf.25.2020.12.16.10.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 10:23:42 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AA4231FF7E; Wed, 16 Dec 2020 18:23:41 +0000 (GMT) To: gdb-patches@sourceware.org Subject: [PATCH v2] [gdb/doc]: clarify the language for the '?' packet Date: Wed, 16 Dec 2020 18:23:32 +0000 Message-Id: <20201216182332.15456-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Alex_Benn=C3=A9e_via_Gdb-patches?= Reply-To: =?UTF-8?q?Alex=20Benn=C3=A9e?= Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Both QEMU and kgdb make the assumption that the '?' packet is only sent during the initial setup of a gdbstub connection. Both use that knowledge to reset breakpoints and ensure the gdbstub is in a clean-state on a resumed connection. This can cause confusion for others implementing clients that speak to gdbstub devices. To avoid that make the language clearer that this is a start-up query packet that you only expect to see once. Signed-off-by: Alex Bennée gdb/ChangeLog: 2020-12-16 Alex Bennée * doc/gdb.texinfo: add clarifying language for ? packet --- v2 - re-introduce line break - re-word first sentance - re-establish double spacing for sentence breaks - update gdb/ChangeLog --- gdb/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5dc879b0443..e4862061691 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-12-16 Alex Bennée + + * doc/gdb.texinfo: add clarifying language for ? packet + 2020-12-16 Tom Tromey Tom Tromey Tom de Vries diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5b6ac8549bc..70a8542cfb9 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -39493,9 +39493,10 @@ The remote target both supports and has enabled extended mode. @item ? @cindex @samp{?} packet @anchor{? packet} -Indicate the reason the target halted. The reply is the same as for -step and continue. This packet has a special interpretation when the -target is in non-stop mode; see @ref{Remote Non-Stop}. +This is sent when connection is first established to query the reason +the target halted. The reply is the same as for step and continue. +This packet has a special interpretation when the target is in +non-stop mode; see @ref{Remote Non-Stop}. Reply: @xref{Stop Reply Packets}, for the reply specifications. -- 2.20.1