diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-11-18 11:39:47 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-03-27 13:02:12 -0700 |
commit | f74f865e5030057deb8a6a56af4a9e003d82cdcd (patch) | |
tree | 08ff781da4df490835f53af4c23cabc80f4135ac /gdb/xtensa-tdep.h | |
parent | 0d0bf81a6729478563c3851ccfca435222ddfa25 (diff) | |
download | binutils-gdb-f74f865e5030057deb8a6a56af4a9e003d82cdcd.tar.gz |
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.
Diffstat (limited to 'gdb/xtensa-tdep.h')
-rw-r--r-- | gdb/xtensa-tdep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h index 46aeecb3556..986aa689f0c 100644 --- a/gdb/xtensa-tdep.h +++ b/gdb/xtensa-tdep.h @@ -204,6 +204,7 @@ struct gdbarch_tdep int lcount_regnum; int sar_regnum; /* Register number of SAR. */ int litbase_regnum; /* Register number of LITBASE. */ + int threadptr_regnum; /* Register number of THREADPTR. */ int interrupt_regnum; /* Register number for interrupt. */ int interrupt2_regnum; /* Register number for interrupt2. */ |