[Bug dap/33228] [gdb/dap] error while listing register children

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Mon Aug 11 13:42:13 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33228

--- Comment #11 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ddd2795c52228cbbdf11aa95e11b68647b10df88

commit ddd2795c52228cbbdf11aa95e11b68647b10df88
Author: Tom Tromey <tromey@adacore.com>
Date:   Tue Jul 29 07:48:21 2025 -0600

    Do not allow DAP clients to dereference "void *"

    While investigating a different bug, I noticed that the DAP code would
    report a "void *"-typed register as having children -- however,
    requesting the children of this register would fail.

    The issue here is that a plain "void *" can't be dereferenced.  This
    patch changes the default visualizer to treat a "void *" as a scalar.

    This adds a new test; but also arranges to examine all the returned
    registers -- this was the first thing I attempted and it seemed
    reasonable to have a test that double-checks that all the registers
    really can be dereferenced as appropriate.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33228

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list