aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dap/scopes.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-06-22 09:00:13 -0600
committerTom Tromey <tromey@adacore.com>2023-07-10 13:17:31 -0600
commitc38bda5104e0011b1255752bec63cb4ffd76449d (patch)
treed520059a2476bd5089d6e1e0ffbc06feacbe0ee7 /gdb/testsuite/gdb.dap/scopes.c
parent5b86f10883d37e46aeeafa2818e227737d068dff (diff)
downloadbinutils-c38bda5104e0011b1255752bec63cb4ffd76449d.zip
binutils-c38bda5104e0011b1255752bec63cb4ffd76449d.tar.gz
binutils-c38bda5104e0011b1255752bec63cb4ffd76449d.tar.bz2
Handle typedefs in no-op pretty printers
The no-ops pretty-printers that were introduced for DAP have a classic gdb bug: they neglect to call check_typedef. This will cause some strange behavior; for example not showing the children of a variable whose type is a typedef of a structure type. This patch fixes the oversight.
Diffstat (limited to 'gdb/testsuite/gdb.dap/scopes.c')
-rw-r--r--gdb/testsuite/gdb.dap/scopes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dap/scopes.c b/gdb/testsuite/gdb.dap/scopes.c
index a9ad4d8..0453f86 100644
--- a/gdb/testsuite/gdb.dap/scopes.c
+++ b/gdb/testsuite/gdb.dap/scopes.c
@@ -17,13 +17,13 @@
int main ()
{
- struct dei_struct
+ typedef struct dei_struct
{
int x;
int more[5];
- };
+ } dei_type;
- struct dei_struct dei = { 2, { 3, 5, 7, 11, 13 } };
+ dei_type dei = { 2, { 3, 5, 7, 11, 13 } };
static int scalar = 23;