]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Reject negative children in DAP
authorTom Tromey <tromey@adacore.com>
Tue, 4 Nov 2025 15:56:08 +0000 (08:56 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 14 Nov 2025 19:27:20 +0000 (12:27 -0700)
commit3917afa371cff7df1d755386e7bb0ae803e2f94c
tree2cb1b20ae5bd7b4855029f389dcfb6d2dc786aaa
parent4cea26197d336ec71e61bf2c705518b8751fc385
Reject negative children in DAP

This changes DAP to ignore the case where a pretty-printer returns a
negative number from the num_children method.  It didn't seem worth
writing a test case for this.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33594
Reviewed-By: Ciaran Woodward <ciaranwoodward@xmos.com>
gdb/python/lib/gdb/dap/varref.py