S390: Migrate watch areas from list to VEC type
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Fri, 16 Sep 2016 17:25:54 +0000 (19:25 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Fri, 16 Sep 2016 17:25:54 +0000 (19:25 +0200)
commit17c84ccaf042dfb7dd81e4670b74768fe5a96017
tree268c19c9e07a5df4732a59e2d3f88552d1de9e26
parent9c2996c98278a95593afaa79db0dc00bb2aff189
S390: Migrate watch areas from list to VEC type

For S390, the list of active watchpoints is maintained in a list based
at "watch_base".  This refactors the list to a vector "watch_areas".

gdb/ChangeLog:

* s390-linux-nat.c (s390_watch_area): New typedef.  Define a VEC.
(watch_base): Remove variable.
(watch_areas): New variable.
(s390_stopped_by_watchpoint): Transform operations on the
watch_base list to equivalent operations on the watch_areas VEC.
(s390_prepare_to_resume): Likewise.
(s390_insert_watchpoint): Likewise.
(s390_remove_watchpoint): Likewise.
gdb/ChangeLog
gdb/s390-linux-nat.c