This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How are watchpoints handled? (remote serial)
- From: Juha Aaltonen <turbopultti at gmail dot com>
- To: gdb-mailing list <gdb at sourceware dot org>
- Date: Tue, 10 Nov 2015 00:57:46 +0200
- Subject: How are watchpoints handled? (remote serial)
- Authentication-results: sourceware.org; auth=none
How should the watchpoints be handled by remote stub/server?
It seems that when 'cont'-command is given, gdb re-installs watchpoint
and sends 'c'-packet.
If the return address is the trap address, the watchpoint trigs again,
but if the address is advanced,
the access is not done at all, because the watchpoint makes exception
before the access is made.