From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21863 invoked by alias); 1 Jul 2011 10:02:26 -0000 Received: (qmail 21854 invoked by uid 22791); 1 Jul 2011 10:02:25 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jul 2011 10:02:12 +0000 Received: (qmail 6826 invoked from network); 1 Jul 2011 10:02:11 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Jul 2011 10:02:11 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Why gdb-7.1 doesn't set hardware watchpoints on i7 CPU (amd64)? Date: Fri, 01 Jul 2011 10:02:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) Cc: Yuri References: <4D0AD70D.9020702@rawbw.com> <4E0D0957.6040003@rawbw.com> In-Reply-To: <4E0D0957.6040003@rawbw.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201107011102.09027.pedro@codesourcery.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: 2011-07/txt/msg00000.txt.bz2 On Friday 01 July 2011 00:40:07, Yuri wrote: > This GDB was configured as "x86_64-unknown-freebsd8.2". It doesn't looks like the x86-64/FreeBSD port knows about hardware watchpoints. The 32-bit port seems to though: $ grep i386_use_watchpoints *.c amd64-linux-nat.c: i386_use_watchpoints (t); go32-nat.c: i386_use_watchpoints (&go32_ops); i386fbsd-nat.c: i386_use_watchpoints (t); i386-linux-nat.c: i386_use_watchpoints (t); i386-nat.c:i386_use_watchpoints (struct target_ops *t) windows-nat.c: i386_use_watchpoints (&windows_ops); The x86-64/FreeBSD target backend file is amd64fbsd-nat.c. Try debugging gdb with itself, and put a breakpoint on i386_use_watchpoints. If that isn't hit on gdb startup, then the port definitely doesn't know about hardware watchpoints. -- Pedro Alves