help for gdb's stepi command

Posted by programmer on Stack Overflow See other posts from Stack Overflow or by programmer
Published on 2010-01-13T07:06:39Z Indexed on 2010/03/09 7:06 UTC
Read the original article Hit count: 259

Filed under:
|

I need to trace all instrutions of a program using gdb. After every execution of a instruction, I want gdb invokes a specified function.

Is it a possiable work? How to achieve this?

I searched internet and found "stepi arg" command in gdb could step arg instructions. But how to find total number of instructions? After every instruction, how to make gdb to invoke my function automately?

© Stack Overflow or respective owner

Related posts about gdb

Related posts about command