[pushed] Remove unused variables from print_frame_arg_vars

Message ID 20260407164425.530233-1-tromey@adacore.com
State New
Headers
Series [pushed] Remove unused variables from print_frame_arg_vars |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey April 7, 2026, 4:44 p.m. UTC
  I noticed a couple of unused variables in print_frame_arg_vars.  These
aren't detected by the compiler, presumably due to having a
destructor.
---
 gdb/stack.c | 2 --
 1 file changed, 2 deletions(-)


base-commit: 9c5a32d82cd223768c873bfd613418168f623b02
  

Patch

diff --git a/gdb/stack.c b/gdb/stack.c
index 889efe62e0d..6fcc26417e2 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2484,8 +2484,6 @@  print_frame_arg_vars (const frame_info_ptr &frame,
   struct print_variable_and_value_data cb_data;
   struct symbol *func;
   std::optional<CORE_ADDR> pc;
-  std::optional<compiled_regex> preg;
-  std::optional<compiled_regex> treg;
 
   if (!(pc = get_frame_pc_if_available (frame)))
     {