aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/break-f-std-string.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-07-29 07:48:21 -0600
committerTom Tromey <tromey@adacore.com>2025-08-11 07:39:10 -0600
commitddd2795c52228cbbdf11aa95e11b68647b10df88 (patch)
tree830a5899a4f514f4de280f65b56b41faecd968b0 /gdb/testsuite/gdb.cp/break-f-std-string.cc
parent3c64cee8151d925ac3c438026074a2a1491e275f (diff)
downloadgdb-ddd2795c52228cbbdf11aa95e11b68647b10df88.zip
gdb-ddd2795c52228cbbdf11aa95e11b68647b10df88.tar.gz
gdb-ddd2795c52228cbbdf11aa95e11b68647b10df88.tar.bz2
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
Diffstat (limited to 'gdb/testsuite/gdb.cp/break-f-std-string.cc')
0 files changed, 0 insertions, 0 deletions