Simple question that I coudn't find googling: if I'm in the middle of a function how can I jump to the start/end (prologue/epilogue) of this function in IDA's disassembly?
Thanks.
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityI don't believe there is a hotkey that will do it by default. One solution you could have is to add something like this to your .idapythonrc
# define functions to do the jumping
def jump_func_start():
Jump(GetFunctionAttr(here(), FUNCATTR_START))
def jump_func_end():
Jump(PrevHead(GetFunctionAttr(here(), FUNCATTR_END)))
# Compile IDC wrappers to call the python
idaapi.CompileLine('static j_f_start() { RunPythonStatement("jump_func_start()"); }')
idaapi.CompileLine('static j_f_end() { RunPythonStatement("jump_func_end()"); }')
# Add the hotkey
AddHotkey("Ctrl-Alt-K", 'j_f_start')
AddHotkey("Ctrl-Alt-J", 'j_f_end')
After that you can just type whatever hotkey you set and it should go to the start / end of the function