binutils-gdb/gdb/mi
Yao Qi c898adb7b2 Teach -data-list-register-values to not include unavailable registers
This patch adds an option --skip-unavailable to MI command
-data-list-register-values, so that unavailable registers are not
displayed (on the context of traceframes).

The old -data-list-register-values command behaves like

  -data-list-register-values x 0 8
  ^done,register-values=[{number="0",value="<unavailable>"},{number="8",value="0x80483de"}]

With this patch, an option --skip-unavailable is added,

  -data-list-register-values --skip-unavailable x 0 8
  ^done,register-values=[{number="8",value="0x80483de"}]

gdb:

2013-06-20  Pedro Alves  <pedro@codesourcery.com>
	    Yao Qi  <yao@codesourcery.com>

	* NEWS: Mention the new option '--skip-unavailable' of command
	-data-list-register-values.
	* mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
	--skip-unavailable option.  Adjust to use output_register.
	(output_register): Add new 'skip_unavailable' parameter.
	Handle it.

gdb/doc:

2013-06-20  Pedro Alves  <pedro@codesourcery.com>

	* gdb.texinfo (GDB/MI Data Manipulation)
	<-data-list-register-values>: Document the --skip-unavailable
	option.

gdb/testsuite:

2013-06-20  Yao Qi  <yao@codesourcery.com>

	* gdb.trace/mi-trace-unavailable.exp: Set tracepoint on 'foo'
	and set an action.
	(test_trace_unavailable): Test command -data-list-register-values
	in the context of traceframe and with option --skip-unavailable.
	* gdb.trace/trace-unavailable.c (foo): New.
	(main): Call it.
	* gdb.mi/gdb2549.exp: Update matching pattern.
2013-06-20 00:39:11 +00:00
..
ChangeLog-1999-2003
mi-cmd-break.c mi/mi-cmd-break.c: Use xsnprintf instead of sprintf (ARI fix) 2013-05-23 06:39:42 +00:00
mi-cmd-break.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-cmd-catch.c 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com> 2013-01-31 18:37:39 +00:00
mi-cmd-disas.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-cmd-env.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-cmd-file.c gdb/ 2013-02-03 16:13:31 +00:00
mi-cmd-info.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-cmd-stack.c gdb/ 2013-06-03 03:16:24 +00:00
mi-cmd-target.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-cmd-var.c gdb/ 2013-06-03 03:16:24 +00:00
mi-cmds.c gdb/ 2013-05-30 00:25:16 +00:00
mi-cmds.h gdb/ 2013-06-03 03:16:24 +00:00
mi-common.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-common.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-console.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-console.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-getopt.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-getopt.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-interp.c * mi/mi-cmds.h (mi_execute_command): Make "cmd" const. 2013-03-12 18:50:39 +00:00
mi-main.c Teach -data-list-register-values to not include unavailable registers 2013-06-20 00:39:11 +00:00
mi-main.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-out.c Add support for a destructor for ui_out data and use it to 2013-02-12 01:47:49 +00:00
mi-out.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
mi-parse.c gdb/ 2013-06-03 03:16:24 +00:00
mi-parse.h gdb/ 2013-06-03 03:16:24 +00:00
mi-symbol-cmds.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00