diff options
author | Jan Vrany <jan.vrany@fit.cvut.cz> | 2018-08-14 14:13:28 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-08-14 14:13:28 +0100 |
commit | 26fb3983d7062c6f6bc43028ae2074cc29d22c7e (patch) | |
tree | 85d063d26e8b205cd713db224064d363decd88b6 /gdb/NEWS | |
parent | 67943c005fafa4397535766787b4fbda338ac07d (diff) | |
download | gdb-26fb3983d7062c6f6bc43028ae2074cc29d22c7e.zip gdb-26fb3983d7062c6f6bc43028ae2074cc29d22c7e.tar.gz gdb-26fb3983d7062c6f6bc43028ae2074cc29d22c7e.tar.bz2 |
MI: Add -a option to the "-data-disassemble" command
The CLI "disassemble" command allows specifying a single address - in
that case the function surrounding that address is disassembled.
This commit adds this feature to the equivalent MI command
"-data-disassemble".
gdb/ChangeLog:
2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
If used, use find_pc_partial_function to find address range
to disassemble.
* mi/mi-main.c (mi_cmd_list_features): Report
"data-disassemble-a-option" feature.
* NEWS: Mention new -data-disassemble option -a.
gdb/doc/ChangeLog:
2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
* gdb.texinfo (GDB/MI Data Manipulation): Document
"-data-disassemble -a addr".
(GDB/MI Support Commands): Document "data-disassemble-a-option"
feature.
gdb/testsuite/ChangeLog:
2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
* gdb.mi/mi-disassemble.exp (test_disassembly_only): Add tests for
-data-disassemble -a.
(test_disassembly_bogus_args): Likewise.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -41,6 +41,14 @@ thread apply [all | COUNT | -COUNT] [FLAG]... COMMAND FLAG arguments allow to control what output to produce and how to handle errors raised when applying COMMAND to a thread. +* MI changes + + ** The '-data-disassemble' MI command now accepts an '-a' option to + disassemble the whole function surrounding the given program + counter value or function name. Support for this feature can be + verified by using the "-list-features" command, which should + contain "data-disassemble-a-option". + * New native configurations GNU/Linux/RISC-V riscv*-*-linux* |