Message ID | 20170607044331.GD26483@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA30660364 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 7 Jun 2017 04:39:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93E6E27F9A for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 7 Jun 2017 04:39:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 861E128512; Wed, 7 Jun 2017 04:39:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B077127F9A for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 7 Jun 2017 04:39:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P4dKxw0WiER1i08LMTstI7AmeAIqhMouV+hYIQaSx2U=; b=L8shqZp8fvocJx vuxUGMt2d76ibrJVK0t/1LCooV3fk+YOhBiLp49HtwYlIpCxCYYXmCv5ySjbazHJIRraF3rnHIHIZ tlSyTrMhiEC0FHnYZKj2jWO3AQvNS8cjADlMLYE3vOkYYLwy+dH1bL2m+wxdZVC8gQyo0EVk3I5Q+ INDYWk5iSf88VLJmE11MRK3Zl98j1T7PqsW77woURwDdMBEnScr1Fr9gps00pHLq3HH468srffx2t ilPaGqnyHFKCZIkgKPgSM8nvoyoX+gLEMrhzMADLXp7CmO2/fKV1I2hYwy2B5G+ZzaHyyhUxeoi3z 7N1GYCYZ5upyuHXkkh7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dISkR-0003D8-JU; Wed, 07 Jun 2017 04:39:11 +0000 Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dISkO-00037c-Pf for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2017 04:39:10 +0000 Received: by mail-pg0-x230.google.com with SMTP id k71so1090893pgd.2 for <linux-arm-kernel@lists.infradead.org>; Tue, 06 Jun 2017 21:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1NhgSFH/hWUVS2S5KtxDHqIpNDsiM4lTqJVnCDoBgHI=; b=PeBkcKJ+ahPSMaz0G+izmLVjsb8fALu6G7Ycgdt4XndOuzHiusooJa0BQs6T66Qx8k +bkm+FSBiZ6gOouphcAZAM6So5Uhqnt9B58fWjQWxHneLteglj6CzjYWogKPVhtApVs8 TeDASj1PZKz0lSsARE5IlWiIcE6QbYvhsB348= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=1NhgSFH/hWUVS2S5KtxDHqIpNDsiM4lTqJVnCDoBgHI=; b=XvSF94yvo4vwLDH34l9zzAzAwEWGIlI1TjHsCeCySlPLDtwv+3lRS2MjNe6szXezMo gghy1gB028ELRCIPTNTjdkvD6Q2ry25a8ABNvmE1tUGmH7m+b4Qijav4RaMpoggx/ODR hERCmgNBEeXZp5bNUsOypbndC/yBXuU0i+CqPV7FY2oRxQHMa/k3VEKMDQQXDWTbueoN UUZPGuNz62jRqKZLD3KiOKXFGT2AJBJ5/PlEYwO/+FfwexLnfeYNAqw8cefRhgEmUvBP n5zQmZKdp2bC8lNzRE5oj8Kg9d+Hi+nsTy92lzplUydTfuEwoLk5YpKpJ+t6HfoUchEk qHMA== X-Gm-Message-State: AODbwcCpR07k2nDySeJIxkFOuhA8iaAcznjAfwmT2F9gFrH73Zt4pWHG /a8nfUMU/Jx0jv/t X-Received: by 10.84.254.73 with SMTP id a9mr1888401pln.64.1496810327558; Tue, 06 Jun 2017 21:38:47 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id l85sm737011pfj.130.2017.06.06.21.38.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Jun 2017 21:38:46 -0700 (PDT) Date: Wed, 7 Jun 2017 13:43:33 +0900 From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: Will Deacon <will.deacon@arm.com> Subject: Re: [PATCH v3 1/4] arm64: kgdb: fix single stepping Message-ID: <20170607044331.GD26483@linaro.org> Mail-Followup-To: AKASHI Takahiro <takahiro.akashi@linaro.org>, Will Deacon <will.deacon@arm.com>, catalin.marinas@arm.com, jason.wessel@windriver.com, linux-arm-kernel@lists.infradead.org, kgdb-bugreport@lists.sourceforge.net References: <20170523043058.5463-1-takahiro.akashi@linaro.org> <20170523043058.5463-2-takahiro.akashi@linaro.org> <20170605162925.GO21944@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170605162925.GO21944@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170606_213908_861739_06263305 X-CRM114-Status: GOOD ( 19.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: kgdb-bugreport@lists.sourceforge.net, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, jason.wessel@windriver.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/kgdb.c b/arch/arm64/kernel/kgdb.c index 2122cd187f19..a04c4242c3f8 100644 --- a/arch/arm64/kernel/kgdb.c +++ b/arch/arm64/kernel/kgdb.c @@ -253,6 +253,10 @@ static int kgdb_step_brk_fn(struct pt_regs *regs, unsigned int esr) return DBG_HOOK_ERROR; kgdb_handle_exception(1, SIGTRAP, 0, regs); + + /* rewind a single step */ + regs->pstate |= DBG_SPSR_SS; + return 0; } NOKPROBE_SYMBOL(kgdb_step_brk_fn);