S390: Avoid direct access to lwp_info structure
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)
commit9c2996c98278a95593afaa79db0dc00bb2aff189
tree77ca3b3739cdd931515750cf410add2cdcbcffd7
parentd41a5c096ec613f7df33d5d5ea4c0e512ac1e87a
S390: Avoid direct access to lwp_info structure

When using the lwp_info structure, avoid accessing its members directly,
and use the advertised function interfaces instead.  This is according
to the instructions in linux-nat.h and prepares for making some of the
code common between gdb and gdbserver.

gdb/ChangeLog:

* s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
functions instead of accessing lwp_info structure members.
(s390_mark_per_info_changed): New function.
(s390_new_thread): Use it.
(s390_refresh_per_info_cb): New function.
(s390_refresh_per_info): Remove parameter.  Refresh all lwps of
the current process.
(s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
(s390_remove_watchpoint): Likewise.
gdb/ChangeLog
gdb/s390-linux-nat.c
This page took 0.025828 seconds and 4 git commands to generate.