From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B4A53858403; Mon, 15 Nov 2021 07:30:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B4A53858403 From: "massimiliano.cuoghi at systemceramics dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/28288] GDBserver should hide unreported fork childs from thread lists Date: Mon, 15 Nov 2021 07:30:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: massimiliano.cuoghi at systemceramics dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2021 07:30:47 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28288 --- Comment #40 from Massimiliano --- (In reply to Massimiliano from comment #39) > (In reply to Simon Marchi from comment #38) > > For whether your GDB 11 build is optimized... I see some -O2 in the > > config.log. But to be sure, go in the gdb/ directory and do "make clea= n && > > make V=3D1". If you see -O2 on the command line, that's good. > >=20 > > The steps that seems to take time is this one. With GDB 8 (1-2 seconds= ): > >=20 > > 10:19:12.918 > > 6362python > > theDumper.fetchVariables({"autoderef":0,"context":"","displaystringlimi= t": > > "100","dyntype":1,"expanded":["watch","local","inspect","return"],"fanc= y":1, > > "formats":{},"nativemixed":0,"partialvar":"","passexceptions":0, > > "qobjectnames":1,"resultvarname":"","stringcutoff":"10000","timestamps"= :1, > > "token":6362,"typeformats":{},"watchers":[{"exp":"6472697665724964","in= ame": > > "watch.0"},{"exp":"64737044726976657248617368","iname":"watch.1"},{"exp= ": > > "657468496e666f726d6174696f6e48617368","iname":"watch.2"},{"exp": > > "68526573756c74","iname":"watch.3"},{"exp": > > "697041647272657373416e644e65746d61736b","iname":"watch.4"},{"exp": > > "6c69737442617254797065","iname":"watch.5"},{"exp": > > "6d61704d6f64756c61724d616368696e65496e666f","iname":"watch.6"},{"exp": > > "6d6f64656c496e666f","iname":"watch.7"},{"exp": > > "6d6f64656c6c6f5374616d70616e7465","iname":"watch.8"},{"exp": > > "706172616d65746572546f436f6e76657274","iname":"watch.9"},{"exp": > > "706172616d6574657273546f4265436f6e766572746564","iname":"watch.10"},{"= exp": > > "76616c7565","iname":"watch.11"},{"exp":"76617248617368","iname":"watch. > > 12"}]}) > > 10:19:14.229 > >=20 > > With GDB 11 (~12 seconds): > >=20 > > 11:22:22.323 [1ms] > > 6462python > > theDumper.fetchVariables({"autoderef":0,"context":"","displaystringlimi= t": > > "100","dyntype":1,"expanded":["watch","local","inspect","return"],"fanc= y":1, > > "formats":{},"nativemixed":0,"partialvar":"","passexceptions":0, > > "qobjectnames":1,"resultvarname":"","stringcutoff":"10000","timestamps"= :1, > > "token":6462,"typeformats":{},"watchers":[{"exp":"6472697665724964","in= ame": > > "watch.0"},{"exp":"64737044726976657248617368","iname":"watch.1"},{"exp= ": > > "657468496e666f726d6174696f6e48617368","iname":"watch.2"},{"exp": > > "68526573756c74","iname":"watch.3"},{"exp": > > "697041647272657373416e644e65746d61736b","iname":"watch.4"},{"exp": > > "6c69737442617254797065","iname":"watch.5"},{"exp": > > "6d61704d6f64756c61724d616368696e65496e666f","iname":"watch.6"},{"exp": > > "6d6f64656c496e666f","iname":"watch.7"},{"exp": > > "6d6f64656c6c6f5374616d70616e7465","iname":"watch.8"},{"exp": > > "706172616d65746572546f436f6e76657274","iname":"watch.9"},{"exp": > > "706172616d6574657273546f4265436f6e766572746564","iname":"watch.10"},{"= exp": > > "76616c7565","iname":"watch.11"},{"exp":"76617248617368","iname":"watch. > > 12"}]}) > > 11:22:34.311 > >=20 > > That seems to be a Python helper used by QtCreator to dump variables. = It > > might be possible to reproduce the slowness out of QtCreator by running= to > > the same point, and doing a similar call to theDumper.fetchVariables. > >=20 > > Do you see the same slowness if you debug locally instead of remotely? >=20 > I had already checked the -o2 option and also in my opinion it is already > optimized, even doing "make clean && make V =3D 1" does not change anythi= ng. i > have the same problem using the gdb11 locally I also tried a different linux distribution, the distribution included the gdb10, I didn't have to recompile it, it has the same slowness defect --=20 You are receiving this mail because: You are on the CC list for the bug.=