public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "artem.sokolovskii at qt dot io" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug dap/30821] New: "this" have no children. It comes with "variablesReference" 0.
Date: Mon, 04 Sep 2023 08:34:37 +0000	[thread overview]
Message-ID: <bug-30821-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2023-09-04  8:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-04  8:34 artem.sokolovskii at qt dot io [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30821-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).