mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
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
29 lines
497 B
Plaintext
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
|