Line step implement
ted
544673555@qq.com
Thu Oct 20 04:05:29 GMT 2022
Hi folks, I'm working on an implement of gdb server. The server talks with gdb using RSP protocol and drive a CPU model. While developing the *line step* function (range step mode enabled) i found that my CPU model need to take some time to finish just one instruction step. The reason is the CPU model run in individual process. I have to pass the package (instruction step) through IPC. With thousands of instructions in the source line it spend too much time compared with normal running of that line.
Can I ask gdb using temporary breakpoints ( set on any possible instruction can go out of the range corresponding to the source line) to assist with step functionality? Does gdb really knows where to set the required breakpoints? If the answer is false, is there a good way to deal with this problem?
Thank you for your time!
Ted CH
More information about the Binutils
mailing list