This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] New option --skip-unavailable to -stack-list-XXX commands
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 3 Jul 2013 09:48:24 +0800
- Subject: [PATCH 0/2] New option --skip-unavailable to -stack-list-XXX commands
Hi,
This patch series add new option '--skip-unavailable' to MI commands
'-stack-list-{locals, arguments, variables}'. This option is optional,
and when it is used, locals or arguments whose values are not available
are not listed. It is useful when the MI front-end is not interested in
unavailable values.
The patch 1/2 is a refactor patch, use mi_getopt in
mi_cmd_stack_list_locals and mi_cmd_stack_list_variables, so it is
easier to add new option patch 2/2. Patch 2/2 is the major part of this
series.
Regression tested on x86_64-linux.
Note that this patch is for MI, but the idea that skipping unavailable
locals and arguments can be applied to CLI too. We can invent new CLI
commands on top of 'info locals' and 'info args' to display available
locals or arguments. This piece of work is not included in this
series.
*** BLURB HERE ***
Yao Qi (2):
Use mi_getopt in mi_cmd_stack_list_locals and mi_cmd_stack_list_variables
Add options to skip unavailable locals
gdb/doc/gdb.texinfo | 17 ++-
gdb/mi/mi-cmd-stack.c | 256 ++++++++++++++++------
gdb/testsuite/gdb.trace/mi-trace-unavailable.exp | 9 +
gdb/valprint.c | 8 +-
gdb/valprint.h | 2 +
gdb/value.c | 20 ++
gdb/value.h | 4 +
7 files changed, 246 insertions(+), 70 deletions(-)
--
1.7.7.6