Stream: cranelift

Topic: debugging cranelift


view this post on Zulip Anthony Canino (Oct 03 2022 at 13:44):

Hi all,

How does one attach a debugger and actually debug cranelift (lets say, from running clif-util on some clif IR) to step through the compiler? I haven't been able to find any documentation about setting this up (though I very likely missed something).

Is it as straightforward as attaching to the clif-util bin?

view this post on Zulip bjorn3 (Oct 03 2022 at 14:37):

Is it as straightforward as attaching to the clif-util bin?

It should be if you only want to debug compilation and not execution. If you want to debug execution, be aware that clif-util doesn't generate any debuginfo, so you can only step through raw assembly instructions.


Last updated: Nov 22 2024 at 17:03 UTC