[Dwarf-Discuss] C++ implicit inline member function
Fri Nov 14 20:56:19 GMT 2014
Sorry for my late reply.
I think I overlooked the DWARF output last time. Rechecked the DWARF output
and looks everything fine.
On Tue, Nov 11, 2014 at 8:45 PM, Michael Eager <eager at eagerm.com> wrote:
> On 11/11/14 02:03, Swarup Sahoo wrote:
>> I have observed that implicit inline member functions info is not getting
>> captured in .debug_info
>> section. Usually explicitly declared inlined function info is getting
>> captured. But implicit inline
>> member functions, though they are getting inlined in the executable, but
>> DW_TAG_inlined_subroutine entry is stored for these functions. Is this
>> compiler (GCC) side
>> limitation or DWARF standard limitation?
>> I tried with the following setup:
>> Compiler: G++/GCC 4.8.2, Clang++/LLVM 3.4
>> DWARF version: 4
>> Sample program:
>> class test
>> // some private members
>> // this is an implicit inline member function
>> void small_func()
>> // do some operation
>> void big_func();
>> void test::big_func()
>> // call small_func()
>> int main()
>> test t1 ;
>> return 0;
> Please post the DWARF which is generated and what you
> believe should be generated.
> I notice that your example doesn't call small_func().
> Michael Eager eager at eagercon.com
> 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dwarf-discuss