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

Basic GDB formatter support #12209

Merged

Conversation

HertzDevil
Copy link
Contributor

This PR adds String and Array formatters for GDB, allowing it to be used as an alternative to LLDB. The formatters can be imported into a GDB session by source etc/gdb/crystal_formatters.py.

The spec driver has been almost completely rewritten to support testing multiple debuggers from a single spec file. Those specs are meant to support the Crystal interpreter eventually.

@mdwagner
Copy link
Contributor

mdwagner commented Jul 9, 2022

Great work! But can this be leveraged in normal crystal programs or just the compiler? If so, do we have this documented anywhere?

@HertzDevil HertzDevil added this to the 1.6.0 milestone Aug 13, 2022
@straight-shoota straight-shoota merged commit 2e17c86 into crystal-lang:master Aug 16, 2022
@HertzDevil HertzDevil deleted the feature/gdb-formatter branch August 16, 2022 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants