public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Watchpoints broken in HEAD
@ 2004-06-14 15:14 Andreas Schwab
  2004-06-14 18:50 ` Randolph Chung
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2004-06-14 15:14 UTC (permalink / raw)
  To: gdb

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."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Watchpoints broken in HEAD
  2004-06-14 15:14 Watchpoints broken in HEAD Andreas Schwab
@ 2004-06-14 18:50 ` Randolph Chung
  0 siblings, 0 replies; 2+ messages in thread
From: Randolph Chung @ 2004-06-14 18:50 UTC (permalink / raw)
  To: gdb, Andreas Schwab

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

I wonder if this is a generic problem -- I also started seeing this on
hpux recently. i thought it used to work, but i only started paying more
attention to hpux recently.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-14 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-14 15:14 Watchpoints broken in HEAD Andreas Schwab
2004-06-14 18:50 ` Randolph Chung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).