GDB with PCIe device

Rajinikanth Pandurangan via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGsSNHDFJ7HJNt6sC3mUoy_OuU-wH8ti=ZnagFsnSzN=CdiYaA@mail.gmail.com>
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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.