From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6216 invoked by alias); 17 Jun 2013 15:48:17 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 6152 invoked by uid 89); 17 Jun 2013 15:48:11 -0000 X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 17 Jun 2013 15:48:11 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Uobf7-0000sH-Sx from Maciej_Rozycki@mentor.com for gdb-patches@sourceware.org; Mon, 17 Jun 2013 08:48:09 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 17 Jun 2013 08:48:09 -0700 Received: from [172.30.64.32] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Mon, 17 Jun 2013 16:48:07 +0100 Date: Mon, 17 Jun 2013 16:04:00 -0000 From: "Maciej W. Rozycki" To: Yao Qi CC: Subject: Re: [PATCH 1/3] Include asm/ptrace.h in mips-linux-nat.c In-Reply-To: Message-ID: References: <1369881867-11372-1-git-send-email-yao@codesourcery.com> <1369881867-11372-2-git-send-email-yao@codesourcery.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-06/txt/msg00377.txt.bz2 On Thu, 13 Jun 2013, Maciej W. Rozycki wrote: > For the record the system I intended to run native testing on does indeed > support hardware watchpoints, although a minimal number of them: > > hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb] > > -- i.e. a single data watchpoint and a single execution watchpoint only > (as noted by the "irw mask" field, taking the 3 LSBs of the values > reported). I expect to have results by the end of tomorrow and will let > you know how that has gone. I have finished testing, but regrettably test results are inconclusive, sorry about that. Testing revealed issues with the kernel, specifically: 1. I-cache vs D-cache coherency problems affecting GDB execution (crashes) and software breakpoints (spurious and missed hits). 2. Hardware watchpoints never hitting regardless of your change being present or not, and then both in GDB and gdbserver. Therefore I must accept your limited native testing and will assume all is right based on code review. I'll look through the two remaining changes and see if all is right there. We can then address any issues as they pop up in the future once a good native platform is available. Meanwhile I have contacted the MIPS/Linux maintainer regarding the problems I observed. Hopefully they can be sorted out reasonably soon, though I wouldn't bet on it as my suspicion is it's been a long-standing problem with that platform (and 2.6.18 is the last known-good version of the kernel there -- before the big cache handling rewrite). Maciej