This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Robustify frame_unwind_address_in_block heuristic?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]