From c33fbd341a4c034df65575c086760d207ada6dad Mon Sep 17 00:00:00 2001 From: Valentin Ignatev Date: Thu, 2 Jan 2025 17:16:00 +0100 Subject: [PATCH] Add dynamic arrays to the array view display in gdb --- gdb_helpers/python_custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb_helpers/python_custom.py b/gdb_helpers/python_custom.py index 24ffc89..0d3ae26 100644 --- a/gdb_helpers/python_custom.py +++ b/gdb_helpers/python_custom.py @@ -54,7 +54,7 @@ def project_type_lookups(val): return None if type_tag == 'string': return JaiStringPrinter(val) - if type_tag.startswith('[]'): + if type_tag.startswith(('[]', '[..]')): return JaiArrayViewPrinter(val) gdb.pretty_printers.append(project_type_lookups)