diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2018-01-19 19:59:53 +0100 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2018-01-19 19:59:53 +0100 |
commit | 634c1c3109a2ffdf43ef9dab839c88108d9980f3 (patch) | |
tree | 23a21ad94727d9a048a9c57781abecd686b328ca /gdb/rust-lang.c | |
parent | a0aad53764f45a634462288befe4c2eaecbf302d (diff) | |
download | gdb-634c1c3109a2ffdf43ef9dab839c88108d9980f3.zip gdb-634c1c3109a2ffdf43ef9dab839c88108d9980f3.tar.gz gdb-634c1c3109a2ffdf43ef9dab839c88108d9980f3.tar.bz2 |
S390: Fix infcalls in s390-vregs test case
GDB used to assume that functions without debug info return int. It
accepted an expression containing such a function call and silently
interpreted the function's return value as int. But nowadays GDB yields
an error message instead, see
https://sourceware.org/ml/gdb-patches/2017-07/msg00139.html
This affects the s390-vregs test case, because it contains calls to
setrlimit64 and chdir. When no glibc debug info is installed, these lead
to unnecessary FAILs. Fix this by adding appropriate casts to the
inferior function calls.
gdb/testsuite/ChangeLog:
* gdb.arch/s390-vregs.exp: Explicitly cast the return values of
setrlimit and chdir to int.
Diffstat (limited to 'gdb/rust-lang.c')
0 files changed, 0 insertions, 0 deletions