[PATCH v7 1/2] gdb: add annotation in 'info locals' command for variables shadowing case

Eli Zaretskii eliz@gnu.org
Wed Oct 9 12:50:46 GMT 2024


> From: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
> Cc: pedro@palves.net,
> 	philippe.waroquiers@skynet.be,
> 	aburgess@redhat.com,
> 	tankut.baris.aktemur@intel.com,
> 	christina.schimpe@intel.com,
> 	lsix@lancelotsix.com,
> 	eliz@gnu.org,
> 	abdul.b.ijaz@intel.com
> Date: Wed,  9 Oct 2024 10:42:06 +0200
> 
>  gdb/doc/gdb.texinfo                           | 16 ++++
>  gdb/printcmd.c                                | 13 ++-
>  gdb/stack.c                                   | 64 +++++++++++--
>  gdb/stack.h                                   |  3 +-
>  gdb/testsuite/gdb.ada/var_shadowing.exp       | 39 ++++++++
>  .../gdb.ada/var_shadowing/var_shadowing.adb   | 30 ++++++
>  gdb/testsuite/gdb.base/var-shadowing.c        | 49 ++++++++++
>  gdb/testsuite/gdb.base/var-shadowing.exp      | 92 +++++++++++++++++++
>  gdb/testsuite/gdb.base/var-shadowing2.c       | 16 ++++
>  gdb/testsuite/gdb.opt/inline-locals.exp       | 21 +++--
>  gdb/testsuite/gdb.rust/var_reuse.exp          | 34 +++++++
>  gdb/testsuite/gdb.rust/var_reuse.rs           | 20 ++++
>  gdb/tracepoint.c                              |  3 +-
>  gdb/value.h                                   |  4 +-
>  14 files changed, 385 insertions(+), 19 deletions(-)
>  create mode 100644 gdb/testsuite/gdb.ada/var_shadowing.exp
>  create mode 100644 gdb/testsuite/gdb.ada/var_shadowing/var_shadowing.adb
>  create mode 100755 gdb/testsuite/gdb.base/var-shadowing.c
>  create mode 100755 gdb/testsuite/gdb.base/var-shadowing.exp
>  create mode 100644 gdb/testsuite/gdb.base/var-shadowing2.c
>  create mode 100755 gdb/testsuite/gdb.rust/var_reuse.exp
>  create mode 100755 gdb/testsuite/gdb.rust/var_reuse.rs

Thanks, the gdb.texinfo part is approved.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>


More information about the Gdb-patches mailing list