(fhpd) print array {0,0,0,0} (fhpd) print array[ 0:1] {0,0} (fhpd) watch array[ 0:1] Watchpoint set: array[ 0:1] (Uses 0 debug register(s))
The watch installer was getting the size of the expression from the type parser. But the type parser has no information on the size of a sliced array. Get size from Location instead. Commit: Fixes bug# 6623. Use Location.length() for getting expression size. frysk-core/frysk/rt/ChangeLog: 2008-06-11 Teresa Thomas <tthomas@redhat.com> * WatchObserverInstaller.java (install): Use Location.length() instead of Type.getSize(). Demo (IA32): (fhpd) watch array[ 0:1] (fhpd) Watchpoint set: array[ 0:1] (Uses 2 debug register(s))