Message ID | 20230303025805.625589-5-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp225816wrb; Thu, 2 Mar 2023 19:00:32 -0800 (PST) X-Google-Smtp-Source: AK7set//7EZv+JXCLSQPqTjFrS3ju5tKvN4mYMlGjml2v6ngs+FIaLE+dzrEQOolk0QNAWq81akK X-Received: by 2002:ac8:5f08:0:b0:3bf:a6db:6108 with SMTP id x8-20020ac85f08000000b003bfa6db6108mr758819qta.53.1677812432567; Thu, 02 Mar 2023 19:00:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677812432; cv=none; d=google.com; s=arc-20160816; b=JeROyvKtzzXBeS/w6wihIQkE6+nL7q5IBKQLFA73AUoyobLY7JQ3XfO7E0y8lXfmss g31qzZfD5mU4+olKqTAvxGREZKSs7lmjE8gv3vvI145r01irNeVGB5/1hzzzOdpri8Nc 5XGDLPanoLYr1aQ1IUJrpaqhTF+fhci8L7e/Ir232snRhETV/9W/0YNO0TVEn8uuFBP6 kN18r/iRxnj2wRT8ETXGQnecI/VxnUZsPvycZLAUCpA7g0naE/XnKvfSzoinzK2dmVXf upZfwY6QRJoe27XDeH4TLyV5+QfK8bhY5fIrYbZTcqRKFvuiExHDPL/q9jvVWKCn3AEI DMVw== 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=vbTFZ1f//WCKqJl3a99CsWy+g64MYDHqVH/YBzELWfQ=; b=KgJzu+VqYn4R/+4f5hR91fGlU7YEHr4OKNsw7x0/9emEgWgE4VT4FCJPp3FyN+qxlo xZzhHxcxsqkFaz7jIZ6tKo8Q2ilD9osE/rI9CtjY3Rx/XouRlYeLmgJHesbSugZ1/GYd 080G4T8VHcb8B5S6coMakqBlPmsHr6bgv5ezwQPrqgUYhoaVXO0oUXBuUDYeG7xWwDRQ pISbtHgrk0p8ILbZGIqC79aAqCo4CBGZTuwA5A5QPe6gxAVkVRdNdlx2uz/VYGDaj2Oo JLQ1xR4gLM+spSmqImBiAKx3T6yEmt1ApN1lqYSF+j9NVE8mWTM2iZlA2dXfN4wIqMEV xqeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PdQhN+5W; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n16-20020a05622a11d000b003bcf7d8df93si913526qtk.431.2023.03.02.19.00.32 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Mar 2023 19:00:32 -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=PdQhN+5W; 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 <qemu-devel-bounces@nongnu.org>) id 1pXvcn-0007VL-Iw; Thu, 02 Mar 2023 21:58:25 -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 <richard.henderson@linaro.org>) id 1pXvce-0007QL-Iu for qemu-devel@nongnu.org; Thu, 02 Mar 2023 21:58:17 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pXvca-0001oU-Qu for qemu-devel@nongnu.org; Thu, 02 Mar 2023 21:58:14 -0500 Received: by mail-pj1-x102d.google.com with SMTP id m8-20020a17090a4d8800b002377bced051so4851499pjh.0 for <qemu-devel@nongnu.org>; Thu, 02 Mar 2023 18:58:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677812291; 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=vbTFZ1f//WCKqJl3a99CsWy+g64MYDHqVH/YBzELWfQ=; b=PdQhN+5WzOLuvf9oh8UeVRam1saPkfblLm1VMWgrwjxS/M8iEYkEcNHkvXnguipXtn +4EJkwyxPCsL1BTwrH+5i0XeSPAwxx1Ii55QYn/P4d29SGhOy1PVm+CbggSGZpHVsE8N CrE8q7ofNAAZwiZxx+E2sGX+zqWEX7JpdXWz8Dfv7tbCvgSxnxLmgjE7VHyxI4rvJpnS 5XjqV0VUqyBfaoLuMZOc5TtW5FylxiE6+2Ztn9XMxGuSOp98ZAvgXhwDEVhOcnTn5h8F v1pjo27tqzB95TCXl5XEcLu9EFfP89dMRWdh4NMKU1vqOFqF2yjqVkOTSNOkIrpYgiuw Jorw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677812291; 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=vbTFZ1f//WCKqJl3a99CsWy+g64MYDHqVH/YBzELWfQ=; b=mzocMwjyN6JiIEiKIFVZPp0REzGVDGus9kSbRo+A78eJgyM9PchlQLxN671PdGlh/L NGrv0L8IuzkUzvVsruzD1TbfNJI/FBMY0C/+d3nEfksOl0+zuyw0KrLX4GkpEEpkrLY9 XqmGUNdoQuiu5r7aLzii2rw9r5d1H9rq07I+3ZDQ/7dp+USfm+hZ3A7LEwesfclNKPDd CFvx0s9j057wDR0Fl2rqhzI8EuzTYWOZSiKgscJAoAYH8RryBGnAyK5XT00LHiSVEzk+ thpNAiE2fO31Optzv3OcEAJcLL3uI9MYJ96nV/5iJHkGhGJ4Hub1qOD38hto6llqlYmo sTqw== X-Gm-Message-State: AO0yUKVFqU9zWwpeSIkdnkw7EQMXHOAlbDyw1tPRHT7sqlKnkmZb/pMl 9cCFKLiQqVqkd//SXfQPd1LbKOSCHLAY4CJ4hq4= X-Received: by 2002:a17:903:22ce:b0:19d:90f:6c6c with SMTP id y14-20020a17090322ce00b0019d090f6c6cmr698619plg.17.1677812291174; Thu, 02 Mar 2023 18:58:11 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:f3e6:4626:fbc8:b2ce]) by smtp.gmail.com with ESMTPSA id e4-20020a17090301c400b001992e74d055sm372244plh.12.2023.03.02.18.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 18:58:10 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Subject: [PATCH v4.5 04/29] gdbstub: clean-up indent on gdb_exit Date: Thu, 2 Mar 2023 18:57:40 -0800 Message-Id: <20230303025805.625589-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230303025805.625589-1-richard.henderson@linaro.org> References: <20230303025805.625589-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
gdbstub/next: re-organise and split build
|
expand
|
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 }