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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
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 Move some declarations to source.h 2018-02-14 08:09:52 -07:00
mi-cmd-file.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-info.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-stack.c Add missing "breaks" 2018-05-04 22:04:46 -06:00
mi-cmd-target.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-var.c Use thread_info and inferior pointers more throughout 2018-06-21 17:09:31 +01:00
mi-cmds.c (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-cmds.h (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-common.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-common.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-console.c Implement write_async_safe for mi_console_file (PR 22299) 2018-04-07 13:48:06 -04:00
mi-console.h Implement write_async_safe for mi_console_file (PR 22299) 2018-04-07 13:48:06 -04:00
mi-getopt.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-getopt.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-interp.c Remove ptid_equal 2018-07-03 11:36:46 -06:00
mi-interp.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-main.c MI: Add -a option to the "-data-disassemble" command 2018-08-14 14:13:28 +01:00
mi-main.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-out.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-out.h Make do_is_mi_like_p const. 2018-04-30 12:59:03 -06:00
mi-parse.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-parse.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-symbol-cmds.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00