public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: ted <544673555@qq.com>
To: binutils <binutils@sourceware.org>
Subject: Line step implement
Date: Thu, 20 Oct 2022 12:05:29 +0800	[thread overview]
Message-ID: <tencent_7C29051F0D987351F840C95793181FEB200A@qq.com> (raw)

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

             reply	other threads:[~2022-10-20  4:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20  4:05 ted [this message]
2022-10-21  9:51 ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_7C29051F0D987351F840C95793181FEB200A@qq.com \
    --to=544673555@qq.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).