On Wed, 2015-12-09 at 22:59 +0100, Philippe Waroquiers wrote: > If this is not recorded, then it is the valgrind dwarf reader that likely has > a problem. > Otherwise, it is the unwinder which does not properly use the inline info. What you can also do is to use (gdb) monitor v.info location <address>
When address is some code, it will print the function/file/line nr (and if address corresponds to inlined calls, it should describe all what is inlined). For example, for the test memcheck/tests/inlinfo, I obtain: (gdb) mo v.info loc 0x80486DC Address 0x80486dc is in the Text segment of memcheck/tests/inlinfo ==8004== at 0x80486DC: fun_d (inlinfo.c:7) ==8004== by 0x80486DC: fun_c (inlinfo.c:15) ==8004== by 0x80486DC: fun_b (inlinfo.c:21) ==8004== by 0x80486DC: fun_a (inlinfo.c:27) ==8004== by 0x80486DC: main (inlinfo.c:66) If the inline info is recorded and used properly, the above command should give the inlining and inlined functions for the relevant program counter. Philippe ------------------------------------------------------------------------------ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users