Error in debug info for inline variadic C++ functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all; I filed this bug against GDB today:

https://sourceware.org/bugzilla/show_bug.cgi?id=16280

It shows a trivially reproducible case for C++ on x86_64 where an inline
variadic function seems to have incorrect debug information for the
function prologue.  This causes GDB to place the breakpoint incorrectly
when I try to step into the function, or put a breakpoint on the
function itself.  In both cases the breakpoint is completely missed and
the program runs to completion instead of stopping.

I can reproduce this with both GCC 4.8.1 and 4.8.2, and GDB 7.6.0 and
7.6.1.

It seems like it might be related to similar bugs filed with GCC before:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54533

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47471

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55586

There was a workaround added to GDB a while ago:

https://sourceware.org/bugzilla/show_bug.cgi?id=12435

but it seems to not be complete, since I'm still seeing the same problem
in this situation, and maybe shouldn't even be needed at all.

Anyone have any thoughts about this one?





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux