From patchwork Tue Mar 7 21:21:13 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: 659852 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2606287wrb; Tue, 7 Mar 2023 13:24:22 -0800 (PST) X-Google-Smtp-Source: AK7set+4N/Amf8sBOhEwWd6OK5eVxNgrnViZe0Lva8ggzfedKQMuxqdTHzBQAaNMinsFOuFew1BK X-Received: by 2002:ad4:5cc6:0:b0:56e:ae9f:a503 with SMTP id iu6-20020ad45cc6000000b0056eae9fa503mr28472945qvb.31.1678224262629; Tue, 07 Mar 2023 13:24:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678224262; cv=none; d=google.com; s=arc-20160816; b=m64dR/DUAlJnybef1YMBayaUWit3accKLmtUb2J0xvZP32b0SGdsw2RkPB8TdsdV1w sxaJYHkKUCQhesBhUBD3cwUSqu7M8xQdUKhMgGI8FAvaxpy6ZvU07McZACVvw+FX9Fzt 2J3UTiFvsG1nDEMcFnDW0jHhZ6Oy7ypOpY1rg6E9P3Bdb8co+7G/WMQRBzOw9nIup2ve dlAs4WltkMDOHIljkkBQy6UGtDk8fjKwfQCW9858IKbiW/lFY35RWYZdnJOscp5LAAAV H1bwO1ChndWwjaOpwe5Q/JV+c5q+fo9GvZEtMorxS1SbyWkiKK3TdZIB7ZjIt/zoJqsM lapA== 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=IhNsmP78RfjYnYiBJHY265fIGgQNOOilc9WuDCGmLpg=; b=tkznS74xKpUzTevd6OT9GI0RwtCJVqKtvPOrsrP8SA9ffHIxjff0drwLgrz6Zg8lWf NUmxgA4Z2vO7uBht0y6e456XFbVxK4/q4RXypl2o8KL401NxzZuL3sxvACwv+S6mxY4t Ukf78HTvz9qCU5RhdA6wYgr0GkXCW2Tlj9pf/P/9q6GFAkISjZFeheXTOOY/sVv/y6wf awdH8g5xnJ5n1O2D2OR/Dpi3YEbP64+E8cPbKWDutqti4XSD+r1tUuXbiOYuK+5v8xrm O8xM5jrfE+z1xmGf57poP0/b9ryV6j9/GRccB4Q6pn8Q29NFd1Zw4JlbWAezhQ9fcTyC mnfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fdHEtqIg; 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 c16-20020a0cf2d0000000b0056c206c3b09si10168726qvm.144.2023.03.07.13.24.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 13:24:22 -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=fdHEtqIg; 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 1pZekl-0001ZJ-8E; Tue, 07 Mar 2023 16:21:47 -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 1pZeki-0001W3-Kv for qemu-devel@nongnu.org; Tue, 07 Mar 2023 16:21:44 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZekg-00081S-Rl for qemu-devel@nongnu.org; Tue, 07 Mar 2023 16:21:44 -0500 Received: by mail-wr1-x42c.google.com with SMTP id j2so13491155wrh.9 for ; Tue, 07 Mar 2023 13:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678224101; 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=IhNsmP78RfjYnYiBJHY265fIGgQNOOilc9WuDCGmLpg=; b=fdHEtqIg/r5TUiPbw70VP/HmR6U2+o92bel5KgIeU8prOn0ZEDaQT/VIJv2Hw+LMoX LZzrMWAYxCP103W2ZeOUs+6UdOyuI7LdgmQcDNEjnjJ2/7aGk8wpE2WwdOWW+UJaaqZF ANv0Putt+hifBOt+SoXZggamxJeSSo46RVrGKB4NyLe08nB8QLEfzqq/fdmbl7Q1gxlc j2JeQFuwb0QN71Tt+BvYU0Oc60VTB7lKEnqcT2UWWkqYjHbAyjw9hr8tV0TmWiav9mDv rX6Q5kovepVcfOxWOzO4TLbo0XaeBKuf+/pBQFN1omsSjZCyOt3igEstWgZSzrwiafC4 sJsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678224101; 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=IhNsmP78RfjYnYiBJHY265fIGgQNOOilc9WuDCGmLpg=; b=BOYBtpE1RnSkZx5WE1A/MX7zPW9j0fPk1ckkyw6EvuM8XA4hVv26cRstyYJcn0VDe/ 8unjgmWzvMAlgwPfqm26fe39ckK5lM6xofMncEUKyspyQQZvXjqy87qYwJTT7EvRxUY7 n/QK+HEourv8ANEgLM64BE+unzB5iEfNeM1CdbiA32tmDvf/+dj+g4yUX9AyKK6NBCUr 9qOGPN6E/h/v68zmkgqobtwvogfswGqNCm55XaGzrK9y3Y2v6akZik0g/plSZuJBf4AN /y17TzKMRv2xCI8+8rMs7A57+2lXfyNa3KIw4hrzElTJLPuyQaNMxre1N6HPa9bnb1hm v7GQ== X-Gm-Message-State: AO0yUKUl8MXzkdtN0LY9jB5HcjUM0gqhRKrZFX6MoLTNLbYcz0MPEoTd 6nxbTyxXXvKwvK7vzuP3vpJ5Og== X-Received: by 2002:adf:f006:0:b0:2c7:1a96:63f2 with SMTP id j6-20020adff006000000b002c71a9663f2mr9707770wro.3.1678224101341; Tue, 07 Mar 2023 13:21:41 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id v11-20020a5d610b000000b002c5a790e959sm13454074wrt.19.2023.03.07.13.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 13:21:40 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 96FCF1FFBC; Tue, 7 Mar 2023 21:21:39 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PULL 04/30] gdbstub: clean-up indent on gdb_exit Date: Tue, 7 Mar 2023 21:21:13 +0000 Message-Id: <20230307212139.883112-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307212139.883112-1-alex.bennee@linaro.org> References: <20230307212139.883112-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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+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 Message-Id: <20230302190846.2593720-5-alex.bennee@linaro.org> Message-Id: <20230303025805.625589-5-richard.henderson@linaro.org> 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 }