This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] i386-tdep: Verify architecture before proceeding with `set/show mpx'
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 25 Oct 2016 07:26:19 -0400
- Subject: [binutils-gdb] i386-tdep: Verify architecture before proceeding with `set/show mpx'
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT ae71e7b59836219c617193a263b17041d765a031 ***
Author: Maciej W. Rozycki <macro@imgtec.com>
Branch: master
Commit: ae71e7b59836219c617193a263b17041d765a031
i386-tdep: Verify architecture before proceeding with `set/show mpx'
Make sure the architecture is `bfd_arch_i386' before handling the `set
mpx' and `show mpx' commands, avoiding the issue with `i386_mpx_enabled'
interpreting `gdbarch->tdep' according to the `struct gdbarch_tdep'
definition in i386-tdep.h while indeed in a multi-target configuration
it may have a different layout and cause GDB to crash or at least
misbehave.
gdb/
* i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
is `bfd_arch_i386' before proceeding.
(i386_mpx_set_bounds): Likewise.