xtensa: initialize call_abi in xtensa_tdep
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 30 May 2015 10:00:32 +0000 (13:00 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 31 Aug 2015 08:59:02 +0000 (11:59 +0300)
commit90b81c5f158b2b0565ce5c45270103cc0cfb5b1b
tree39821b049229fd49f0eb8a5590eab0abcf432035
parentd3435ae8ddeb3245b1358504f5382879f7fc04a7
xtensa: initialize call_abi in xtensa_tdep

Use XSHAL_ABI value provided by xtensa-config.h to correctly initialize
xtensa_tdep.call_abi
This fixes calls to functions from GDB that otherwise fail with the
following assertion in call0 configuration:

  gdb/regcache.c:602: internal-error: regcache_raw_read: Assertion
  `regnum >= 0 && regnum < regcache->descr->nr_raw_registers' failed.

2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
gdb/
* xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
call_abi using XSHAL_ABI macro.
gdb/ChangeLog
gdb/xtensa-tdep.h