S390: Fix internal error with stackless inferior
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 1 Mar 2016 11:43:55 +0000 (12:43 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 1 Mar 2016 11:43:55 +0000 (12:43 +0100)
commitf24894771e384b1bc60dc0f2c104d7e7fad3c865
tree53ec5760eda5c41e2f78f16b1130b59f5fea2f0a
parent020efce52a569bde99f64b20cedbec2b2a5b5fe9
S390: Fix internal error with stackless inferior

This fixes a GDB internal error that may occur when the inferior has no
valid stack pointer in r15.

gdb/testsuite/ChangeLog:

* gdb.arch/s390-stackless.S: New.
* gdb.arch/s390-stackless.exp: New.

gdb/ChangeLog:

* s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
exception when attempting to access the inferior's backchain.
gdb/ChangeLog
gdb/s390-linux-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/s390-stackless.S [new file with mode: 0644]
gdb/testsuite/gdb.arch/s390-stackless.exp [new file with mode: 0644]