This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk 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] |
Second method involves kprobes.
When we insert the breakpoint, we know the instruction it is replacing. So we copy the entire instruction, put it somewhere else* in the running process Set the thread pc to point to this copy, single step execute, put pc back to where it should be after the instruction, and continue.
Also we have to ignore system calls because we can't do system call tracing and single stepping at the same time. This is apparently a kernel bug.
Regards - Wu Zhou
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |