From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8049 invoked by alias); 29 May 2003 17:41:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7993 invoked from network); 29 May 2003 17:41:24 -0000 Received: from unknown (HELO cygnus.equallogic.com) (65.170.102.10) by sources.redhat.com with SMTP; 29 May 2003 17:41:24 -0000 Received: from cygnus.equallogic.com (localhost.localdomain [127.0.0.1]) by cygnus.equallogic.com (8.11.6/8.11.6) with ESMTP id h4THfNr03548 for ; Thu, 29 May 2003 13:41:23 -0400 Received: from deneb.dev.equallogic.com (deneb.dev.equallogic.com [172.16.1.99]) by cygnus.equallogic.com (8.11.6/8.11.6) with ESMTP id h4THfMu03536; Thu, 29 May 2003 13:41:22 -0400 Received: from pkoning.dev.equallogic.com.equallogic.com (localhost.localdomain [127.0.0.1]) by deneb.dev.equallogic.com (8.11.6/8.11.6) with ESMTP id h4THfM631374; Thu, 29 May 2003 13:41:22 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nOsGa53LAS" Content-Transfer-Encoding: 7bit Message-ID: <16086.17988.605671.621116@pkoning.dev.equallogic.com> Date: Thu, 29 May 2003 17:41:00 -0000 From: Paul Koning To: drow@mvista.com Cc: eliz@elta.co.il, gdb-patches@sources.redhat.com Subject: Re: proposed PATCH: make watchpoints work correctly References: <16084.56661.295275.544414@pkoning.dev.equallogic.com> <1659-Wed28May2003225524+0300-eliz@elta.co.il> <16085.7093.776115.863795@pkoning.dev.equallogic.com> <5567-Thu29May2003062838+0300-eliz@elta.co.il> <16086.9378.401730.788367@pkoning.dev.equallogic.com> <20030529153705.GC10807@nevyn.them.org> X-SW-Source: 2003-05/txt/msg00546.txt.bz2 --nOsGa53LAS Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Content-length: 632 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> I don't know how facile you are with expect, but could you Daniel> either write a full testcase or at least give me a small Daniel> sample code and session transcript to reduce the problem, so Daniel> that this can go into the testsuite? I know next to nothing about expect, and from a quick look at some testsuite files it would take me some time to construct a proper testcase file. Attached are a test program and a before and after log of a session that shows the issue with awatch. The test run was on RedHat 8.0 linux, gdb 5.3 native. paul --nOsGa53LAS Content-Type: text/plain Content-Disposition: inline; filename="awatch.c" Content-Transfer-Encoding: 7bit Content-length: 113 volatile int i, j; int main (int argc, char **argv) { i = 1; j = 1; j = 2; j = 3; i = 2; } --nOsGa53LAS Content-Type: text/plain Content-Disposition: inline; filename="before.log" Content-Transfer-Encoding: 7bit Content-length: 1274 [pkoning@pkoning gdb-5.3]$ gdb/gdb a.out GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) b main Breakpoint 1 at 0x8048318: file awatch.c, line 5. (gdb) run Starting program: /usr/src/gdb-5.3/a.out Breakpoint 1, main (argc=1, argv=0xbffffae4) at awatch.c:5 5 i = 1; (gdb) awatch i Hardware access (read/write) watchpoint 2: i (gdb) s 6 j = 1; (gdb) Hardware access (read/write) watchpoint 2: i Value = 0 main (argc=1, argv=0xbffffae4) at awatch.c:7 7 j = 2; (gdb) Hardware access (read/write) watchpoint 2: i Value = 0 main (argc=1, argv=0xbffffae4) at awatch.c:8 8 j = 3; (gdb) Hardware access (read/write) watchpoint 2: i Value = 0 main (argc=1, argv=0xbffffae4) at awatch.c:9 9 i = 2; (gdb) Hardware access (read/write) watchpoint 2: i Old value = 0 New value = 2 main (argc=1, argv=0xbffffae4) at awatch.c:10 10 } (gdb) q The program is running. Exit anyway? (y or n) y --nOsGa53LAS Content-Type: text/plain Content-Disposition: inline; filename="after.log" Content-Transfer-Encoding: 7bit Content-length: 971 [pkoning@pkoning gdb-5.3]$ gdb/gdb a.out GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) b main Breakpoint 1 at 0x8048318: file awatch.c, line 5. (gdb) run Starting program: /usr/src/gdb-5.3/a.out Breakpoint 1, main (argc=1, argv=0xbffffae4) at awatch.c:5 5 i = 1; (gdb) awatch i Hardware access (read/write) watchpoint 2: i (gdb) s 6 j = 1; (gdb) 7 j = 2; (gdb) 8 j = 3; (gdb) 9 i = 2; (gdb) Hardware access (read/write) watchpoint 2: i Old value = 0 New value = 2 main (argc=1, argv=0xbffffae4) at awatch.c:10 10 } (gdb) q The program is running. Exit anyway? (y or n) y --nOsGa53LAS--