From nobody Mon Nov 25 01:48:13 2024 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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1719552135; cv=none; d=zohomail.com; s=zohoarc; b=VoZPdW7rpT3c7w3bpfHT8wOnBjsTtk8tmJPe20UQqbwzwRiD9yd9x2M+6wEImcJq0aWif8cJvBj7l95bj0T2QXmGOWBkUFd4u9p64Mi1wwkTn56XYtFBlbyapUsEeArhcP0hoEoESDQFecekEl6j3CwV9HeoK5qFOVi/nA8D1cM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1719552135; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=o3gvu6OQ0lTozaroxzspcc5vQ9JngNtD70BqjIlE6nA=; b=f2Kxxc6u7K4ESHnFM2KpRvxx2VqFyhjCWF3YW6drEwhSZEcnSrEnICWe5pfhuxPWzlWO5yFActGafFO+XnEgojNpsqHZmksrj7PVZuvYwl9lJlVgfFLT/AsvEQCVQc3naV3reGtyPU/TAk6bOYYh8ZemV2jgugl2NPkGzY+owrg= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1719552135354607.8294471276289; Thu, 27 Jun 2024 22:22:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sN433-0003K4-AN; Fri, 28 Jun 2024 01:21:25 -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 1sN431-0003Jl-UW for qemu-devel@nongnu.org; Fri, 28 Jun 2024 01:21:23 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sN42z-0008FD-Ue for qemu-devel@nongnu.org; Fri, 28 Jun 2024 01:21:23 -0400 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6f8d0a1e500so180432a34.3 for ; Thu, 27 Jun 2024 22:21:21 -0700 (PDT) Received: from amd.. ([2804:7f0:b401:391e:3e7c:3fff:fe7a:e83b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-72c6b2a16cdsm423932a12.46.2024.06.27.22.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 22:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719552080; x=1720156880; darn=nongnu.org; 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=o3gvu6OQ0lTozaroxzspcc5vQ9JngNtD70BqjIlE6nA=; b=Ehwp394Ik4S43iFkkFMBP5vSTf8JYBn4a1F4Xtj9XvJisqhy25wII/hkr2a772SnL9 0JckTtLGW+sfHYprkbgvqFWaHL6hmadN6PG8XJLVBYUvHBGh1ug43wgAawYlpOx0DMtr q0fbvuqvTedRrF1rPfUHayiM8EbvpfD5OU5Efx2ny5QryAPUEFCDbK/fdC1Hz8U8MGtp bEEEUeF0CtpPtrmCx77/eVGneA0ZdMb56H3m3euZtW6XEddbck7AsTx+OI9UudEpjCU/ 91ub0FagcSPrZMpbSkIX+rPeFi8SOcQ1K9cwPqOnitw9qar6dFmjK0w3PVWv8pMX9qpK aVaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719552080; x=1720156880; 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=o3gvu6OQ0lTozaroxzspcc5vQ9JngNtD70BqjIlE6nA=; b=NUF8cOmtl6GBl3kGMUenUaW+pUuW4nJW+7Her2ALIo+DbyCP4ReHH0uiZUKVP7RgTn Qb1UCYLvjHkJYDxY9A9NmvEgntUxchNouzBhdcRoCX5rYETAY5ZZDnuyXgR0KskuMTDD gBSCZRBQBgclMhuQ4QLI8rR6J7MoNzkUFo56I8BPWumMmJyqo4wL/IekWj1HGuDqmIO3 ezBhscsZO9MKmWTUeCkpMuEnIBUKp+piF09A1ZQeP7gsr5nF+f4IuaRlPv9d6tKM5GcN tOqIOrlq+1WdHf3ZPDzoc+Lz1sB0wsmSL1Qfvy/ZTbom9JnyybCo7Dc5xJ2+U8fj08tk DLvw== X-Gm-Message-State: AOJu0YzXKlGgl9qdJfCu4D3ytI8fl5q1X74y3kbvgpUHMzcIDC3qJoNi /z36mHfcDDMxOw3/xpF1ChTDPh+QMTVF1ocgjP6XaS0VN+wP/gTanC30Q74sbajJe1+v16vP8hz n X-Google-Smtp-Source: AGHT+IGUhPIlPwIb1cuSRswv7LZCDqa2Jv05k5I9jPRJZjM12wqNeOmKGAlCW8jdapXczJec6OFYjA== X-Received: by 2002:a05:6830:168c:b0:6f9:8c58:712a with SMTP id 46e09a7af769-700b11f55cemr15872617a34.15.1719552080287; Thu, 27 Jun 2024 22:21:20 -0700 (PDT) From: Gustavo Romero To: qemu-devel@nongnu.org, philmd@linaro.org, alex.bennee@linaro.org, richard.henderson@linaro.org Cc: peter.maydell@linaro.org, gustavo.romero@linaro.org Subject: [PATCH v6 09/11] gdbstub: Use true to set cmd_startswith Date: Fri, 28 Jun 2024 05:08:48 +0000 Message-Id: <20240628050850.536447-10-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240628050850.536447-1-gustavo.romero@linaro.org> References: <20240628050850.536447-1-gustavo.romero@linaro.org> 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: pass client-ip=2607:f8b0:4864:20::336; envelope-from=gustavo.romero@linaro.org; helo=mail-ot1-x336.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.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 @linaro.org) X-ZM-MESSAGEID: 1719552137669100006 Content-Type: text/plain; charset="utf-8" cmd_startswith is a boolean so use 'true' to set it instead of 1. Signed-off-by: Gustavo Romero --- gdbstub/gdbstub.c | 80 +++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 5c1612ed2a..b9ad0a063e 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -1433,26 +1433,26 @@ static const GdbCmdParseEntry gdb_v_commands_table[= ] =3D { { .handler =3D handle_v_cont_query, .cmd =3D "Cont?", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }, { .handler =3D handle_v_cont, .cmd =3D "Cont", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "s0" }, { .handler =3D handle_v_attach, .cmd =3D "Attach;", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "l0" }, { .handler =3D handle_v_kill, .cmd =3D "Kill;", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }, #ifdef CONFIG_USER_ONLY /* @@ -1462,25 +1462,25 @@ static const GdbCmdParseEntry gdb_v_commands_table[= ] =3D { { .handler =3D gdb_handle_v_file_open, .cmd =3D "File:open:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s,L,L0" }, { .handler =3D gdb_handle_v_file_close, .cmd =3D "File:close:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, { .handler =3D gdb_handle_v_file_pread, .cmd =3D "File:pread:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l,L,L0" }, { .handler =3D gdb_handle_v_file_readlink, .cmd =3D "File:readlink:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }, #endif @@ -1748,7 +1748,7 @@ static const GdbCmdParseEntry gdb_gen_query_set_commo= n_table[] =3D { { .handler =3D handle_set_qemu_sstep, .cmd =3D "qemu.sstep=3D", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, }; @@ -1804,7 +1804,7 @@ static const GdbCmdParseEntry gdb_gen_query_table[] = =3D { { .handler =3D handle_query_thread_extra, .cmd =3D "ThreadExtraInfo,", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "t0" }, #ifdef CONFIG_USER_ONLY @@ -1816,14 +1816,14 @@ static const GdbCmdParseEntry gdb_gen_query_table[]= =3D { { .handler =3D gdb_handle_query_rcmd, .cmd =3D "Rcmd,", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }, #endif { .handler =3D handle_query_supported, .cmd =3D "Supported:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }, { @@ -1834,7 +1834,7 @@ static const GdbCmdParseEntry gdb_gen_query_table[] = =3D { { .handler =3D handle_query_xfer_features, .cmd =3D "Xfer:features:read:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s:l,l0" }, #if defined(CONFIG_USER_ONLY) @@ -1842,27 +1842,27 @@ static const GdbCmdParseEntry gdb_gen_query_table[]= =3D { { .handler =3D gdb_handle_query_xfer_auxv, .cmd =3D "Xfer:auxv:read::", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l,l0" }, { .handler =3D gdb_handle_query_xfer_siginfo, .cmd =3D "Xfer:siginfo:read::", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l,l0" }, #endif { .handler =3D gdb_handle_query_xfer_exec_file, .cmd =3D "Xfer:exec-file:read:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l:l,l0" }, #endif { .handler =3D gdb_handle_query_attached, .cmd =3D "Attached:", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }, { .handler =3D gdb_handle_query_attached, @@ -1901,14 +1901,14 @@ static const GdbCmdParseEntry gdb_gen_set_table[] = =3D { { .handler =3D handle_set_qemu_sstep, .cmd =3D "qemu.sstep:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, #ifndef CONFIG_USER_ONLY { .handler =3D gdb_handle_set_qemu_phy_mem_mode, .cmd =3D "qemu.PhyMemMode:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, #endif @@ -1916,7 +1916,7 @@ static const GdbCmdParseEntry gdb_gen_set_table[] =3D= { { .handler =3D gdb_handle_set_catch_syscalls, .cmd =3D "CatchSyscalls:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0", }, #endif @@ -2012,7 +2012,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry target_halted_cmd_desc =3D { .handler =3D handle_target_halt, .cmd =3D "?", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, }; cmd_parser =3D &target_halted_cmd_desc; @@ -2023,7 +2023,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry continue_cmd_desc =3D { .handler =3D handle_continue, .cmd =3D "c", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "L0" }; @@ -2035,7 +2035,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry cont_with_sig_cmd_desc =3D { .handler =3D handle_cont_with_sig, .cmd =3D "C", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "l0" }; @@ -2047,7 +2047,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry v_cmd_desc =3D { .handler =3D handle_v_commands, .cmd =3D "v", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &v_cmd_desc; @@ -2064,7 +2064,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry detach_cmd_desc =3D { .handler =3D handle_detach, .cmd =3D "D", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "?.l0" }; cmd_parser =3D &detach_cmd_desc; @@ -2075,7 +2075,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry step_cmd_desc =3D { .handler =3D handle_step, .cmd =3D "s", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "L0" }; @@ -2087,7 +2087,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry backward_cmd_desc =3D { .handler =3D handle_backward, .cmd =3D "b", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "o0" }; @@ -2099,7 +2099,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry file_io_cmd_desc =3D { .handler =3D gdb_handle_file_io, .cmd =3D "F", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L,L,o0" }; cmd_parser =3D &file_io_cmd_desc; @@ -2110,7 +2110,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry read_all_regs_cmd_desc =3D { .handler =3D handle_read_all_regs, .cmd =3D "g", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }; cmd_parser =3D &read_all_regs_cmd_desc; } @@ -2120,7 +2120,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry write_all_regs_cmd_desc =3D { .handler =3D handle_write_all_regs, .cmd =3D "G", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &write_all_regs_cmd_desc; @@ -2131,7 +2131,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry read_mem_cmd_desc =3D { .handler =3D handle_read_mem, .cmd =3D "m", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L,L0" }; cmd_parser =3D &read_mem_cmd_desc; @@ -2142,7 +2142,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry write_mem_cmd_desc =3D { .handler =3D handle_write_mem, .cmd =3D "M", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L,L:s0" }; cmd_parser =3D &write_mem_cmd_desc; @@ -2153,7 +2153,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry get_reg_cmd_desc =3D { .handler =3D handle_get_reg, .cmd =3D "p", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L0" }; cmd_parser =3D &get_reg_cmd_desc; @@ -2164,7 +2164,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry set_reg_cmd_desc =3D { .handler =3D handle_set_reg, .cmd =3D "P", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L?s0" }; cmd_parser =3D &set_reg_cmd_desc; @@ -2175,7 +2175,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry insert_bp_cmd_desc =3D { .handler =3D handle_insert_bp, .cmd =3D "Z", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l?L?L0" }; cmd_parser =3D &insert_bp_cmd_desc; @@ -2186,7 +2186,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry remove_bp_cmd_desc =3D { .handler =3D handle_remove_bp, .cmd =3D "z", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l?L?L0" }; cmd_parser =3D &remove_bp_cmd_desc; @@ -2197,7 +2197,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry set_thread_cmd_desc =3D { .handler =3D handle_set_thread, .cmd =3D "H", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "o.t0" }; cmd_parser =3D &set_thread_cmd_desc; @@ -2208,7 +2208,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry thread_alive_cmd_desc =3D { .handler =3D handle_thread_alive, .cmd =3D "T", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "t0" }; cmd_parser =3D &thread_alive_cmd_desc; @@ -2219,7 +2219,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry gen_query_cmd_desc =3D { .handler =3D handle_gen_query, .cmd =3D "q", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &gen_query_cmd_desc; @@ -2230,7 +2230,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry gen_set_cmd_desc =3D { .handler =3D handle_gen_set, .cmd =3D "Q", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &gen_set_cmd_desc; --=20 2.34.1