gdb: xtensa-linux: support THREADPTR register
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 18 Nov 2016 19:39:47 +0000 (11:39 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 27 Mar 2017 20:02:12 +0000 (13:02 -0700)
commitf74f865e5030057deb8a6a56af4a9e003d82cdcd
tree08ff781da4df490835f53af4c23cabc80f4135ac
parent0d0bf81a6729478563c3851ccfca435222ddfa25
gdb: xtensa-linux: support THREADPTR register

Make THREADPTR user register accessible.

gdb/
2017-03-27  Max Filippov  <jcmvbkbc@gmail.com>

* xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
for THREADPTR register.
(supply_gregset_reg): Call regcache_raw_supply for THREADPTR
register.
* xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
(xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
* xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
gdb/ChangeLog
gdb/xtensa-linux-nat.c
gdb/xtensa-tdep.c
gdb/xtensa-tdep.h