From patchwork Thu May 20 17:42:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 443300 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp196993jac; Thu, 20 May 2021 10:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcaCVzjghy61h5VXZL/UNoJgqpmouJwOOng70ambPLhqp2Zon85fyr1CPAKbwJqzpnhM2F X-Received: by 2002:a02:900b:: with SMTP id w11mr7530775jaf.5.1621532663290; Thu, 20 May 2021 10:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621532663; cv=none; d=google.com; s=arc-20160816; b=l59Yg6yEJguoQfQnd1kkbxC0vXUUaIGcRdWwgkRE+K7/9Y17E8q0IeSsFuQ0taROzW p9ceTlBGW4/6O02cZiWhK2fObjUm0qH2T59KIM3FwVNp1KgiOXmc3AKb44mChLCyXG44 oQ79C8Rl2A0+WMRicKNQ4dPumxb8XVfWoSacAeSbtuwxtdjgtJa9gwYJBdIDR2xghUAC 3YAMpaoRliszdiiwht8yFg6/WgcW1NNmswKyIWxkyvuJfz5IN0le45q+N3HLa91xEV8c KsPr+VSxUrUHtqjfKsJdEZ+DGhseQb1Ox78X5zzW0X//8KTTJMZpHbm51T2ayvDhYEis pvjQ== 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=IIiaXXWvs7n+iPufxQMNc/1JVO6hJcCtlhG0IxEVHLs=; b=fm35LwKw7K0MfoHR/lPA332RdbTe53sWsWqyqv920/JJjNoI186hgCV0t7LRh/vyWq kz1frh2VpTdA4AV07pEod+JmYMELAMJFiN55wnwI0t2cR4l5D9BF41FRT2BbOkGHkVhy GfelMt1JRQZ2MxP8aoGwuqzMjEIVrkZWAZhAotjgmFeqgJk4qR55f9WRwfGlU5zPQQHs szhb13MwTXGICnNxA42vm3/S8wZoUZKIPqnZ+llr93kKn/hV5OoAswnB232LHaaDFe38 +CWLqzc5YdlyItYb7PSaSs4rlkm3z9j8T2Rq5TyqV2FCgkqGNys6naTfWFRRruLzSOaz bhXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=x6SurHdZ; 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 g5si3079781ilq.106.2021.05.20.10.44.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 May 2021 10:44:23 -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=x6SurHdZ; 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]:42806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljmic-0003OH-Nh for patch@linaro.org; Thu, 20 May 2021 13:44:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljmhV-0003J9-N0 for qemu-devel@nongnu.org; Thu, 20 May 2021 13:43:13 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:54909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljmhT-000160-P3 for qemu-devel@nongnu.org; Thu, 20 May 2021 13:43:13 -0400 Received: by mail-wm1-x32f.google.com with SMTP id o127so9683532wmo.4 for ; Thu, 20 May 2021 10:43:11 -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=IIiaXXWvs7n+iPufxQMNc/1JVO6hJcCtlhG0IxEVHLs=; b=x6SurHdZGHF4s/ndxsgeItdovn9gVa7pgKZGQesAsOvMi81fO0OaBxQIGSRfhPg/Lt 8uhIIvgzNUQqfPL9urti+p8LXJVI3vr3sF+dWuutFLXRBV+QUJbtaU2DEpJUoeUt7Zqb GrTMx9YAZ2g2KVjX5b6RD4XmzTTyGSERaWLf3qro7BJqkJw5+XHkaTKmbi8frArmoOJF hwsVX67PapkPRJKQRCdiPETDowHjqN8uM4t7sT8KoSzkYf4A5pALbi/muBqcfAPccAwG p/E+FDQXy5xOQgPelzGfrS8xOiWVUrNqGQhcyPOJPyqY3TO3fglVDAHhiM1OlTLfPHfw oppw== 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=IIiaXXWvs7n+iPufxQMNc/1JVO6hJcCtlhG0IxEVHLs=; b=PFCrFoLyK8Vrx0nmGEy1dH3StyVpsR1XF9QFZzNsTqw8EZ1ilYYio3T7KLdrwuiKpi y3ZeVWrY5KL4j8jXV6S60uCbtHmtZz24JvyBntC4pNzha4Mqn4xFTA+uW5U2UmfgFHDd g98GKMrne3KVxdIfpGkGtp2+jZzB4mBTDD3WnhFH7Kfh3aioUK2Vebbm06wjBYpZ1P/d A3md2LjM8dO92GBKDx39EdmiSp9u0HYUepb0hfSaXpB/8B51a6yPSoVHmMSH2tHyHreo pen2ePc7C6UNFC1pSGUh97ysHtmZHeinFrrzfE6J4Os+o2yDGVM4CG0uG39LgHDt/4LX BHIw== X-Gm-Message-State: AOAM530q8NPoxKwyuEJs1pCdc0jGpvbc9xtzgJEJJN2ITiybg5W8p8D4 EAMyZxxxXSIP4kg52VRiHzsRPQ== X-Received: by 2002:a05:600c:19c8:: with SMTP id u8mr5242353wmq.50.1621532590318; Thu, 20 May 2021 10:43:10 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i15sm1554489wru.17.2021.05.20.10.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 10:43:07 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 102D51FF90; Thu, 20 May 2021 18:43:04 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 4/8] gdbstub: Constify GdbCmdParseEntry Date: Thu, 20 May 2021 18:42:59 +0100 Message-Id: <20210520174303.12310-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210520174303.12310-1-alex.bennee@linaro.org> References: <20210520174303.12310-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: fam@euphon.net, berrange@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?b?ZMOp?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20210505170055.1415360-3-philmd@redhat.com> --- gdbstub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/gdbstub.c b/gdbstub.c index 9103ffc902..83d47c6732 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1981,7 +1981,7 @@ static void handle_v_kill(GdbCmdContext *gdb_ctx, void *user_ctx) exit(0); } -static GdbCmdParseEntry gdb_v_commands_table[] = { +static const GdbCmdParseEntry gdb_v_commands_table[] = { /* Order is important if has same prefix */ { .handler = handle_v_cont_query, @@ -2324,7 +2324,7 @@ static void handle_set_qemu_phy_mem_mode(GdbCmdContext *gdb_ctx, void *user_ctx) } #endif -static GdbCmdParseEntry gdb_gen_query_set_common_table[] = { +static const GdbCmdParseEntry gdb_gen_query_set_common_table[] = { /* Order is important if has same prefix */ { .handler = handle_query_qemu_sstepbits, @@ -2342,7 +2342,7 @@ static GdbCmdParseEntry gdb_gen_query_set_common_table[] = { }, }; -static GdbCmdParseEntry gdb_gen_query_table[] = { +static const GdbCmdParseEntry gdb_gen_query_table[] = { { .handler = handle_query_curr_tid, .cmd = "C", @@ -2420,7 +2420,7 @@ static GdbCmdParseEntry gdb_gen_query_table[] = { #endif }; -static GdbCmdParseEntry gdb_gen_set_table[] = { +static const GdbCmdParseEntry gdb_gen_set_table[] = { /* Order is important if has same prefix */ { .handler = handle_set_qemu_sstep,