From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26881 invoked by alias); 19 Feb 2011 10:16:47 -0000 Received: (qmail 26855 invoked by uid 22791); 19 Feb 2011 10:16:46 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Feb 2011 10:16:43 +0000 From: "fuscated at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/12501] New: Doesn't set pending breakpoint on inlined function X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fuscated at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 19 Feb 2011 10:16:00 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q1/txt/msg00144.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12501 Summary: Doesn't set pending breakpoint on inlined function Product: gdb Version: 7.2 Status: NEW Severity: normal Priority: P2 Component: breakpoints AssignedTo: unassigned@sourceware.org ReportedBy: fuscated@gmail.com Here are two simplified test files: ***header.h inline int func1() { return 1000; } inline int func2() { return 10; } ***main.cpp #include "header.h" int main() { func1(); return 0; } To reproduce the bug execute the following commands: g++ -g main.cpp -o test_break gdb ./test_break (gdb) break header.h:7 The result of the last command is "No line 7 in file "header.h"." GDB thinks the code is unused, because the func2 is not used in the current symbols. This might not be the case if a shared library which uses func2 is loaded in the future, therefore GDB should not refuse to set a pending breakpoint. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.