From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9934 invoked by alias); 1 Jun 2010 15:06:10 -0000 Received: (qmail 9881 invoked by uid 22791); 1 Jun 2010 15:06:09 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Jun 2010 15:05:35 +0000 Received: by vws13 with SMTP id 13so6788136vws.0 for ; Tue, 01 Jun 2010 08:05:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.95.152 with SMTP id d24mr2431624qan.384.1275404732886; Tue, 01 Jun 2010 08:05:32 -0700 (PDT) Received: by 10.229.83.208 with HTTP; Tue, 1 Jun 2010 08:05:32 -0700 (PDT) Date: Tue, 01 Jun 2010 15:06:00 -0000 Message-ID: Subject: RE: [HELP]Can GDB for ARM set hard breakpoint when native debugging? From: "karthikeyan.s" To: Will Deacon Cc: gdb@sourceware.org, Matthew Gretton-Dann Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2010-06/txt/msg00004.txt.bz2 Hi, > I've had a go at implementing a backend for hardware watchpoints and breakpoints in the Kernel: > http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/01117 > 0.html Thanks. >I'm hoping to submit a newer version of this patchset against 2.6.35. >I'll add you on CC when I post it to the list. The main changes will be: Thanks again! Looking forward to it. > It's worth noting that using the context-id based watchpoint will > almost certainly break in the case of ASID rollover for a process. It > also won't allow you to install watchpoints on a per-thread basis afaict. Yeah I agree. Not sure about the per-thread hypothesis. >The HW-breakpoint framework inserts/removes breakpoints on context >switch so the need for hardware assisted context id matching is removed. This was my next step. I thought context id based implementation would let me get familiar with what I am doing quickly and then I can take up context-switch-time bkpt insertion. But you beat me to it totally! Going through your patch and will be trying it soon. At first sight, seems the gdb changes aren't there in that link. Can you point me to the gdb changes? Thanks, Karthik