public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug dap/30821] New: "this" have no children. It comes with "variablesReference" 0.
@ 2023-09-04  8:34 artem.sokolovskii at qt dot io
  2023-09-04  8:36 ` [Bug dap/30821] DAP GDB: " artem.sokolovskii at qt dot io
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: artem.sokolovskii at qt dot io @ 2023-09-04  8:34 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30821
           Summary: "this" have no children. It comes with
                    "variablesReference" 0.
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dap
          Assignee: unassigned at sourceware dot org
          Reporter: artem.sokolovskii at qt dot io
  Target Milestone: ---

I request variables for scope and get "this" in the list but it has
variablesReference = 0. It means that the variable has no children.
https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable
I have a simple class and I should see "i" variable as a child of "this". At
least I see it like this in not DAP GDB version.

class myClass
{
public:
   void increment()
   {
      ++i;
   }

private:
   int i = 0;
};

Log:
qtc.dbg.dapengine: dap response
QJsonObject({"body":{"variables":[{"name":"this","value":"0x7fffffffda40","variablesReference":0},{"name":"i","value":"0","variablesReference":0}]},"command":"variables","request_seq":29,"seq":208,"success":true,"type":"response"})

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-20  9:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-04  8:34 [Bug dap/30821] New: "this" have no children. It comes with "variablesReference" 0 artem.sokolovskii at qt dot io
2023-09-04  8:36 ` [Bug dap/30821] DAP GDB: " artem.sokolovskii at qt dot io
2023-09-04 17:58 ` tromey at sourceware dot org
2023-09-05 13:11 ` tromey at sourceware dot org
2023-09-05 13:53 ` artem.sokolovskii at qt dot io
2023-09-05 15:18 ` tromey at sourceware dot org
2023-09-05 19:47 ` tromey at sourceware dot org
2023-09-06  8:52 ` artem.sokolovskii at qt dot io
2023-09-07 14:46 ` tromey at sourceware dot org
2023-09-19 19:34 ` cvs-commit at gcc dot gnu.org
2023-09-19 19:34 ` tromey at sourceware dot org
2023-09-20  9:25 ` artem.sokolovskii at qt dot io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).