Jacek Dziedzic wrote:
[color=blue]
> Generic Usenet Account wrote:[color=green]
>> In our environment we have several C++ header files that have some
>> inline member function definitions. For some reason, I am unable to
>> step through the source code of those member functions in my debugger[/color]
>
> Pardon my ignorance, but if these functions are _inlined_,
> *what* do you expect to step through? Isn't it the case of
> "if you optimized it, forget debugging it"?[/color]
Inline doesn't mean the opcodes are inlined. It means the function is
excempt from aspects of the "one definition rule" that ordinarily says a
function's body must appear in only one translation unit.
A compiler has an easier time optimizing such a function, typically by
inlining its opcodes. And compiling with the -g option probably enabled
such optimization. So, turn off -g, or wait for a debugger that can track
raw opcodes back to their inlinable function definitions.
--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!