From patchwork Wed Jan 30 00:47:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 10787437 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DA3913B5 for ; Wed, 30 Jan 2019 01:14:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F6E2295EE for ; Wed, 30 Jan 2019 01:14:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 636A429789; Wed, 30 Jan 2019 01:14:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0DDC5295EE for ; Wed, 30 Jan 2019 01:14:10 +0000 (UTC) Received: from localhost ([127.0.0.1]:58127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goeS9-0003iq-7o for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 Jan 2019 20:14:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goe3i-0008MH-UA for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goe3h-00016h-KW for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:54 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56785) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goe3g-0000tH-U3 for qemu-devel@nongnu.org; Tue, 29 Jan 2019 19:48:53 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D2EF322112; Tue, 29 Jan 2019 19:48:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 29 Jan 2019 19:48:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=Wt+44SC+3DVYaXBv0kwACpEPYHc5fOlQLkruvF5Ro5A=; b=w/trN01yhnNG bzandsqJCx8kFvDSLtvXqsLx+MQnkerZ87iXjlHm+CkaEwEMOEzcEYbp9D7xNJAs lM+5LpAyittO8/x0J4EqBG7cwT2NQQV7dnSucPFLnFL5URxHgD/x9N5ydSvtGVag eCiGsM8LN9H9y03nTHI+ipgwPHiEQQk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=Wt+44SC+3DVYaXBv0kwACpEPYHc5fOlQLkruvF5Ro 5A=; b=ZfiFTKB/gTeCEC4H0kahrr3VP+ydg0S4UccboAZKmcg7fZILRvMkbzhud 5FkSRRTjPZ6g5ECploIaKbZGNYPjYkqTTbgUROEpCs/K2zPK9Eai0rRDW/02r4ns EZBsPWh54El7sIQhuFMIChHLWH29NeCKSFm1kfDMiyVusxUTarEOY38+Voc7bGRt huC03RegtT7BWI+PBbxZgl3jRoK36itYXwc5b4G/JXRdUe5VvEM8YhtmIcOL4i62 qSpjhJi1+Xz6vB2n58/8KI1qxKBPaP/9QdtuLcjzOEX4T/ZYGzeKmG4WGpBxoqyD YxTruua+fZSEYwDInw8IbMefOrxXw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrjeefgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojg hfgggtgfesthekredtredtjeenucfhrhhomhepfdfgmhhilhhiohcuifdrucevohhtrgdf uceotghothgrsegsrhgrrghprdhorhhgqeenucfkphepuddvkedrheelrddvtddrvdduie enucfrrghrrghmpehmrghilhhfrhhomheptghothgrsegsrhgrrghprdhorhhgnecuvehl uhhsthgvrhfuihiivgepke X-ME-Proxy: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 636DCE4559; Tue, 29 Jan 2019 19:48:19 -0500 (EST) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Tue, 29 Jan 2019 19:47:26 -0500 Message-Id: <20190130004811.27372-29-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190130004811.27372-1-cota@braap.org> References: <20190130004811.27372-1-cota@braap.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH v6 28/73] gdbstub: convert to cpu_halted X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota --- gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 3129b5c284..91790112a2 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1659,13 +1659,13 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) object_get_canonical_path_component(OBJECT(cpu)); len = snprintf((char *)mem_buf, sizeof(buf) / 2, "%s %s [%s]", cpu_model, cpu_name, - cpu->halted ? "halted " : "running"); + cpu_halted(cpu) ? "halted " : "running"); g_free(cpu_name); } else { /* memtohex() doubles the required space */ len = snprintf((char *)mem_buf, sizeof(buf) / 2, "CPU#%d [%s]", cpu->cpu_index, - cpu->halted ? "halted " : "running"); + cpu_halted(cpu) ? "halted " : "running"); } trace_gdbstub_op_extra_info((char *)mem_buf); memtohex(buf, mem_buf, len);