[v6,0/3] Tab complete convenience variables

Message ID 20250406013809.230156-1-nt8r@protonmail.com
Headers
Series Tab complete convenience variables |

Message

Antonio Rische April 6, 2025, 1:38 a.m. UTC
  Implement tab completion for convenience variables and registers in
expressions. This has been something that annoyed me about gdb for
years.

v1 -> v2: Address review comments, add tests
v2 -> v3: Merge test commits into feature commits, add Tested-by
v3 -> v4: Update texinfo docs and mention changes in NEWS
v4 -> v5: Fix bitrotted reg completion test, file FSF IP paperwork
v5 -> v6: Fix indentation; make init-if-undefined match its docs

Antonio Rische (3):
  gdb: Do not create variables when parsing expressions
  gdb: Tab complete internalvars in expressions
  gdb: Tab-complete registers in expressions

 gdb/NEWS                              |  8 ++++
 gdb/ada-exp.h                         | 12 +++++-
 gdb/ax-gdb.c                          | 61 ++++++++++++++++++++++-----
 gdb/cli/cli-utils.c                   |  2 +-
 gdb/completer.c                       | 25 +++++++++++
 gdb/doc/gdb.texinfo                   |  4 +-
 gdb/expop.h                           | 55 +++++++++++++++++++++++-
 gdb/parse.c                           |  7 ++-
 gdb/testsuite/gdb.base/completion.exp | 59 +++++++++++++++++++++++---
 gdb/value.c                           | 23 +++++-----
 10 files changed, 219 insertions(+), 37 deletions(-)