Skip to content

gdbstub support#10

Merged
ringtailsoftware merged 2 commits into
ringtailsoftware:mainfrom
hamid-rostami:gdbstub-support
Apr 16, 2026
Merged

gdbstub support#10
ringtailsoftware merged 2 commits into
ringtailsoftware:mainfrom
hamid-rostami:gdbstub-support

Conversation

@hamid-rostami

@hamid-rostami hamid-rostami commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

This PR is to add debug capability to emulated risc-v applications.
gdbstub implementation uses GDB remote serial protocol and act as a server. GDB as a client can connect to it and start debugging the app.
Support for uvm32 is added to the following gsbstub implementation which I'm going to open a PR for it as well:
https://github.com/mborgerson/gdbstub

For simplicity, I just included gdbstub.h file in my example.

@ringtailsoftware

Copy link
Copy Markdown
Owner

Thank you for this, looks great. I will take a look in the next few days and hopefully merge.

@hamid-rostami

Copy link
Copy Markdown
Contributor Author

Thank you for this, looks great. I will take a look in the next few days and hopefully merge.

Thanks @ringtailsoftware, let me know how you're getting on.
I might also have broken some unit tests, I'll have a look today.

@ringtailsoftware ringtailsoftware merged commit f7c11f3 into ringtailsoftware:main Apr 16, 2026
1 check failed
@ringtailsoftware

Copy link
Copy Markdown
Owner

Thanks. I've modified this a little to make ebreak trapping optional, so it doesn't break the existing tests.
a72737b

@hamid-rostami

Copy link
Copy Markdown
Contributor Author

Thanks @ringtailsoftware for accepting this PR.
I just forgot to update the project readme to mention this feature. I can open a new PR for that, or else I'd appreciate it if you could update it.

@ringtailsoftware

Copy link
Copy Markdown
Owner

0e808a9

@hamid-rostami

Copy link
Copy Markdown
Contributor Author

0e808a9

That's great, just the link is broken because of an extra space character between () and []

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants