Re: Robustify frame_unwind_address_in_block heuristic?

Joel Brobecker
2008-10-01T15:29:09Z

> But there's rarely anything to handle the special kind of call in your
> 'returned-to' function, so from what's on the stack, I don't know how
> we can tell.

Perhaps there is some information either in the ret_stub or the called
function that would allow get_frame_pc () to detect it, and thus massage
the returned value by adding 1 so that get_frame_address_in_block
returns the address at the start of the stub. Seems pretty hacky,
but might work.

That being said, the backtrace must be strange, because instead of
seeing the real caller in the backtrace, you see the ret_stub?

--
Joel