-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix debug info support #208
Comments
@jarkkojs You can try tackling this once you finish updating PolkaVM in |
+1 |
@koute, verified with This is by far the most reliable tool to dump DWARF (highly recommended). |
@koute, so this now happens also when checking out with the tip commit as:
|
Patched as a test https://doc.rust-lang.org/beta/unstable-book/compiler-flags/dwarf-version.html |
All |
@koute, @athei: I have some new information. I've now been able to verify that our targets generate correct DWARF. I verified this by creating a dummy compilation unit and compiling that with our target JSON:
This is important result in the sense that it excludes rustc as the root cause but makes me wonder what else possibly could go wrong... |
So the linker (lld I assume) is the culprit then? |
Not fully excluded at least. I've used four different linkers with same results so if it is linker, then it must be the flags given to the linker, not a linker bug. EDIT: actually this was incorrect as PolkaVM RISC-V targets are compiled with LLVM ld. So yeah I could try just as a comparative test to modify the JSON file to use some other linker and see if results match. I.e. linker bug is not fully excluded. |
New findings if I:
Then:
Also DWARF looks at least on surface correct, i.e. everything is not point to the offset zero of Testing was done on top of #240. |
Was not the case, still the same results. I overlooked something ;-) |
Checking for |
Yeah so to figure out is how these two sections work and interact together... And obviously check what they contain ATM. Before going to holiday I've completely ignored |
It seems like debug info is completely broken on the newest toolchain; the
test_basic_debug_info_32
andtest_basic_debug_info_64
tests we have fail here:The line is wrong, and the strings in the debug info are all
"cap"
for some reason.The text was updated successfully, but these errors were encountered: