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 breakpoints/10738] Cannot set breakpoint on inlined function


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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

--- Comment #11 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-04-14 15:33:49 UTC ---
Another case to consider:

File name                            Line number    Starting address
4.c                                            5            0x400490
4.c                                            5            0x40049a
4.c                                            5            0x400383
4.c                                            5            0x40038a
(other line numbers filtered out)

(gdb) b f
Breakpoint 1 at 0x400490: file 4.c, line 5.

But 0x400383 - the inlind instance in main - is filtered out because the
function name there is different.

-g -O2 -fno-omit-frame-pointer
gcc (GCC) 4.7.0 20110414 (experimental)
(the version should not matter much)

volatile int v;
__attribute__((always_inline)) void
f (void)
{
  v--;
}
int
main (void)
{
  v++;
  f ();
  v++;
  return 0;
}

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