[Dwarf-Discuss] C++ implicit inline member function
Swarup Sahoo
me.swar@gmail.com
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.
Regards,
Swarup
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:
>
>> Hi,
>> 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
>> no
>> 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
>> {
>> private:
>> // some private members
>> public:
>> // 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 ;
>> t1.big_func();
>> 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...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20141115/08e7667b/attachment.htm>
More information about the Dwarf-discuss
mailing list