ftmemsim-valgrind/gdbserver_tests/mcwatchpoints.stdinB.gdb
Philippe Waroquiers 3f6aae03c9 Fix assert in gdbserver for watchpoints watching the same address
GDB can create watchpoints watching the same address.
This was causing assertion failures.
To handle this, hash table (with key watched address) is replaced
by an xarray of address/lengh/kind.
Fully identical watches are ignored (either not inserted, and
not causing a problem if already deleted).

gdbserver_tests/mcwatchpoint enhanced to test duplicated watchpoints



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12637
2012-06-14 19:56:20 +00:00

29 lines
497 B
Plaintext

# connect gdb to Valgrind gdbserver:
target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcwatchpoints
echo vgdb launched process attached\n
monitor v.set vgdb-error 999999
#
#
# insert break:
break breakme
#
# continue till //break1:
continue
#
# insert the watchpoints
rwatch undefined[0]
awatch undefined[4]
watch undefined[8]
rwatch undefined[9]
awatch undefined[9]
watch undefined[9]
#
# now we should encounter 4 break points
continue
continue
continue
continue
del
continue
quit