binutils-gdb/gdb/mi
Jan Vrany 26fb3983d7 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.
2018-08-14 14:13:28 +01:00
..
ChangeLog-1999-2003
mi-cmd-break.c Use function_view in cli-script.c 2018-05-04 15:58:08 -06:00
mi-cmd-break.h
mi-cmd-catch.c Change ada_catchpoint::excep_string to be a std::string 2018-05-21 10:01:15 -06:00
mi-cmd-disas.c MI: Add -a option to the "-data-disassemble" command 2018-08-14 14:13:28 +01:00
mi-cmd-env.c
mi-cmd-file.c
mi-cmd-info.c
mi-cmd-stack.c Add missing "breaks" 2018-05-04 22:04:46 -06:00
mi-cmd-target.c
mi-cmd-var.c Use thread_info and inferior pointers more throughout 2018-06-21 17:09:31 +01:00
mi-cmds.c
mi-cmds.h
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Remove ptid_equal 2018-07-03 11:36:46 -06:00
mi-interp.h
mi-main.c MI: Add -a option to the "-data-disassemble" command 2018-08-14 14:13:28 +01:00
mi-main.h
mi-out.c
mi-out.h
mi-parse.c
mi-parse.h
mi-symbol-cmds.c