From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31686 invoked by alias); 3 May 2012 21:18:10 -0000 Received: (qmail 31677 invoked by uid 22791); 3 May 2012 21:18:09 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mailrelay002.isp.belgacom.be (HELO mailrelay002.isp.belgacom.be) (195.238.6.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 21:17:55 +0000 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBABb1ok/ZiDto/2dsb2JhbAANOIVusB8BAQEEI1YQCw4KAgImAgJXBrAEkwuBL45BgRgEqSo Received: from 104.59-136-217.adsl-dyn.isp.belgacom.be (HELO [192.168.1.3]) ([217.136.59.104]) by relay.skynet.be with ESMTP; 03 May 2012 23:17:54 +0200 Subject: Re: Hardware watchpoint for read From: Philippe Waroquiers To: Xin Tong Cc: "Gustavo, Luis" , gdb@sourceware.org In-Reply-To: References: <4F96A614.3040303@mentor.com> <4F96A812.4000008@mentor.com> <4F96B68C.3050703@mentor.com> <4F96C2A7.2010206@mentor.com> <4F97E547.4070307@mentor.com> <30865C01C5AF4B6B9B01901B792C4EF5@soleil> Content-Type: text/plain; charset="UTF-8" Date: Thu, 03 May 2012 21:18:00 -0000 Message-ID: <1336079874.23991.6.camel@soleil> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: 2012-05/txt/msg00015.txt.bz2 On Thu, 2012-05-03 at 15:41 -0400, Xin Tong wrote: > The breakpoint instructions (int 3 on x86) are inserted in the > translation process ? Valgrind gdbserver implements breakpoints during code translation by inserting calls to a Valgrind "helper" procedure. You can use a Valgrind gdbserver monitor command to inspect the translation: v.translate [] : debug translation of with (default traceflags 0b00100000 : show after instrumentation) An additional flag 0b100000000 allows to show gdbserver instrumentation read/write/access watchpoints are implemented on top of memcheck "addressability" V bits. memcheck is the only Valgrind tool that implements watchpoints. Philippe