On 11/15/23 14:58, Tom Tromey wrote: >>>>>> "Tom" == Tom de Vries writes: > > Tom> On 11/1/23 18:09, Tom Tromey wrote: >>> +gdb_assert {[dict get $locals namedVariables] == 3} "two locals" > > Tom> This fails for me with gcc 7.5.0: > Tom> ... > Tom> FAIL: gdb.dap/ada-nested.exp: two locals > Tom> ... > > I see the test is misnamed :( > > Tom> AFAICT, the mismatch is because we have named_variables == 4 instead of 3. > > Can you modify this line: > > set refs [lindex [dap_check_request_and_response "fetch variables" \ > "variables" \ > [format {o variablesReference [i %d] count [i 3]} \ > $num]] \ > 0] > > to use 'i 4' after 'count', then send the gdb.log? > That will show what the extra variables are. Done, gdb.log.gz attached. Thanks, - Tom