Message ID | 20210115130828.23968-21-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:fb05:0:0:0:0 with SMTP id lz5csp546636ejb; Fri, 15 Jan 2021 06:17:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPleD+vUBkhFDX6hT0blcVgA0ZMPUwO2oilUkrcjYEPR75+YGJAOaIoHj3aUQNUAurACMC X-Received: by 2002:a25:e007:: with SMTP id x7mr17837263ybg.123.1610720274971; Fri, 15 Jan 2021 06:17:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610720274; cv=none; d=google.com; s=arc-20160816; b=GgL8g9IOIJqvYYM6wp0ip7ew9WH5SGeXtVBRi/2FuTDFbSLGHqN2BFDN50HyDTFMpk smVN4BeEfaVqJ3w3yliVU84lnFsQgGzTnfv9PZR8ysmHvbZy93CZJGmb9k8oTSja1Uwf L3UWIn5L8NSv8zGxx5VlDn2WkKQqCi6IYSgy24S6Ll1MO4bSkxHGmXEr1vK/iQSo7CQ+ ARsVWUzshIOJPrPaVSLQulLWEWL4gB8+AS+OQQSzzUCX/CkG5UYJpFnl3jYIRcvGiNaI Un7IntGlxZdE8r7DduQjKAQkoZcpe529pY5svhM6IG4FhwWsIlBKij7MUQ7CM6xaKUTH b7xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=fZE5uaIwLZldq7vEhz62Qdeapora369YG0j9BYJ0Rp8=; b=XzGo0uQyT7E1AiPheUI+t9sy0EyCEp1Tu+XcC6IJUEEWu740QYf4x0ZfAnd38QhcAX f9Kl/bfMLML9AQ7MEt2KSTSHmf7BVZld5gQKbyuHdL7FEuGODQn1GEXUjmkbb/FzEMnv 0pSFmfZc5LWT1XDFYWENK9HrFGNUnRRKUW/om/jcUBdAIm1iFOAeZirxnSlm6oCCYRGw XcII88HAgnDFUii+i8X+BTgOS8Uz0OeGFy0+ZqpghK8xZN7OByJV1wmuX1uqEXW5kDuY +Bfh65zLmcyIKOSgeAj1ZUYVbOin4T+5vcGHYfL8TP/BNc2KmGNn4gBvpYb7NFwJ1OJO VEiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=n4EoICc9; 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=fail (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 m17si7585010ybt.241.2021.01.15.06.17.54 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jan 2021 06:17:54 -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=fail header.i=@linaro.org header.s=google header.b=n4EoICc9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1l0PvG-0003rL-BA for patch@linaro.org; Fri, 15 Jan 2021 09:17:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1l0PEW-00017n-JB for qemu-devel@nongnu.org; Fri, 15 Jan 2021 08:33:44 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:35736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1l0PET-00084z-Ed for qemu-devel@nongnu.org; Fri, 15 Jan 2021 08:33:44 -0500 Received: by mail-wm1-x330.google.com with SMTP id e15so1221666wme.0 for <qemu-devel@nongnu.org>; Fri, 15 Jan 2021 05:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fZE5uaIwLZldq7vEhz62Qdeapora369YG0j9BYJ0Rp8=; b=n4EoICc9z8Y/ZjPva6YEEFmJydxGhq3xJ2lMq0QJ56E3Y+TnLj9amK4CyqNgRHX5+B bsUdDdD/ZZAZ90yD2OPTc0dt5EP5ViZLC2GxZMsxd6EnmE9ot8WahPuwuVbGS6S1RqdO HKL4hWDqvH8U+loxmLnWRNzTmzC7zNt5fpje9okCkOwjkCKLomOE33ui9D1954Da+cvj fgPLqMoQnUFqf50o32boTft2vm4xwiEh9xL6BaYjkdae9xeigTOMHGEFy7L8hjEgLRr3 rUlJi+Jys7r0xmW5V6HqPlNzbyRyAoUQ9qgF+ilGr05rT2KwCUnLsQD8koxrMcfomphS 3zLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fZE5uaIwLZldq7vEhz62Qdeapora369YG0j9BYJ0Rp8=; b=ZJodVy4irbTERt1Y8rnF3KHGezj3c2V2orJ/qxoCWbr3z++VB/d+u5n0dNnYyCN0Qz iKJpGeSHGq3f9d6gBWTYIxUR9qBs+LKhuhHrKdO3Lese7APVZlt4viHaJX99B7OSWgiV rtoLXfLuuMdlNfm/yvAXqMTcO0Cpeo1QM1Sho3BOx3JP1BkCn2kPaSCi7DGyQrXhTYrV lIH7W6bskcdJe0mxaCK1GT5HT8dh1ncD3YTzMDrNFubJhm/on6Afd8zxWAUZ7+XiwNE9 +L5JRHk6RGCiqpduEFgrhVkkR56q8sDPnFMbD/4hTZRBrM2axX7uVZ9Im1lWCpGVYsN0 P2tA== X-Gm-Message-State: AOAM532f8ObeuYV2BdecmxOtBzqCmG5b/kLjL4/1hf6ifvAspP6DxYej GnrP3EKCmYpH5l90PNRPH2oQ3g== X-Received: by 2002:a1c:9ece:: with SMTP id h197mr3054045wme.76.1610717619674; Fri, 15 Jan 2021 05:33:39 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c4sm12625486wmf.19.2021.01.15.05.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 05:33:33 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0A5361FFA9; Fri, 15 Jan 2021 13:08:33 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org Subject: [PULL 20/30] gdbstub: ensure we clean-up when terminated Date: Fri, 15 Jan 2021 13:08:18 +0000 Message-Id: <20210115130828.23968-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210115130828.23968-1-alex.bennee@linaro.org> References: <20210115130828.23968-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.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.23 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> Cc: Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= <philmd@redhat.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
testing, gdbstub and semihosting
|
expand
|
diff --git a/gdbstub.c b/gdbstub.c index bab8476357..8c301edf32 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1978,6 +1978,7 @@ static void handle_v_kill(GdbCmdContext *gdb_ctx, void *user_ctx) /* Kill the target */ put_packet("OK"); error_report("QEMU: Terminated via GDBstub"); + gdb_exit(0); exit(0); } @@ -2539,6 +2540,7 @@ static int gdb_handle_packet(const char *line_buf) case 'k': /* Kill the target */ error_report("QEMU: Terminated via GDBstub"); + gdb_exit(0); exit(0); case 'D': {