Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] Stack trace evaluation in the UI

On 5/14/2013 12:57 AM, Eugene Tarassov wrote:
The rationale behind it goes like this:
Since it is not a top frame, PC is return address - it points to an instruction after call instruction, and PC-1 is address of last byte of the call instruction. So, to lookup a caller, PC-1 is used. In other words, we want to show a function that owns the call instruction. Same is done with line number info. Actually, it is done mostly because of the line number info - most users want see line that contain the call, not the line which contains return address.

Makes sense. Thanks Eugene for explaining!

- Christophe


Back to the top