This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-7.11-branch] Clear *VAL in regcache_raw_read_unsigned
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Wed, 10 Feb 2016 11:55:07 -0500
- Subject: [binutils-gdb/gdb-7.11-branch] Clear *VAL in regcache_raw_read_unsigned
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 83d9e733abe9cc0553f899064a955a6255550ade ***
Author: Yao Qi <yao.qi@linaro.org>
Branch: gdb-7.11-branch
Commit: 83d9e733abe9cc0553f899064a955a6255550ade
Clear *VAL in regcache_raw_read_unsigned
We have function regcache_raw_read_unsigned defined in both GDB and
GDBserver, so that it is used in common like this,
ULONGEST value;
status = regcache_raw_read_unsigned (regcache, regnum, &value);
'value' is correctly set in GDB side, but may not be correctly set
in GDBserver, because &value is passed in regcache_raw_read_unsigned
but collect_register may only set part of the whole variable. In my
test, I see the top half of 'value' is garbage. This patch fixes this
problem by clearing *VAL before calling collect_register.
gdb/gdbserver:
2016-02-10 Yao Qi <yao.qi@linaro.org>
* regcache.c (regcache_raw_read_unsigned): Clear *VAL.
- Follow-Ups:
- Failures on Fedora-i686, branch gdb-7.11-branch
- Failures on Fedora-x86_64-m32, branch gdb-7.11-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch gdb-7.11-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m64, branch gdb-7.11-branch
- Failures on Fedora-x86_64-native-gdbserver-m32, branch gdb-7.11-branch
- Failures on Fedora-s390x-m64, branch gdb-7.11-branch
- Failures on Debian-s390x-native-gdbserver-m64, branch gdb-7.11-branch
- Failures on Debian-s390x-native-extended-gdbserver-m64, branch gdb-7.11-branch
- Failures on Debian-i686, branch gdb-7.11-branch
- Failures on Debian-i686-native-gdbserver, branch gdb-7.11-branch
- Failures on Debian-i686-native-extended-gdbserver, branch gdb-7.11-branch
- Failures on Fedora-ppc64le-native-extended-gdbserver-m64, branch gdb-7.11-branch
- Failures on Fedora-ppc64le-cc-with-index, branch gdb-7.11-branch
- Failures on Debian-x86_64-native-extended-gdbserver-m64, branch gdb-7.11-branch
- Failures on Fedora-ppc64le-native-gdbserver-m64, branch gdb-7.11-branch