aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-10-17 16:15:33 +0100
committerMaciej W. Rozycki <macro@imgtec.com>2016-10-18 04:42:23 +0100
commitae71e7b59836219c617193a263b17041d765a031 (patch)
tree52cc5e5a7f1bc71565472cc35376da2d95049d61 /gdb/ChangeLog
parentb348d11b70068e7eabba6d8f99d4ad371c3f6253 (diff)
downloadfsf-binutils-gdb-ae71e7b59836219c617193a263b17041d765a031.zip
fsf-binutils-gdb-ae71e7b59836219c617193a263b17041d765a031.tar.gz
fsf-binutils-gdb-ae71e7b59836219c617193a263b17041d765a031.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6bc9805..4b642b8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
+ * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
+ is `bfd_arch_i386' before proceeding.
+ (i386_mpx_set_bounds): Likewise.
+
+2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
+
* tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
type for `operands'.