Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Bug with watchpoints on Linux
@ 2001-11-09  6:17 Pierre Muller
  2001-11-09  7:21 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pierre Muller @ 2001-11-09  6:17 UTC (permalink / raw)
  To: gdb


   There seems to be a big problem with
hardware watchpoints under Linux.

   If I compile a simple program :

/* START of twatch.c */
static int x,y;
int
main ()
{
   x = 5;
   y = x * 2;
   x = y / 2;
   x = 7;
   return 0;
}
/* END of twatch.c */
and set a hardware watchpoint on variable 'x',
the debugger correctly stops at each program location where this global var 
is changed.

   But at the second run, the program is never stopped because
of the changes to this global variable.

   It seems like there is a problem with the hardware watchpoint
resetting.

   I tested this on only one Linux machine,
but both the main and the 5.1 branches show this problem.


   The current main CVS tree with a patch (not yet submitted)
to add hardware watchpoints on cygwin target does not
have this problem (It works but there are still some problems).

This makes me suspect that the problem is truely Linux specific.

   Is this a known Linux problem of version 5.1 ?




Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


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

end of thread, other threads:[~2001-11-23 12:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-09  6:17 Bug with watchpoints on Linux Pierre Muller
2001-11-09  7:21 ` Eli Zaretskii
2001-11-09  9:40 ` Pierre Muller
2001-11-09 18:27   ` Pierre Muller
2001-11-10  9:44     ` Bug with i386 watchpoints Pierre Muller
2001-11-10 11:13       ` Eli Zaretskii
2001-11-11 13:01         ` Pierre Muller
2001-11-10 11:02 ` Bug with watchpoints on Linux Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox