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

Debug info #4

Merged
merged 11 commits into from
Jul 16, 2024
Merged

Debug info #4

merged 11 commits into from
Jul 16, 2024

Conversation

Bike
Copy link
Member

@Bike Bike commented Jul 15, 2024

Starts on instruction-mapped info in the form of source locations.

Very incomplete: in particular there is no FASL support (i.e. FASLs dump fine but lack source info).

Bike added 11 commits July 3, 2024 18:07
Dunno why I thought that was ever a good idea. It's irregular, and
also will be slower since the full call instructions cons in our
dumb VM implementations.
The Clasp implementation already does this and has acceptable
compilation overhead, and makes it easier to do further compilation.
Plus it's just nice. Makes things a lot easier to debug.
Needs tests and needs to work in FASLs, but the basic structure is
in place now.
Yuck, but it's something, and helped me fix a few bugs.
Not including syntax problems yet.
This probably slows things down a little bit, but it has an
important advantage: assuming the host Lisp is decent, it can keep
enough information that the bytecode module and current IP can be
extracted from a host frame. And with that you can get source info
and whatever else. I wrote a proof of concept of this in SBCL, but
you need to use undocumented/fragile internals, so I won't be
including it in Maclina at least for the moment.
@Bike Bike merged commit a2c2055 into main Jul 16, 2024
2 checks passed
@Bike Bike deleted the debuginfo branch July 16, 2024 13:44
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.

1 participant