From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88967 invoked by alias); 16 Jul 2017 09:42:52 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 66270 invoked by uid 89); 16 Jul 2017 09:42:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=too!, pulled, UD:i.mx6, i.mx6 X-HELO: mail-qk0-f196.google.com Received: from mail-qk0-f196.google.com (HELO mail-qk0-f196.google.com) (209.85.220.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Jul 2017 09:42:33 +0000 Received: by mail-qk0-f196.google.com with SMTP id c18so7306214qkb.2 for ; Sun, 16 Jul 2017 02:42:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3JUGRrjfwBUXhrqSrIYzN/n06GXj3v/9J1j1lOaIDWo=; b=E5+9lmh5nLL/qKkLfiR1pYGzF0o9gZNN+u9/zoGI0WNECbLsnBUuRp2QKrkZLr6gZB WobC127yulnvMR5r3Rn8bbClSofigLRkL6uF6n2h2D+05Uq9cxYSyVbAl9229h3cWszA 9D1cFa7V/2yJ+EKbtqdywJiZ8SiOneJUF6w+9+XxUZ9u6x+hFmx2OKRaDaV9nvprSBFN T+TRSUpSvCEiABtFfM+GPMDEJNEDkVSzKz+IDI83opU8AGUm7OugHEByAC67Uxg4WKb4 /cS65imTDN78KTkXwdJjyUn8IilQJxsMLsJqbOx+IaiNg2oVX5iH1W7gwFik2tXXUQJZ DR0g== X-Gm-Message-State: AIVw113cNFGVcmYic0Gg4nFsTQpxWYmstBxZflirQEJXgs/Nt3+s93Ka H+xnGxnz1z8J8ATHD/n9Vk3Cd0jeJw== X-Received: by 10.55.3.130 with SMTP id 124mr19325995qkd.31.1500198151748; Sun, 16 Jul 2017 02:42:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.44.5 with HTTP; Sun, 16 Jul 2017 02:42:31 -0700 (PDT) In-Reply-To: <201707160852.v6G8qFsw000816@licht.localdomain> References: <201707160852.v6G8qFsw000816@licht.localdomain> From: Christian Gagneraud Date: Sun, 16 Jul 2017 09:42:00 -0000 Message-ID: Subject: Re: HW watchpoint on Linux/ARM To: Peter Schauer Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00029.txt.bz2 On 16 July 2017 at 20:52, Peter Schauer wrote: >> But on i.mx6, it does. From memory, the kernel told me that I have >> access to 5 HW breakpoints and 1 HW watchpoint (I don't have the board >> at hand, but will post details on Monday). > > I had the same problem with an i.mx6 board three years ago. > I don't remember all the details, but it had to do with the > ARM secure debug mode, which is active when the SPIDEN pin is pulled low > in hardware. > > I had a kernel hack back then, which enabled the hardware break mechanism > even if the SPIDEN pin is pulled low, but it disables the secure debug mode, > and worked only for my arm architecture (I couldn't test others), so > I didn't post it to the kernel group. > > If your problem is caused by SPIDEN low, and you are interested in > the kernel hack, please let me know. > I could also send you a detailed analysis of the problem in german, > in case you are interested. Hi Peter, Yes please, I'm interested by your hacky patch, and i'll take the german analysis too! ;) Thanks, Chris > > -- > Peter Schauer Peter.Schauer@mytum.de