This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Problem with "watch" on a new port.
- From: Florent DEFAY <spira dot inhabitant at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 1 Jul 2009 11:10:31 +0200
- Subject: Problem with "watch" on a new port.
Hi,
I am working on a new port for a 16 bit machine.
step, stepi, next, nexti, breakpoints work well.
The problems come with "watch", it does not work :
(gdb) watch i
Hardware watchpoint 2: i
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000174 in main () at main.c:67
67 for (i = 0; i < 10; i++)
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000019c in main () at main.c:67
67 for (i = 0; i < 10; i++)
(gdb)
or
(gdb) watch results_16[0]
(gdb) c
Continuing.
and assignment of results_16[0] not detected.
I do not know where to begin to solve this problem.
Please, have you any clue?
Regards.
Florent