Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish GDB support for PRU #14

Open
dinuxbg opened this issue Sep 21, 2015 · 2 comments
Open

Finish GDB support for PRU #14

dinuxbg opened this issue Sep 21, 2015 · 2 comments

Comments

@dinuxbg
Copy link
Owner

dinuxbg commented Sep 21, 2015

Explore GDB PRU port feasibility. So far there is a very rough GDB backend for the PRU simulator target.

The following items remain to be implemented:

  • Stack unwiding support. This is needed for source-level GDB debugging.
  • Real target backend support via remoteproc framework, preferably without an intermediate gdbserver.
@EphDoering
Copy link

What's the status of this? I saw some news that GDB 9 has PRU emulator support, but haven't found much else about it.

@dinuxbg
Copy link
Owner Author

dinuxbg commented Nov 16, 2022

Yes, GNU Simulator has been ported to PRU. I use it to run the GCC regression testsuite on the PRU backend. You can also use it for simulation - see this example.

FYI, GNU simulator supports tracing:

$ pru-run --trace --trace-insn --trace-disasm --trace-core out/pru-core.elf
...
read-4 exec:0x200004f4 -> 0x0120e2e2
memory:   read of insn 0x0120e2e2 from 200004f4
disasm:   add	sp, sp, 32
...

I tried to port GDB but never got the time to finish it. Feel free to take over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants