@Alessandro thanks for the ping on this.
I don't know if we can take advantage of this or not as we fixed all the
outstanding issues we had reported.
We already have something similar to the IP2DP that you mentioned,
but it had some issues in the presence of the "-trimpath" and other options
present in users configurations.
I'll CC my colleague who's the owner of the Debugger subsystem, Dmitry,
and let him give more feedback on this.
As for other environments, think we are the only ones that take care of these things
in particular, but I'd be curious how vim or vscode manage to work around this problem.
You'll also have to consider that delve might not always be part of the build process,
as people might want to debug existing running applications/containers, or using things
such as Bazel, where this gets even more complex (and afaik, the Bazel plugin provides
more functionality about this part when needed).
Florin