From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30521 invoked by alias); 11 Feb 2009 11:59:25 -0000 Received: (qmail 30510 invoked by uid 22791); 11 Feb 2009 11:59:24 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.246) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Feb 2009 11:59:19 +0000 Received: by rv-out-0708.google.com with SMTP id b17so91968rvf.48 for ; Wed, 11 Feb 2009 03:59:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.199.16 with SMTP id w16mr2336208rvf.2.1234353557294; Wed, 11 Feb 2009 03:59:17 -0800 (PST) Date: Wed, 11 Feb 2009 11:59:00 -0000 Message-ID: Subject: Is this a bug or as designed? From: "Amker.Cheng" To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2009-02/txt/msg00090.txt.bz2 Hi All: I got a problem about the behavior of gdb 6.8. When remote debugging win32 inferior with gdb and gdbserver(both running on the same machine), I found that gdb always missing watchpoints. just like following outputs: ----------------start here GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-pc-cygwin". (gdb) file a.exe Reading symbols from /cygdrive/e/work/gdb/native-target/bin/a.exe...done. (gdb) target remote :2345 Remote debugging using :2345 [New Thread 1980] Reading symbols from /cygdrive/c/WINDOWS/system32/ntdll.dll...done. Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll Reading symbols from /cygdrive/c/WINDOWS/system32/kernel32.dll...done. Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll Reading symbols from /usr/bin/cygwin1.dll...done. Loaded symbols for /usr/bin/cygwin1.dll Reading symbols from /cygdrive/c/WINDOWS/system32/advapi32.dll...done. Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll Reading symbols from /cygdrive/c/WINDOWS/system32/rpcrt4.dll...done. Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll 0x7c921231 in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) awatch b Hardware access (read/write) watchpoint 1: b (gdb) c Continuing. Program exited normally. (gdb) q ------------------cut here According to above output, gdb just let inferior run to end normally, although it said hardware watchpoint was set successfully. I checked the remotelogfile and found there is no "Z" packets at all. Further more, I think there is something wrong when handling hardware watchpoint in gdbserver for win32, because the debug register is not set at all in gdbserver. BTW It is sure that there are access to b in the inferior program and There is no such problem with native debug with GDB under win32+cygwin. Thanks for help! Regards.