public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/12501] New: Doesn't set pending breakpoint on inlined function
@ 2011-02-19 10:16 fuscated at gmail dot com
  2013-02-13  2:14 ` [Bug breakpoints/12501] " malaperle at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fuscated at gmail dot com @ 2011-02-19 10:16 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-09  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-19 10:16 [Bug breakpoints/12501] New: Doesn't set pending breakpoint on inlined function fuscated at gmail dot com
2013-02-13  2:14 ` [Bug breakpoints/12501] " malaperle at gmail dot com
2013-02-13 11:22 ` gbenson at redhat dot com
2013-10-09  9:05 ` gbenson at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).