I am attempting to use this answer to generate an instruction trace between two lines of code.
Unfortunately, the condition in the while
loop is a simple count, and I need to keep running the loop until a particular line of code in the source code is reached.
Does there exists a way to check whether we are either on a particular line of code, or at a particular breakpoint, within a pure gdb
script?
I am aware of the solution here which uses the Python API. I am also aware of pin-instat, but I want to know whether this can done with pure gdb.