Search Posts

Getting the parameters by parsing the dwarf directly

I used another two months to getting correct location of each parameter of a functions. Mission sounds stupid, the timeframe i spent sounds stupid. If I use GDB, i perhaps never know how parameters are stored in memory. Now i know how computer ACTUALLY works. People think the parameters are store in the stack, and having a fixed offset (such as integer is +4, long is +8), it is wrong. Because the expression to get that offset is defined in dwarf and sometimes parameters are not stored in stack too.

get parameter location

Leave a Reply

Your email address will not be published. Required fields are marked *