From nobody Tue Feb 10 19:17:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1692197974; cv=none; d=zohomail.com; s=zohoarc; b=PU5NtgKf0+oMNPwz8a/o6vrya7I1Jr85TMwoslyE+vIDTpUAvXv8lgI92EDVDG88CJzjbRiFNSym13Pa+gUpTHN/h0RkM0yyTdoqTb8zJFLbjCPru0eUpJClXpanZgWdCpD3Zz0m/8+VP7qe5r93mlsI5KFmnV6Qig7wFgaOxW8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692197974; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=HIuVW7uU8pKm/ZM9OO2H7cmvCoPILSMWzBsLAGD3J2U=; b=Jp+Uvy7WoUG7qQACxbqYITrs3PICNoPj5Q5+7ytYH302e4rxC+AhL4kNJGZmkZGlYTc8uOX4XZNo/m2IkIl911GTW/yj7U7rl+QbblMFYrxSK4m6LgQ4wTWul3CeVjop28hUOdETpeCRr+QGzZfPVxWsmIuoBk6EhawIEmejNhY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1692197974238762.2395948946993; Wed, 16 Aug 2023 07:59:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWHvl-0003cE-Mc; Wed, 16 Aug 2023 10:55:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWHve-00035l-Io for qemu-devel@nongnu.org; Wed, 16 Aug 2023 10:55:23 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWHvb-0002Ce-CY for qemu-devel@nongnu.org; Wed, 16 Aug 2023 10:55:22 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-68876bbecb6so1087966b3a.1 for ; Wed, 16 Aug 2023 07:55:19 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with ESMTPSA id fk26-20020a056a003a9a00b0068892c40253sm1156568pfb.216.2023.08.16.07.55.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 07:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1692197718; x=1692802518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HIuVW7uU8pKm/ZM9OO2H7cmvCoPILSMWzBsLAGD3J2U=; b=DHC6QvsXMwzP6kUAzxhTYkh3wTmVgrznFgoy0saZicOI8SHxSdbNtbIRUHQMbA8Mxy Qu1j8xafi/vCdvC7oei3fiPsocvvqf4zhGLWu+LT9mvExZvwNIArOerQm0oyuNPOdeTp X2/lQlkAiyE5+e3bNnJReG2S4uFRDtiFmiU1qDD9g2d94JVEiVIZm9VVPbtT8H1LMGUi 943ygkK5D9LDZ9l2ONiwhthNE6WTdn7HAqXAn0wlUKqZegswl6oDHaXQGTqNV+8Dl6hK mvboHvrQrjIo672IDeYwu7F4Ud1YHu/535oofx1LwGzdXIrc/m8AI8BM5qkaSp/S0lVM kIGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692197718; x=1692802518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HIuVW7uU8pKm/ZM9OO2H7cmvCoPILSMWzBsLAGD3J2U=; b=XN6/vCpOchdp8jn7ZnOsDkScGFRJFitsQcy7rI1k1CHR4fdTL6PpcfcRo0gEUZPl0c Uuiu8Gmd+Cgd5iHNzl9G+Y9AD+GnmvuLYUihZVnxC6dEXGkfnFTb6jFjlJ68NsBfqElT GcRy71G5VeEcojGCzIy7Bd0JE2rjlzJ/7ilmiO+3vO4TLBLOBda508KxXR1ZIOcrcJ2s OREjHT86z4g3b6qLsLQurqPsZTY0YfBvzsL5wMV/GzEm8tnJIZkBGVfOO/kpZhSbw3Vb UJjd7vJZcpqF9DuA29CoIXAR8fMjezqqDVp3xooN4l3emYVmQdwCWzUkzFVGi2ziLytU 6/tQ== X-Gm-Message-State: AOJu0YxXPcw+QoJhpyIUFhejnz2wdSQ6MbieHmHw7ZEFxsES4mcd0mzK IYgu/SDugAiACV1LwkC9b3nCNQ== X-Google-Smtp-Source: AGHT+IEtjZjqTnQ3l/wWXx0Upn/5qqZU2aHAU1nn5/EZzbAD68qY9B6sozJ2N6ojGbda2xA9HTPWag== X-Received: by 2002:a05:6a00:1407:b0:64f:7a9c:cb15 with SMTP id l7-20020a056a00140700b0064f7a9ccb15mr2048291pfu.11.1692197718221; Wed, 16 Aug 2023 07:55:18 -0700 (PDT) From: Akihiko Odaki To: Cc: Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , Alexandre Iooss , Mahmoud Mandour , Eduardo Habkost , Marcel Apfelbaum , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Yanan Wang , Richard Henderson , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , John Snow , Cleber Rosa , Peter Maydell , Michael Rolnik , "Edgar E . Iglesias" , Brian Cain , Song Gao , Xiaojuan Yang , Laurent Vivier , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo , Chris Wulff , Marek Vasut , Stafford Horne , Daniel Henrique Barboza , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , David Gibson , Greg Kurz , Nicholas Piggin , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Liu Zhiwei , Yoshinori Sato , David Hildenbrand , Ilya Leoshkevich , Mark Cave-Ayland , Artyom Tarasenko , Bastian Koppelmann , Max Filippov , qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Anton Kochkov , Akihiko Odaki Subject: [PATCH v4 19/25] gdbstub: Hide gdb_has_xml Date: Wed, 16 Aug 2023 23:51:40 +0900 Message-ID: <20230816145155.21049-20-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816145155.21049-1-akihiko.odaki@daynix.com> References: <20230816145155.21049-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::430; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20221208.gappssmtp.com) X-ZM-MESSAGEID: 1692197975432100001 Content-Type: text/plain; charset="utf-8" gdb_has_xml is no longer referenced by the other components. Signed-off-by: Akihiko Odaki --- gdbstub/internals.h | 8 ++++++++ include/exec/gdbstub.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gdbstub/internals.h b/gdbstub/internals.h index 4876ebd74f..6a7c512766 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -234,4 +234,12 @@ void gdb_breakpoint_remove_all(CPUState *cs); int gdb_target_memory_rw_debug(CPUState *cs, hwaddr addr, uint8_t *buf, int len, bool is_write); =20 +/** + * gdb_has_xml: + * This is an ugly hack to cope with both new and old gdb. + * If gdb sends qXfer:features:read then assume we're talking to a newish + * gdb that understands target descriptions. + */ +extern bool gdb_has_xml; + #endif /* GDBSTUB_INTERNALS_H */ diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h index f3f2c40b1a..5cba2933d2 100644 --- a/include/exec/gdbstub.h +++ b/include/exec/gdbstub.h @@ -61,14 +61,6 @@ const GDBFeature *gdb_find_static_feature(const char *xm= lname); =20 void gdb_set_stop_cpu(CPUState *cpu); =20 -/** - * gdb_has_xml: - * This is an ugly hack to cope with both new and old gdb. - * If gdb sends qXfer:features:read then assume we're talking to a newish - * gdb that understands target descriptions. - */ -extern bool gdb_has_xml; - /* in gdbstub-xml.c, generated by scripts/feature_to_c.py */ extern const GDBFeature gdb_static_features[]; =20 --=20 2.41.0