aboutsummaryrefslogtreecommitdiff
path: root/sim/ft32
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 /sim/ft32
parentb348d11b70068e7eabba6d8f99d4ad371c3f6253 (diff)
downloadgdb-ae71e7b59836219c617193a263b17041d765a031.zip
gdb-ae71e7b59836219c617193a263b17041d765a031.tar.gz
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 'sim/ft32')
0 files changed, 0 insertions, 0 deletions