From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35DD23855029; Mon, 14 Jun 2021 12:44:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35DD23855029 From: "mhov at undo dot io" To: gdb-prs@sourceware.org Subject: [Bug gdb/27979] New: Performance regression of ~10% in conditional breakpoint testcase Date: Mon, 14 Jun 2021 12:44:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mhov at undo dot io X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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, 14 Jun 2021 12:44:46 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27979 Bug ID: 27979 Summary: Performance regression of ~10% in conditional breakpoint testcase Product: gdb Version: 10.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: mhov at undo dot io Target Milestone: --- Created attachment 13491 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13491&action=3Ded= it reproducer program There seems to be a performance regression from 9.2 to 10.2 that is observa= ble in the time to run the following command on the attached reproducer program. This has been used to benchmark the performance of conditional breakpoints. $ gcc --version gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 $ gcc -g repro.c $ ./gdb --batch --ex "b foo if bar=3D=3D0x7ffffff" --ex "run" --args ./a.= out Also attached is a log from the libera.chat #gdb channel where this regress= ion was discussed. As can be seen in the attached chat log, bisection by Simon suggests that t= his commit is to blame: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1009d92fc621= bc4d017029b90a5bfab16e17fde5 I'm not currently in a position to delve deeper into this, so I'm posting h= ere in case anyone wants to pick it up. --=20 You are receiving this mail because: You are on the CC list for the bug.=