diff options
author | Nick Clifton <nickc@redhat.com> | 2016-05-27 13:49:58 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-05-27 13:49:58 +0100 |
commit | 77d66e7b303f6fa65dd2ca4abce6393d6ea70a8f (patch) | |
tree | 2e1cb7f10467bbed1d8dd5427aee81348abe34a0 /ChangeLog | |
parent | 51415b9f309443261016ad1b63b9e350bbe3903d (diff) | |
download | gdb-77d66e7b303f6fa65dd2ca4abce6393d6ea70a8f.zip gdb-77d66e7b303f6fa65dd2ca4abce6393d6ea70a8f.tar.gz gdb-77d66e7b303f6fa65dd2ca4abce6393d6ea70a8f.tar.bz2 |
Improve the MSP430 disassembler's handling of memory read errors.
PR target/20150
* msp430-dis.c (msp430dis_read_two_bytes): New function.
(msp430dis_opcode_unsigned): New function.
(msp430dis_opcode_signed): New function.
(msp430_singleoperand): Use the new opcode reading functions.
Only disassenmble bytes if they were successfully read.
(msp430_doubleoperand): Likewise.
(msp430_branchinstr): Likewise.
(msp430x_callx_instr): Likewise.
(print_insn_msp430): Check that it is safe to read bytes before
attempting disassembly. Use the new opcode reading functions.
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions