This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Problem with "watch" on a new port.
Florent DEFAY wrote:
> 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++)
This suggest you did not define, or improperly defined, the
to_stopped_by_watchpoint or to_stopped_data_address or
to_watchpoint_address_withing_range target methods.
> (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.
Is this variable actually modified *before* the execution leaves
the current scope?
- Volodya