This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/12429] New: stepping broken when always_inline functions


http://sourceware.org/bugzilla/show_bug.cgi?id=12429

           Summary: stepping broken when always_inline functions
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: gds@chartertn.net


If I create an inline function with __attribute((always_inline)) with
optimization at -O0 (no optimization) single stepping does not work and often
results in loss of communication with target. The only way to step reliably in
inline functions is to set a bp and run to it. Non-inline functions step fine.

This is with embedded arm using a remote gdb server. Not sure if this is
specific to this setup.

See this with 7.1 and 7.2. Does not do this with older 6.8 gdb using the same
program and inline scheme and gcc version .

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]