From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD39F3858C1F; Tue, 5 Sep 2023 13:53:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD39F3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693921985; bh=5DPiDmYCjjGGCAyzVZNwz8T1HnM+h7bH1N7K6lDZmqE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n3QbwN2h8hMADGzwhKBloVkVfQDc4LtLgHCJj3ax3QGwQ0nUNCZuR3oAtpykvbmxR 1sV8wyjRTKcyc7jyyWCCYesoTRUdX2Gh6D+fja/chwgLOF00ipA3UdDXEtY+9e9y0P d0N6fwrtSPrxivtktXr+HslWdARtt3MaKdGFNcZg= From: "artem.sokolovskii at qt dot io" To: gdb-prs@sourceware.org Subject: [Bug dap/30821] DAP GDB: "this" have no children. It comes with "variablesReference" 0. Date: Tue, 05 Sep 2023 13:53:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: dap X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: artem.sokolovskii at qt dot io X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30821 --- Comment #3 from Artem Sokolovskii --- I don't fully understand your question. From my side, I just should get a t= ree kind of thing. I sent you the wrong response in the bug sorry. I'm getting this: qtc.dbg.dapengine: "Content-Length: 186\r\n\r\n{\"request_seq\": 36, \"type= \": \"response\", \"command\": \"variables\", \"body\": {\"variables\": [{\"variablesReference\": 0, \"name\": \"this\", \"value\": \"0x7fffffffdab8\"}]}, \"success\": true, \"seq\": 87}" So I'm getting "this" and the variablesReference is 0. So it means that it = has no children. But it has "i". So I should get "this" with variablesReference= e.g 1. And then I could request variables for this variablesReference like this: "Content-Length: 86\r\n\r\n{\"arguments\":{\"variablesReference\":1},\"command\":\"variables= \",\"seq\":50,\"type\":\"request\"}" And should get a list with "i" inside. So for gdb without DAP it sends it this way("i" is a child of "this"). --=20 You are receiving this mail because: You are on the CC list for the bug.=