[Bug testsuite/33345] [gdb/testsuite] FAIL: gdb.dap/scopes.exp: fetch all registers success
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Mon Sep 1 16:00:21 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33345
--- Comment #11 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Andrew Burgess from comment #10)
> Here's a super rough patch that fixes the issue:
>
> diff --git i/gdb/python/lib/gdb/dap/varref.py
> w/gdb/python/lib/gdb/dap/varref.py
> index 1b54fe745fa..e5edbad46a6 100644
> --- i/gdb/python/lib/gdb/dap/varref.py
> +++ w/gdb/python/lib/gdb/dap/varref.py
> @@ -246,7 +246,8 @@ class VariableReference(BaseReference):
> # changed DAP to allow memory references for any of the
> # variable response requests, and to lift the restriction
> # to pointer-to-function from Variable.
> - if self._value.type.strip_typedefs().code == gdb.TYPE_CODE_PTR:
> + if (self._value.type.strip_typedefs().code == gdb.TYPE_CODE_PTR
> + and str(self._value) != "<unavailable>"):
> result["memoryReference"] = hex(int(self._value))
> if client_bool_capability("supportsVariableType"):
> result["type"] = str(self._value.type)
This fixes the FAIL for me.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list