diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-12-12 09:03:34 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-12-12 09:03:34 +0000 |
commit | 029e9d52de3ac7fe984dc079ebd24506fd1eace7 (patch) | |
tree | b9bdd7fc3b6147497a3ee55bd51e4691e4ebbfab /gdb/ChangeLog | |
parent | 3a0b8f7ddb874283879baaf8af6d11094f4c4999 (diff) | |
download | gdb-029e9d52de3ac7fe984dc079ebd24506fd1eace7.zip gdb-029e9d52de3ac7fe984dc079ebd24506fd1eace7.tar.gz gdb-029e9d52de3ac7fe984dc079ebd24506fd1eace7.tar.bz2 |
Handle memory error in print_insn_rx
Nowadays, memory error in rx disassembly is not handled, so if I
start a fresh GDB, and disassemble,
(gdb) set architecture rx
The target architecture is assumed to be rx
(gdb) disassemble 0x0,+4
Dump of assembler code from 0x0 to 0x4:
0x00000000: brk
0x00000001: brk
0x00000002: brk
0x00000003: brk
the output is wrong. This patch adds code to call dis->memory_error_func
on memory error, and longjmp to print_insn_rx. With this patch applied,
(gdb) set architecture rx
The target architecture is assumed to be rx
(gdb) disassemble 0,+4
Dump of assembler code from 0x0 to 0x4:
0x00000000: Cannot access memory at address 0x0
opcodes:
2016-12-12 Yao Qi <yao.qi@linaro.org>
* rx-dis.c: Include <setjmp.h>
(struct private): New.
(rx_get_byte): Check return value of read_memory_func, and
call memory_error_func and OPCODES_SIGLONGJMP on error.
(print_insn_rx): Call OPCODES_SIGSETJMP.
Diffstat (limited to 'gdb/ChangeLog')
0 files changed, 0 insertions, 0 deletions