public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Rajinikanth Pandurangan <rajinikanth.p@gmail.com>
To: gdb@sourceware.org
Subject: GDB with PCIe device
Date: Fri, 25 Dec 2020 22:48:41 -0800	[thread overview]
Message-ID: <CAGsSNHDFJ7HJNt6sC3mUoy_OuU-wH8ti=ZnagFsnSzN=CdiYaA@mail.gmail.com> (raw)

Hello,

As per my understanding, gdb calls ptrace system calls which intern uses
kernel implementation of architecture specific action (updating debug
registers,reading context memory...) to set breakpoints, and so on.

But in case of running gdb with PCIe devices such as gpu or fpga, how does
the hardware specific actions are being done?

Should device drivers provide ptrace equivalent kernel implementation?

 Could any of the gdb gurus shed some light on debug software stacks in
debugging software that runs on one of the mentioned pcie devices?

Thanks in advance,

             reply	other threads:[~2020-12-26  6:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-26  6:48 Rajinikanth Pandurangan [this message]
2021-01-08 15:17 ` Simon Marchi
2021-01-11  9:31   ` Aktemur, Tankut Baris
2021-01-21  8:08     ` Rajinikanth Pandurangan
2021-01-27 16:00       ` Metzger, Markus T
2021-02-01  9:27         ` Aktemur, Tankut Baris

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='CAGsSNHDFJ7HJNt6sC3mUoy_OuU-wH8ti=ZnagFsnSzN=CdiYaA@mail.gmail.com' \
    --to=rajinikanth.p@gmail.com \
    --cc=gdb@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).