From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7612 invoked by alias); 16 Apr 2008 22:05:55 -0000 Received: (qmail 7599 invoked by uid 22791); 16 Apr 2008 22:05:54 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Apr 2008 22:05:26 +0000 Received: by nf-out-0910.google.com with SMTP id b11so877705nfh.48 for ; Wed, 16 Apr 2008 15:05:23 -0700 (PDT) Received: by 10.78.123.4 with SMTP id v4mr866486huc.89.1208383523133; Wed, 16 Apr 2008 15:05:23 -0700 (PDT) Received: by 10.78.163.20 with HTTP; Wed, 16 Apr 2008 15:05:23 -0700 (PDT) Message-ID: <6dc9ffc80804161505h739a3aa0t86556f71d6422772@mail.gmail.com> Date: Wed, 16 Apr 2008 22:36:00 -0000 From: "H.J. Lu" To: gdb@sourceware.org Subject: Does hardware watchpoint work on Linux/x86-64? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-04/txt/msg00160.txt.bz2 I got gnu-27:pts/1[20]> ./gdb /net/gnu-6/export/build/gnu/binutils/build-x86_64-linux/binutils/readelf GNU gdb 6.8.50.20080416-cvs 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 "x86_64-unknown-linux-gnu"... Setting up the environment for debugging gdb. Function "internal_error" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] Function "info_command" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] /export/build/gnu/gdb/build-x86_64-linux/gdb/.gdbinit:8: Error in sourced command file: No breakpoint number 0. (gdb) watch section_headers During symbol reading, DW_AT_type missing from DW_TAG_subrange_type. Watchpoint 1: section_headers (gdb) q Gdb from Fedora 8 works fine: [hjl@gnu-6 tmpdir]$ /usr/bin/gdb ../../binutils/readelf GNU gdb Red Hat Linux (6.6-45.fc8rh) Copyright (C) 2006 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 "x86_64-redhat-linux-gnu"... Using host libthread_db library "/lib64/libthread_db.so.1". (gdb) watch section_headers Hardware watchpoint 1: section_headers (gdb) H.J.