[v3,0/1] gdb: add 'set print shadowed' to hide shadowed variables

Message ID 20260902120526.38859-1-stephan.rohr@intel.com
Headers
Series gdb: add 'set print shadowed' to hide shadowed variables |

Message

Stephan Rohr Sept. 2, 2026, 12:05 p.m. UTC
  From: "Rohr, Stephan" <stephan.rohr@intel.com>

Hello all,

this is v3 of the patch introducing a user setting to enable/disable the
printing of shadowed variables.  You can find v2 of the patch at

https://sourceware.org/pipermail/gdb-patches/2026-August/229552.html

Tom posted feedback:

https://sourceware.org/pipermail/gdb-patches/2026-August/229675.html

I addressed the feedback from Tom in v3 of the patch.

I appreciate your feedback.

Thanks
Stephan


Sargsyan, Eduard (1):
  gdb: Introduce new setting to filter out shadowed variables.

 gdb/NEWS                                 |  14 +++
 gdb/doc/gdb.texinfo                      |  22 +++-
 gdb/stack.c                              | 154 +++++++++++++++++++----
 gdb/testsuite/gdb.ada/var_shadowing.exp  |   1 +
 gdb/testsuite/gdb.base/options.exp       |  23 ++++
 gdb/testsuite/gdb.base/var-shadowing.c   |   2 +-
 gdb/testsuite/gdb.base/var-shadowing.exp |  88 +++++++++++++
 7 files changed, 279 insertions(+), 25 deletions(-)