News for hackers. Stuff that matters.
Re:Debugging WebAssembly with Modern Tools by saagarjha on Friday December 11, 2020 @06:29AM (#25384560)
I wonder if one could connect GDB to this by writing some sort of WASM backend for it?
Re:Debugging WebAssembly with Modern Tools by RReverser on Friday December 11, 2020 @09:02AM (#25385825)
You will be able to build your own extension with any backend in the future, but I'm curious what you're looking to gain from that?

I don't know whether GDB understands the Wasm-specific constructs in DWARF, while the current integration uses LLDB under the hood, which does support those.

Re:Debugging WebAssembly with Modern Tools by saagarjha on Sunday December 13, 2020 @05:45PM (#25411177)
It would be nice to have more than one debugger for a given target, mostly.
Re:Debugging WebAssembly with Modern Tools by RReverser on Friday December 18, 2020 @07:39PM (#25473838)
I guess you'd have to make series of patches to GDB to make it work, as well as to build your own DevTools extension once the API is stable, but in theory should be possible, yeah.