From nobody Sun Nov 24 22:30: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=1720193959; cv=none; d=zohomail.com; s=zohoarc; b=PZdKpyB59PP3JC3VVNzIJxBxiLKMuAfVVSDZUuBa2Vc1dGiSEOY6Aoc+xCUxXCyqkfWT302ds7r5U53C+htl8fdjF+aKVUsR3NDqxJ8nL/dv+xVNbHPE6C2wJRwtDLMLY0tf9UdVu4+xTdTV5LbYRE30HcqQNY6Em/lZPZdyh2M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193959; h=Content-Type: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=SKiCUXhdtxK6IeX+xyMLUyY+4qp63cQ7G8m1vsLFBDw=; b=QQHG77QGZb+nFB3pyCvPg2LvEXkCpGmtixmKrH6By47rLHCOnYR1iy8gzQW18aw7hUNX3Grh5boFzNNmyqj7SzVqOTb3eZ/iiL3soAXZhd5egaNvNQD+vCVeTtRPW3d6tddMxyfnoNBete2pq2WjGwJ67sETzJSHXWeqUfFlzfM= 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 1720193958914256.89687116747257; Fri, 5 Jul 2024 08:39:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0D-0002wH-07; Fri, 05 Jul 2024 11:37:37 -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 1sPl04-0002fT-Lp for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:28 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl02-0001Jp-5l for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:28 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a77c4309fc8so156207966b.3 for ; Fri, 05 Jul 2024 08:37:25 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77ccee5277sm61679766b.177.2024.07.05.08.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:21 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A283D6217D; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193844; x=1720798644; 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=SKiCUXhdtxK6IeX+xyMLUyY+4qp63cQ7G8m1vsLFBDw=; b=bLITfrtlcd82T2tV+6oHzycNom1eUubqQdXCTf7NfrvtSdupDt4S2qn1R3UOkEeo4I JKot0/UshjdUv/AKVG0QmWLEn9J8Oe97YAiK5YCoVHHhiifycoBH3J/jZ+g/XrDYSlXs e1OE8iA+rayYt7PXT3BeFdcPZCntsFxxktXRz9aScC9KyU1dYJys/+AyXvkS9ZmbAV1T Jl22H0yj8K2U/KrFlIXxUTiOGHxTIawkAVnwZUfq9qjSVKFn2llNSi6Re9u8syi7JyJ0 Ahlv4HW55MsZVBkEpEEuV7O4g3I0AgpfD2u8bqJ37z5AItGABhPbu1pZ4R7ZiZdKr5pN liEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193844; x=1720798644; 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=SKiCUXhdtxK6IeX+xyMLUyY+4qp63cQ7G8m1vsLFBDw=; b=w+EWKXAlpd6C35D8e3FU9dzSlBh4akDcP8vExMrF2cZqwsAiaRhf1701EDvwyiFKOS 0P1QHgT2WFaGgySCiUsMUuN+kmuygJQQp0U1avJN7fT+DZI2d1NFY6LTr2jFlTOhWvlP 4Lki29bXDHjk/HXlKa5K557Z0VM1Rj4gyacccjh7+HlYP6yhciEX7fYMRDYlmTeqgwsR h3qbwpGAY1ItsbS28zCyrNO8P8lj0cAxPFUbStxt7rXr0hNRj4RqcOwhKG1n3t2AbDIY DfKQbSujSbgraALCsIpptPMkxiW3ifovZJ2J3cdo5Vb8hFtW+m1Z1A3lNOl6DL/W+Woz IOXQ== X-Gm-Message-State: AOJu0Yyg7/BNVvXMeqjm2LT2kjUxjXT5QNJMFvQJZS0xEZqjyyEG0uLu rggEtavIeGmKsLs7DkCcguWETWTfg0e6Wby3Qwe4bUPfqxE4o3IxcfEdDMqvcN3Dnjs9GskWDDS h X-Google-Smtp-Source: AGHT+IFK4UBXJJVnjpWSMD0bLcXKbi7ALqvMaZ9DpMuFJq6VaP+d7VLPXwUMJjwF5mYxJaws6qr8dQ== X-Received: by 2002:a17:907:6e8d:b0:a6f:4bf2:daa2 with SMTP id a640c23a62f3a-a77ba45177amr397396866b.15.1720193844015; Fri, 05 Jul 2024 08:37:24 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 38/40] gdbstub: Use true to set cmd_startswith Date: Fri, 5 Jul 2024 16:30:50 +0100 Message-Id: <20240705153052.1219696-39-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::635; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x635.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: 1720193959609100001 From: Gustavo Romero cmd_startswith is a boolean so use 'true' to set it instead of 1. Signed-off-by: Gustavo Romero Message-Id: <20240628050850.536447-10-gustavo.romero@linaro.org> Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-39-alex.bennee@linaro.org> 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.39.2