I have breakpoint in function 'A', but 'A' can be called by functions 'B' and 'C'. When a breakpoint is hit, i'd like to know what called 'A' in the first place. Is there something like a function call stack?

I have found 'debugger->tracing->stack trace' option, but when i press it after breakpoint is hit, it only shows this, which doesnt make any sense: enter image description here

  • This probably means the stack frame hasn't been setup correctly yet, so Ida gets confused. Sometimes it helps to single-step a few instructions. Also, when you're certain you're at the very first instruction in the function, check the top of the stack (the dword at [esp/rsp], depending on whether you're on 32 bit or 64 bit) for the return address. If your assembly code wasn't produced by a compiler, and uses a nonstandard way of handling the stack, this might be the only way. Feb 23, 2015 at 22:34

1 Answer 1


Do a function tracing like this:

  1. set a breakpoint at the main function and at your target function
  2. start debugging
  3. when the process is halted: Go to Debugger->Tracing->Function Tracing
  4. continue Process
  5. once the process is halted again, go to Debugger->Tracing->Tracing Window and check for the info you need.

If this does not give you the needed info try basic block or instruction tracing. This will work even if there is a problem with identifying functions / the stack frame ...

More info on the tracing feature can be found here: hex-rays tutorial on tracing

  • Hi @user2545831! If this answer has solved your question please consider accepting it by clicking the check-mark. This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. In case you have any more questions regarding the answer, do not hesitate to ask them. Feb 27, 2015 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.