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 information #72

Open
madebr opened this issue Aug 22, 2024 · 3 comments
Open

Debug information #72

madebr opened this issue Aug 22, 2024 · 3 comments
Labels
enhancement The issue asks for an improvement to the specification.

Comments

@madebr
Copy link

madebr commented Aug 22, 2024

Is there a way to encode debug information?

MSVC toolchains can embed debug information, or generate external PDB files.
GNU toolchains can also embed debug information, or split the dwarf information into an external library.

@mwoehlke
Copy link
Member

Is there a way to encode debug information?

Not at this time. These files usually sit alongside their associated binary artifacts, so discoverability is usually not an issue. Anyway, what would be the use case for providing these?

I'm not opposed to the idea, but it's likely to be way, way down on the priority list.

@mwoehlke mwoehlke added the enhancement The issue asks for an improvement to the specification. label Aug 22, 2024
@madebr
Copy link
Author

madebr commented Aug 22, 2024

My use case is CMake, where it's useful to copy the PDB files of dependencies to the build directory for a better debugging experience. Static libraries can also have associated PDB files.

@madebr
Copy link
Author

madebr commented Aug 23, 2024

Adding the PDB location is not enough: you also need to configure the location of the sources, and know the location of the sources on the build machine.
This way, IDE's can automatically configure the search path.
e.g. for gdb, this is done using settings set target.source-map /buildbot/path /my/path

This also means cps might need an extra component type named sources in addition to dylib, archive, interface, jar and symbolic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue asks for an improvement to the specification.
Projects
None yet
Development

No branches or pull requests

2 participants