From 26fb3983d7062c6f6bc43028ae2074cc29d22c7e Mon Sep 17 00:00:00 2001 From: Jan Vrany Date: Tue, 14 Aug 2018 14:13:28 +0100 Subject: 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 * 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 * 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 * gdb.mi/mi-disassemble.exp (test_disassembly_only): Add tests for -data-disassemble -a. (test_disassembly_bogus_args): Likewise. --- gdb/NEWS | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index f275031..16d3d72 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -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* -- cgit v1.1