From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16483 invoked by alias); 6 Mar 2008 07:06:51 -0000 Received: (qmail 16473 invoked by uid 22791); 6 Mar 2008 07:06:50 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 07:06:27 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JXABO-0000jg-5y for gdb@sourceware.org; Wed, 05 Mar 2008 23:06:26 -0800 Message-ID: <15867705.post@talk.nabble.com> Date: Thu, 06 Mar 2008 07:09:00 -0000 From: Guillaume MENANT To: gdb@sourceware.org Subject: Write watchpoints MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: guillaume.menant@geensys.com 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: 2008-03/txt/msg00060.txt.bz2 Hello, I'm currently working with a modified version of GDB (sparc-elf-gdb delivered by Gaisler). I'm creating a software which makes the link between this GDB and an Sparc evaluation board. I'm also working with Eclipse (my toolchain is : Eclipse <-> sparc-elf-gdb <-> My software <-> Evaluation board. I'm trying to implement watchpoints management in my software but it doesn't works. For a write watchpoint at 0x800000A4, GDB sets it (Z2) and then the watchpoint triggers on my board (just before executing the asm instruction which modifies the 0x800000A4 address), so I send back the answer T05watch800000A4 to GDB before effectively writing to the 0x800000A4 address. Then GDB reads the system registers (G), reads at the 0x800000A4 address, unsets the watchpoint, reads at the 0x800000A4 address, re-sets the watchpoint (at the same address) and make a continue. Then the watchpoint triggers again immediately because the instruction modifying the 0x800000A4 address has not been executed before. What is the problem with this GDB flow ? What can I do ? Thanks. -- View this message in context: http://www.nabble.com/Write-watchpoints-tp15867705p15867705.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.