From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BB3B3846457; Wed, 6 Jan 2021 13:44:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BB3B3846457 From: "yangyibiao at outlook dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/27151] Step will skip subsequent statements for malloc functions Date: Wed, 06 Jan 2021 13:44: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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yangyibiao at outlook dot com X-Bugzilla-Status: NEW 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: Wed, 06 Jan 2021 13:44:48 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27151 --- Comment #5 from Yibiao Yang --- (In reply to Tom de Vries from comment #2) > This fixes it: > ... > diff --git a/gdb/objfiles.h b/gdb/objfiles.h > index b9bb80b7a62..2afd2f80154 100644 > --- a/gdb/objfiles.h > +++ b/gdb/objfiles.h > @@ -786,7 +786,8 @@ extern int pc_in_section (CORE_ADDR, const char *); > static inline int > in_plt_section (CORE_ADDR pc) > { > - return pc_in_section (pc, ".plt"); > + return (pc_in_section (pc, ".plt") > + || pc_in_section (pc, ".plt.sec")); > } >=20=20 > /* Keep a registry of per-objfile data-pointers required by other GDB > ... Thanks a lot. I have try this commit and it indeed fix all similar problems. --=20 You are receiving this mail because: You are on the CC list for the bug.=