Problem with "watch" on a new port.

Florent DEFAY
2009-07-01T09:10:42Z

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