This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Does hardware watchpoint work on Linux/x86-64?


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 <http://gnu.org/licenses/gpl.html>
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]