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

Support source-level debugging (e.g. by generating DWARF info) #23

Open
fwcd opened this issue Feb 21, 2023 · 0 comments
Open

Support source-level debugging (e.g. by generating DWARF info) #23

fwcd opened this issue Feb 21, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@fwcd
Copy link
Collaborator

fwcd commented Feb 21, 2023

Add a flag (e.g. -g similar to contemporary C compilers) for generating source-level debug info, e.g. in the DWARF format. This should make it possible to use debuggers such as lldb or gdb to step through compiled binaries.

Some useful references:

Note that NASM already seems to have some level of support for generating DWARF info that maps to the Assembly File, but since we're interested in higher-level source mapping, we will probably have to redo this ourselves in the code generator.

@fwcd fwcd added the enhancement New feature or request label Feb 21, 2023
@H1ghBre4k3r H1ghBre4k3r added this to the v0.2.0 milestone Feb 22, 2023
@H1ghBre4k3r H1ghBre4k3r modified the milestones: v0.2.0, v0.X.0 May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants