Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v11 0/2] add annotation in 'info locals' command for variables shadowing case
@ 2025-11-28 12:03 Abdul Basit Ijaz
  2025-11-28 12:03 ` [PATCH v11 1/2] gdb: " Abdul Basit Ijaz
  2025-11-28 12:03 ` [PATCH v11 2/2] gdb: add shadowed field in '-stack-list-locals/variables' mi commands Abdul Basit Ijaz
  0 siblings, 2 replies; 8+ messages in thread
From: Abdul Basit Ijaz @ 2025-11-28 12:03 UTC (permalink / raw)
  To: gdb-patches
  Cc: pedro, philippe.waroquiers, aburgess, tankut.baris.aktemur,
	christina.schimpe, lsix, eliz, abdul.b.ijaz, tom

[-- Attachment #1: Type: text/plain, Size: 3185 bytes --]

Hi All,

For the variable shadowing case, these patches add the annotation "shadowed"
and location information to the shadowed variables so that it is easier for
the end user to identify which variable was shadowed.

Patch#1 updates "info locals" command and Path #2 is for the mi commands
'-stack-list-locals' and '-stack-list-variables'.

Last V10 Series:
https://sourceware.org/pipermail/gdb-patches/2025-April/217019.html

V9 Series:
https://sourceware.org/pipermail/gdb-patches/2025-March/216590.html

V8 Series:
https://sourceware.org/pipermail/gdb-patches/2024-December/214263.html

Documentation in V7 Series was already approved by Eli:
https://sourceware.org/pipermail/gdb-patches/2024-October/212228.html
https://sourceware.org/pipermail/gdb-patches/2024-October/212229.html

Patch#1 V6 was Reviewed-by Larsen:
https://sourceware.org/pipermail/gdb-patches/2024-January/205923.html
Patch#2 V2 was Tested-by Larsen:
https://sourceware.org/pipermail/gdb-patches/2024-January/205922.html

Changes since V10:
* This V10 series fixes the feedback from Andrew:
https://sourceware.org/pipermail/gdb-patches/2025-October/222129.html

Testing is done for unix/m32/native-gdbserver configurations and no
issue is seen.

Thanks & Best Rergards
Abdul Basit

Ijaz, Abdul B (2):
  gdb: add annotation in 'info locals' command for variables shadowing
    case
  gdb: add shadowed field in '-stack-list-locals/variables' mi commands

 gdb/NEWS                                      |   8 +
 gdb/doc/gdb.texinfo                           |  38 +++++
 gdb/language.c                                |  20 +++
 gdb/language.h                                |  19 +++
 gdb/mi/mi-cmd-stack.c                         | 129 +++++++++++-----
 gdb/printcmd.c                                |  29 +++-
 gdb/stack.c                                   | 115 +++++++++++++-
 gdb/stack.h                                   |  14 ++
 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.mi/mi-var-shadowing.c       |  48 ++++++
 gdb/testsuite/gdb.mi/mi-var-shadowing.exp     | 141 ++++++++++++++++++
 gdb/testsuite/gdb.opt/inline-locals.exp       |  21 ++-
 gdb/testsuite/gdb.rust/var_reuse.exp          |  36 +++++
 gdb/testsuite/gdb.rust/var_reuse.rs           |  20 +++
 gdb/value.h                                   |  17 ++-
 19 files changed, 829 insertions(+), 52 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 100644 gdb/testsuite/gdb.mi/mi-var-shadowing.c
 create mode 100644 gdb/testsuite/gdb.mi/mi-var-shadowing.exp
 create mode 100755 gdb/testsuite/gdb.rust/var_reuse.exp
 create mode 100755 gdb/testsuite/gdb.rust/var_reuse.rs

-- 
2.51.1


[-- Attachment #2.1: Type: text/plain, Size: 329 bytes --]

Intel Deutschland GmbH
Registered Address: Dornacher Straße 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht München HRB 186928

[-- Attachment #2.2: Type: text/html, Size: 357 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-28 15:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 12:03 [PATCH v11 0/2] add annotation in 'info locals' command for variables shadowing case Abdul Basit Ijaz
2025-11-28 12:03 ` [PATCH v11 1/2] gdb: " Abdul Basit Ijaz
2025-11-28 14:15   ` Eli Zaretskii
2025-11-28 14:37     ` Ijaz, Abdul B
2025-11-28 15:23       ` Eli Zaretskii
2025-11-28 12:03 ` [PATCH v11 2/2] gdb: add shadowed field in '-stack-list-locals/variables' mi commands Abdul Basit Ijaz
2025-11-28 14:21   ` Eli Zaretskii
2025-11-28 15:09     ` Ijaz, Abdul B

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox