Watchpoints broken in HEAD

Andreas Schwab schwab@suse.de
Mon Jun 14 15:14:00 GMT 2004


Support for hardware watchpoints on ia64 is currently broken.  gdb is just
reporting SIGTRAP when the watchpoint triggers.

$ cat hello.c
#include <stdio.h>

int i;

int
main (void)
{
  printf ("Hello world\n");
  i = 1;
  return 0;
}
$ gdb hello
GNU gdb 2004-06-14-cvs
Copyright 2004 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 "ia64-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) watch i
Hardware watchpoint 1: i
(gdb) r
Starting program: /suse/schwab/test/hello 
Hardware watchpoint 1: i
Hardware watchpoint 1: i
Hello world

Program received signal SIGTRAP, Trace/breakpoint trap.
main () at hello.c:9
9         i = 1;
(gdb) 

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb mailing list