This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-7.10-branch] Fix '-data-read-memory-bytes' typo/assertion
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Thu, 11 Feb 2016 10:36:45 -0500
- Subject: [binutils-gdb/gdb-7.10-branch] Fix '-data-read-memory-bytes' typo/assertion
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 718b36fead887693158396b948d7f409b987c053 ***
Author: Don Breazeal <donb@codesourcery.com>
Branch: gdb-7.10-branch
Commit: 718b36fead887693158396b948d7f409b987c053
Fix '-data-read-memory-bytes' typo/assertion
Backported to the 7.10 branch per this thread:
https://www.sourceware.org/ml/gdb-patches/2016-02/msg00134.html
This patch fixes a typo in target.c:read_memory_robust, where
it calls read_whatever_is_readable with the function arguments
in the wrong order. Depending on the address being read, it
can cause an xmalloc with a huge size, resulting in an assertion
failure, or just read something other than what was requested.
The problem only arises when GDB is handling an MI
"-data-read-memory-bytes" request and the initial target_read returns
an error status. Note that read_memory_robust is only called from
the MI code.
gdb/ChangeLog:
* gdb/target.c (read_memory_robust): Call
read_whatever_is_readable with arguments in the correct order.
- Follow-Ups:
- Failures on Debian-s390x-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-i686, branch gdb-7.10-branch
- Failures on Fedora-x86_64-m32, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch gdb-7.10-branch
- Failures on Debian-i686, branch gdb-7.10-branch
- Failures on Fedora-x86_64-m64, branch gdb-7.10-branch
- Failures on Fedora-s390x-m64, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Debian-s390x-m64, branch gdb-7.10-branch
- Failures on Debian-s390x-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Debian-i686-native-gdbserver, branch gdb-7.10-branch
- Failures on AIX-POWER7-plain, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-cc-with-index, branch gdb-7.10-branch
- Failures on Debian-i686-native-extended-gdbserver, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Debian-x86_64-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Debian-x86_64-m64, branch gdb-7.10-branch
- Failures on Debian-x86_64-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64le-native-gdbserver-m64, branch gdb-7.10-branch