From patchwork Thu Mar 26 19:31:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 184896 Delivered-To: patch@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp462233ilr; Thu, 26 Mar 2020 12:55:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsB32rfvNSY0XtPdL1trBQZXcmAPy/E6jNi3N1ryeNI1zbgfxDRiMmEDw2pMfn/sFLUmm30 X-Received: by 2002:ac8:6f0f:: with SMTP id g15mr10393438qtv.155.1585252555617; Thu, 26 Mar 2020 12:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585252555; cv=none; d=google.com; s=arc-20160816; b=b6dWwXXfp5mpzoVWItC8eIqlgubMo6yi//2Xgw2LUEIVtN4/7n7z1Jheb8TpVog9rS EhPHtVwXAzxhDmX2FOilV1t66GvAvVtxY3zOyNWmy3SUaqfaPj4NBugluvR7o3ILz4hg EdLIaScxUSCeF4B3IErT5+6h3ktqPfvPiwLencLZ/ojalpY1LAeOCA0vKp7Qw+ekTMhM E8jvfBjPa5NLFOcaTWfn60LYeiCsFfRJkFTtgafLC/AiPgIu+c4uvLf3rlnydqbvZoCy M023cf83urBNIDAz7VpqLq4iMGKmUnKG/wUYCUpSHouJNgosogZzcEUa19qkeF8bQChH jD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=yA2MVFEgaNK4nASIU4YwfLKatFbmzL92LfjZ1EBu5j0=; b=BW77STu0+pn7rKOFK4PTQvib70Wk14vfbU56zjdstUXH8qr9CL5wlFaYRjYna2NNDt aNrDgDDfJNHmm0GKcXJv4puzX5ZFyMNn+dRlyRWlvN+ie8w2qbaQ2UfFYnU9HxeU+w12 ruayr1np3R8AvWOD+GQqCQl7IZXm/KYz9s04yY8o+vJLZR1urrOB9PO52NsRlu/DQ+0s oSY25ehPZaVoN3EpNGDVCX4kEhEvEdUCnWiL/h8BE4cSa6PCGbip8CmthJUSyqZU1jcM YNDIbnZy/5vkGpnnJXlVwQxPL9/law+aNvqPIP32+UAwPUfjfSqgUz0/YEj5x03C2sn4 yv/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="tW6S/bP1"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n6si2071994qke.78.2020.03.26.12.55.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Mar 2020 12:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="tW6S/bP1"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHYbX-0006sY-Bo for patch@linaro.org; Thu, 26 Mar 2020 15:55:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58798) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHYKX-000788-Ju for qemu-devel@nongnu.org; Thu, 26 Mar 2020 15:38:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHYKV-0001go-D3 for qemu-devel@nongnu.org; Thu, 26 Mar 2020 15:38:17 -0400 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:35405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHYKV-0001gI-9R for qemu-devel@nongnu.org; Thu, 26 Mar 2020 15:38:15 -0400 Received: by mail-qk1-x741.google.com with SMTP id k13so8205838qki.2 for ; Thu, 26 Mar 2020 12:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yA2MVFEgaNK4nASIU4YwfLKatFbmzL92LfjZ1EBu5j0=; b=tW6S/bP1K8jbImgGY810ZRZ5TTGl80HzzkmPWP2sFPhQ/bjUMQa63XOid8gBfBnbZu ubkStz5VHgUNOWAej8EEDCTEioaMMb7swf0vpXm0rLA9aCj99WWm5/ibM0wfLRR3yz0N MlcUAy0yzwDol10jS9RDJt9WgMY5pGkSzTw/7GdkjmmX3rZy39FScA9SJmx/AWkv2IMt KamhVaYuLi8XOMY0t0SLTg0pCY7mhaDfJTzkkFqOqm4XDIa2IUKb9Tht27OGWOWB44t3 wvRhAJdnqbzelkbACyYquktykQDFjN42qAUJpuVyT4J5UuQGQ41rR7XJTNW0V3LX6hKu /5SA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=yA2MVFEgaNK4nASIU4YwfLKatFbmzL92LfjZ1EBu5j0=; b=WBQi3u5KHTc5hEwoNU7oDmxxivlP4hvCfscprNb5iIozfWCXJhDLOykf7nqUDTPq7Z ztWJK9WAXxSybQQEa2yaUEs8WjjeD0IbRdKWUUxZ5XPbvrhHoocAPuAbTCer35QSJHAP 5vEOAfh1o7ygYVCHl7Oei9mV5DmgzWyVxbLqOAabW0YDEiXTiLV6CnfH3INQQ6WDxApA jldM+ZIJrTsYrjeBz1IXcxXEQWPFOlUqJNCWfr1pCLlJcJHaMTMWzdES3D5V22PnP9/w ytyn7PNzRNMOyc37A+LIt/fgm+ELMAqNO55GgIx8BzS144I8EjZP3O+P0vmwzAeKNtWj U+Rg== X-Gm-Message-State: ANhLgQ10jw/LBu8giPiOQRSpCOQ7/AaZHAOwInF8VefCFOpIPBES7wiX XKfY11V50IpphlOhawJ7WSQTJqhLnrd7jw== X-Received: by 2002:a37:9dc9:: with SMTP id g192mr10248319qke.50.1585251493546; Thu, 26 Mar 2020 12:38:13 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:fd55:4e67:1038:8302]) by smtp.gmail.com with ESMTPSA id u51sm2161916qth.46.2020.03.26.12.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 12:38:13 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v8 29/74] gdbstub: convert to cpu_halted Date: Thu, 26 Mar 2020 15:31:11 -0400 Message-Id: <20200326193156.4322-30-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200326193156.4322-1-robert.foley@linaro.org> References: <20200326193156.4322-1-robert.foley@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::741 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: richard.henderson@linaro.org, "Emilio G. Cota" , alex.bennee@linaro.org, robert.foley@linaro.org, peter.puhov@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Signed-off-by: Robert Foley --- gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/gdbstub.c b/gdbstub.c index 013fb1ac0f..d95c32997a 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -2063,10 +2063,10 @@ static void handle_query_thread_extra(GdbCmdContext *gdb_ctx, void *user_ctx) g_autofree char *cpu_name; cpu_name = object_get_canonical_path_component(OBJECT(cpu)); g_string_printf(rs, "%s %s [%s]", cpu_model, cpu_name, - cpu->halted ? "halted " : "running"); + cpu_halted(cpu) ? "halted " : "running"); } else { g_string_printf(rs, "CPU#%d [%s]", cpu->cpu_index, - cpu->halted ? "halted " : "running"); + cpu_halted(cpu) ? "halted " : "running"); } trace_gdbstub_op_extra_info(rs->str); memtohex(gdbserver_state.str_buf, (uint8_t *)rs->str, rs->len);