From patchwork Thu Mar 2 19:08:24 2023 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: 658130 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp65350wrb; Thu, 2 Mar 2023 11:11:29 -0800 (PST) X-Google-Smtp-Source: AK7set8iw97MgIJLgXa0xJVcSPZ+axRtO+mETj/kKeIGA7Pr1EXvB2Fn2/7zzJLG2PXqAB1cdN0n X-Received: by 2002:a05:6214:19ec:b0:56e:a6bb:47ac with SMTP id q12-20020a05621419ec00b0056ea6bb47acmr22299332qvc.31.1677784289221; Thu, 02 Mar 2023 11:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677784289; cv=none; d=google.com; s=arc-20160816; b=QhqUA04dYtPsQrWsaJ/AVa4Dtgg6OH4Ns8F8nkeu0J7wgwC6f1ohg2zvT/tGZiyDRy K47dzwDOIbs23JIhy3QNPtu+7zuLHgaYydYW4Vv2RkBVOuLZEfCoASXqkJi4LgoOvdGM /e5ASphRCqfC9Pf/x/EEyDRGJiwrSRuD1pvJj+B+ynk5itXq1sZCjwJZH+k/fAhkKnTd oX/PR2P+ndc8+bui511mJbI1MorJtCqbw7rbO+Bg8+FfvItaxLbKOX8HvKbj4hpzNsO8 HMdxLmCZ5nE45mrZQgyMjtKt7byEE20IBHl6iXxcqN27FkPc7DHkV9hf3qKCNiBDG4RA xldg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=62eIWH+UgNDIO9tL0abCF5DS6hbxUYuKBS98TK1uNAY=; b=yb8A2IUL/Wr+TeTPdzTCp178m5/UsLV26hInaq5xc1bKKTB9KH95wEWldCKF/w3IwU 0R6HuMbrmL6Cl/8HkcA3LRU5XUQ6GFaGWmL9jpsaEunzBBcu0/oKO3cFh0mlFBks7Od2 ATyevjcOuy9UsdYhcyEnKgVxW+udp4xABIsrrMQDKHZ3nOc+5jljWM+6DEE/zWHUj2Si x3lc8g9b+ED65iv66jVqrjMtOaQbHBnQ5fCWfT9ew6op87xvulNJyEXid+Ah5b23QEO7 Q4Xp71t4DkJQ8uUaXscOQZj9e/jLIqrRJeKgQKIhxVwbVlhAC1oRlks7FWDuG/4zHRB/ Ly9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y2EwnqrC; 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=pass (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 x186-20020a3763c3000000b00705dcaac535si222394qkb.187.2023.03.02.11.11.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Mar 2023 11:11:29 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=Y2EwnqrC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXoId-0007VB-25; Thu, 02 Mar 2023 14:09:07 -0500 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 1pXoIa-0007SQ-JF for qemu-devel@nongnu.org; Thu, 02 Mar 2023 14:09:04 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXoIO-0004Wr-ET for qemu-devel@nongnu.org; Thu, 02 Mar 2023 14:09:04 -0500 Received: by mail-wm1-x32d.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso2504464wmi.4 for ; Thu, 02 Mar 2023 11:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=62eIWH+UgNDIO9tL0abCF5DS6hbxUYuKBS98TK1uNAY=; b=Y2EwnqrCp+qDTcFz1EW3YC21JHlRf1J8aYrGwA16D/IrPQ+aPQqDJHH+7FThelkDFB 8P/fukV7yJd4T0msEj12mSBV5ljzbAuK6Sg3R+g9QsoN5jpHqQxlkHkrKYLjXCAIuFRL 5S5C5B39krQZ0rFy9pIr/itagrEREMhfC3EVUx+d4tsUUzcbvDECSEuEHxCVWJS8GDxC gXYle4/apt0EhZXe174MMqRCyJIGjlK8TLBqhbQwZEZaz/OdMjUChqu5R1h8exkjYA67 CeV9ATLtLKGKbS65+050zb/YnCyfCHofOiHTJPzr5sRxrbwBNYOAwmSee/eKW7BsEBor vDBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=62eIWH+UgNDIO9tL0abCF5DS6hbxUYuKBS98TK1uNAY=; b=CGZkwARR1wekI2s0p3uJ/nsItRrbBH7CVr7piLsdTPpPPwWiGjtzNTkdog+Pi0tfjr mKHOdPYhSjYg1UCKE0L1375wUZNBrvPOGTEAteO6ONtAfgXx7/GfFfxFyx+yXlOHI2zD uGwpAb+VRKHNxcDiomy1+RlpwxsgtBZY9PJn7l+F9Fh66zN7pR1pfN+wb+k0cA9jNPo0 e9SiSk7eghAJqoEXOtn682+XU9zzdxnNKY9j6oAw/HiiKiDW7u71AVq+9KYAppHtQe0T 3dF0aPSEhhBhkbB9YD1pLXCTaEQZPA9PZW+d7hSfY0VFF+XdNS6fx7R6yCdQx3KwcT5W 1ZGQ== X-Gm-Message-State: AO0yUKVjHMx8mK3Jlgs5TPKwjvFVaLTLckcn2cPAVqUJfUjNLDoHG6aB +IU3cQbTZhtf1t3vV7BxKrKpbA== X-Received: by 2002:a05:600c:170a:b0:3eb:37ce:4c3d with SMTP id c10-20020a05600c170a00b003eb37ce4c3dmr4634014wmn.38.1677784130856; Thu, 02 Mar 2023 11:08:50 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a10-20020a5d508a000000b002c54241b4fesm125929wrt.80.2023.03.02.11.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 11:08:48 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 07E891FFBC; Thu, 2 Mar 2023 19:08:47 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Weiwei Li , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Palmer Dabbelt , Laurent Vivier , nicolas.eder@lauterbach.com, Ilya Leoshkevich , kvm@vger.kernel.org, "Edgar E. Iglesias" , David Gibson , Max Filippov , Sunil Muthuswamy , qemu-s390x@nongnu.org, Stafford Horne , Bin Meng , Marek Vasut , Greg Kurz , Song Gao , Aleksandar Rikalo , Liu Zhiwei , Alistair Francis , Chris Wulff , qemu-riscv@nongnu.org, Michael Rolnik , qemu-arm@nongnu.org, Cleber Rosa , Artyom Tarasenko , Marcel Apfelbaum , Eduardo Habkost , Yoshinori Sato , Alexandre Iooss , Daniel Henrique Barboza , Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , mads@ynddal.dk, Mark Cave-Ayland , qemu-ppc@nongnu.org, Richard Henderson , John Snow , Xiaojuan Yang , Thomas Huth , Paolo Bonzini , Mahmoud Mandour , Aurelien Jarno , Bastian Koppelmann , Yanan Wang , David Hildenbrand , Taylor Simpson , Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v4 04/26] gdbstub: clean-up indent on gdb_exit Date: Thu, 2 Mar 2023 19:08:24 +0000 Message-Id: <20230302190846.2593720-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230302190846.2593720-1-alex.bennee@linaro.org> References: <20230302190846.2593720-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.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=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Otherwise checkpatch will throw a hissy fit on the later patches that split this function up. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza --- gdbstub/gdbstub.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index fb9c49e0fd..63b56f0027 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -3021,27 +3021,27 @@ static void gdb_read_byte(uint8_t ch) /* Tell the remote gdb that the process has exited. */ void gdb_exit(int code) { - char buf[4]; + char buf[4]; - if (!gdbserver_state.init) { - return; - } + if (!gdbserver_state.init) { + return; + } #ifdef CONFIG_USER_ONLY - if (gdbserver_state.socket_path) { - unlink(gdbserver_state.socket_path); - } - if (gdbserver_state.fd < 0) { - return; - } + if (gdbserver_state.socket_path) { + unlink(gdbserver_state.socket_path); + } + if (gdbserver_state.fd < 0) { + return; + } #endif - trace_gdbstub_op_exiting((uint8_t)code); + trace_gdbstub_op_exiting((uint8_t)code); - snprintf(buf, sizeof(buf), "W%02x", (uint8_t)code); - put_packet(buf); + snprintf(buf, sizeof(buf), "W%02x", (uint8_t)code); + put_packet(buf); #ifndef CONFIG_USER_ONLY - qemu_chr_fe_deinit(&gdbserver_state.chr, true); + qemu_chr_fe_deinit(&gdbserver_state.chr, true); #endif }