This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb: xtensa: fix test for privileged register number
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 26 Jun 2017 17:00:30 -0400
- Subject: [binutils-gdb] gdb: xtensa: fix test for privileged register number
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 0d0bf81a6729478563c3851ccfca435222ddfa25 ***
Author: Max Filippov <jcmvbkbc@gmail.com>
Branch: master
Commit: 0d0bf81a6729478563c3851ccfca435222ddfa25
gdb: xtensa: fix test for privileged register number
There are no a0-a15 pseudoregisters at the top of the register set in
call0 registers layout. All registers above gdbarch_num_regs (gdbarch)
are privileged. Treat them as such. This fixes the following gdb
assertion seen when 'finish' command is invoked:
regcache.c:649: internal-error: register_status
regcache_raw_read(regcache*, int, gdb_byte*):
Assertion `regnum >= 0 && regnum < regcache->descr->nr_raw_registers'
failed.
gdb/
2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
* xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
registers above gdbarch_num_regs (gdbarch) as privileged in
call0 ABI.