This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]