You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oracle/graal@67cc5c2 disables the TrackNodeSourcePosition flag when generating debug info (-Dquarkus.native.debug.enabled). This results in less accurate mappings of native code to source code position (see Karm/mandrel-integration-tests#131).
The change was motivated by the fact that TrackNodeSourcePosition is a global flag of the compiler and enabling it by default when generating debug info clashes with IncludeNodeSourcePosition an option used for Truffle languages.
That said, I was thinking about the following options:
Explicitly enable -H:+TrackNodeSourcePosition in Quarkus since it doesn't officially support polyglot/truffle anyway. Users using these features will need to explicitly pass -H:-TrackNodeSourcePosition
Accept the reduced accuracy by default and mention -H:+TrackNodeSourcePosition in Quarkus docs.
Instruct GraalVM / Mandrel to keep more accurate debug information about
source locations when generating debug info for debugging and monitoring
tools. This parameter may break compatibility with Truffle. Affected
users should explicitly pass `-H:-TrackNodeSourcePosition` through
`quarkus.native.additional-build-args` to override it.
Closes: quarkusio#30772
zakkak
added a commit
to zakkak/quarkus
that referenced
this issue
Feb 7, 2023
Instruct GraalVM / Mandrel to keep more accurate debug information about
source locations when generating debug info for debugging and monitoring
tools. This parameter may break compatibility with Truffle. Affected
users should explicitly pass `-H:-TrackNodeSourcePosition` through
`quarkus.native.additional-build-args` to override it.
Closes: quarkusio#30772
Describe the bug
oracle/graal@67cc5c2 disables the
TrackNodeSourcePosition
flag when generating debug info (-Dquarkus.native.debug.enabled
). This results in less accurate mappings of native code to source code position (see Karm/mandrel-integration-tests#131).The change was motivated by the fact that
TrackNodeSourcePosition
is a global flag of the compiler and enabling it by default when generating debug info clashes withIncludeNodeSourcePosition
an option used for Truffle languages.That said, I was thinking about the following options:
Explicitly enable
-H:+TrackNodeSourcePosition
in Quarkus since it doesn't officially support polyglot/truffle anyway. Users using these features will need to explicitly pass-H:-TrackNodeSourcePosition
Accept the reduced accuracy by default and mention
-H:+TrackNodeSourcePosition
in Quarkus docs.cc @galderz @geoand @gsmet
Expected behavior
Setting a breakpoint in gdb at line 71, e.g.
break Main.java:71
, is expected to set the breakpoint at line 71.Actual behavior
Setting a breakpoint in gdb at line 71 results in a breakpoint at line 72.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: