From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25985 invoked by alias); 1 Jul 2009 09:51:50 -0000 Received: (qmail 25975 invoked by uid 22791); 1 Jul 2009 09:51:49 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jul 2009 09:51:41 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MLwTW-0004RT-5x for gdb@sources.redhat.com; Wed, 01 Jul 2009 09:51:34 +0000 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jul 2009 09:51:34 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jul 2009 09:51:34 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Problem with "watch" on a new port. Date: Wed, 01 Jul 2009 09:51:00 -0000 Message-ID: References: <8502af3c0907010210j519bbdcbh17341eb353e8a921@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 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: 2009-07/txt/msg00003.txt.bz2 Florent DEFAY wrote: > Hi, > > I am working on a new port for a 16 bit machine. > > step, stepi, next, nexti, breakpoints work well. > The problems come with "watch", it does not work : > > (gdb) watch i > Hardware watchpoint 2: i > (gdb) c > Continuing. > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x00000174 in main () at main.c:67 > 67 for (i = 0; i < 10; i++) This suggest you did not define, or improperly defined, the to_stopped_by_watchpoint or to_stopped_data_address or to_watchpoint_address_withing_range target methods. > (gdb) c > Continuing. > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x0000019c in main () at main.c:67 > 67 for (i = 0; i < 10; i++) > (gdb) > > > or > > > (gdb) watch results_16[0] > (gdb) c > Continuing. > > and assignment of results_16[0] not detected. Is this variable actually modified *before* the execution leaves the current scope? - Volodya