On Tue, Feb 11, 2014 at 12:04:23PM +0100, Stephane Eranian wrote: > >> How do you know that load at addr 0x1000 is accessing variable bar? > >> The IP gives you line number, and then what? > >> I think dwarf has the mapping regs -> variable and yes, the type info. > >> But I am not sure that's enough. > > > > Ah, but if you have the instruction, you can decode it and obtain the > > reg and thus type-info, no? > > > But on x86, you can load directly from memory, you'd only have the > target reg for the load. Not enough.
But if you load an immediate, you should be able to find it in the symbol table. Any other load will have a register base and will thus have type-info therefrom. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/